Re: Re: Re: exec:exec java NoClassDefFoundError
Hi Paul Thanks for your help. I try your idea. But it doesn't work. So I have decided I go back to ant and bat files and this works now good. Have a good time Urs Urs Frei Fon +41 71 226 12 27 Fax +41 71 226 12 05 Web http://www.fhsg.ch/neurocomputing FHS St.Gallen - Hochschule für Angewandte Wissenschaften Institut IMS Tellstrasse 2 Postfach 664 CH-9001 St.Gallen
Re: Re: exec:exec java NoClassDefFoundError
Hello Paul Thank you for your help. I changed the argument to: configuration executablejava/executable arguments argument-classpath/argument classpath dependencyorg.eclipse:startup/dependency /classpath argumentorg.eclipse.core.launcher.Main/argument argument-application org.eclipse.ant.core.antRunner/argument argument-f ${ECLIPSE_HOME}/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml/argument argument-DECLIPSE_HOME=${ECLIPSE_HOME}/argument /arguments /configuration Unfortunately it doesn?t work. The error is: ** [ERROR] BUILD ERROR [INFO] [INFO] Result of java -classpath D:\Daten\Subversion\ch.fhsg.nc.go.build\bin org .eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -f C: \Programme\eclipse/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/bu ild.xml -DECLIPSE_HOME=C:\Programme\eclipse execution is: '1'. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Result of java -classpat h D:\Daten\Subversion\ch.fhsg.nc.go.build\bin org.eclipse.core.launcher.Main -a pplication org.eclipse.ant.core.antRunner -f C:\Programme\eclipse/plugins/org. eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml -DECLIPSE_HOME=C:\Prog ramme\eclipse execution is: '1'. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Result of java -class path D:\Daten\Subversion\ch.fhsg.nc.go.build\bin org.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -f C:\Programme\eclipse/plugins/o rg.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml -DECLIPSE_HOME=C:\P rogramme\eclipse execution is: '1'. at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:169) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) ... 16 more I think maven looks in a wrong folder for the class. Why does maven not look in the dependency defined jar-file(startup.jar)? Urs Urs Frei Fon +41 71 226 12 27 Fax +41 71 226 12 05 Web http://www.fhsg.ch/neurocomputing FHS St.Gallen - Hochschule für Angewandte Wissenschaften Institut IMS Tellstrasse 2 Postfach 664 CH-9001 St.Gallen
exec:exec java NoClassDefFoundError
Hi I am new in using maven. I would like to use the antRunner from eclipse to build my project. But the class for the antRunner will be not found. What do I wrong? project modelVersion4.0.0/modelVersion ... dependencies dependency groupIdorg.eclipse/groupId artifactIdstartup/artifactId version1.0.0/version scopesystem/scope systemPath${ECLIPSE_HOME}/startup.jar/systemPath /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId version1.0.1/version executions execution phasecompile/phase goals goalexec/goal /goals /execution /executions configuration executablejava/executable arguments argument-classpath/argument classpath dependencyorg.eclipse:startup/dependency /classpath argumentorg.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -f ${ECLIPSE_HOME}/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml/argument argument-DECLIPSE_HOME=${ECLIPSE_HOME}/argument /arguments /configuration /plugin /plugins ... /project The result is: [INFO] [exec:exec {execution: default}] [INFO] java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main -applicati on org/eclipse/ant/core/antRunner -f C:\Programme\eclipse/plugins/org/eclipse/pd e/build_3/2/1/r321_v20060823/scripts/build/xml [INFO] Exception in thread main [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Result of java -cp D:\Daten\Subversion\ch.fhsg.nc.go.build\bin org.eclip se.core.launcher.Main -application org.eclipse.ant.core.antRunner -f C:\Programm e\eclipse/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml -DECLIPSE_HOME=C:\Programme\eclipse execution is: '1'. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Thu Oct 19 13:30:55 CEST 2006 [INFO] Final Memory: 4M/7M [INFO] Have someone any idea what I do wrong? Thanks for help Urs Urs Frei Fon +41 71 226 12 27 Fax +41 71 226 12 05 Web http://www.fhsg.ch/neurocomputing FHS St.Gallen - Hochschule für Angewandte Wissenschaften Institut IMS Tellstrasse 2 Postfach 664 CH-9001 St.Gallen