[mevenide-dev] [jira] Resolved: (MEVENIDE-619) System dependencies lost when using assemblies

"Milos Kleint (JIRA)" <jira-yCVjj/[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.devel
Message-ID <6873718.1207554478250.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint resolved MEVENIDE-619.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: NB_3.1

I have rewritten the way run/debug projct is implemented fro j2se projects.
instead of a custom profile with a bunch of stuff in it, we will use just plain "mvn exec:exec java -classpath %classpath org.myapp.Main"

build #370 and later
http://deadlock.netbeans.org/hudson/job/mevenide/

I believe that gets rid of this issue as well. I haven't tried, please reopen if it doesn't help

> System dependencies lost when using assemblies
> ----------------------------------------------
>
>                 Key: MEVENIDE-619
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-619
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide-netbeans
>    Affects Versions: NB_3.1
>         Environment: Java 6, NB 6.1 Dev
>            Reporter: Daniel Mutch
>            Assignee: Milos Kleint
>             Fix For: NB_3.1
>
>
> Steps to reproduce:
> 1) Create a new maven project using standard archetype.
> 2) Add the following system dependency on javac
> <dependency>
>             <groupId>com.sun</groupId>
>             <artifactId>tools</artifactId>
>             <version>1.6.0</version>
>             <scope>system</scope>
>             <type>jar</type>
>             <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath>
> </dependency>
> This assumes you have a system variable declared for JAVA_6_HOME
> 3) In the main method of your class put the line
> Main.compile(null);
> and fix imports.
> 4) Compile
> 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method.
> 6) Now right click on project, choose properties and set the main class.
> 7) Now run the project (instead of using run file). Instead of the NPE get message:
> Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.