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 ">
<modelVersion>4.0.0</modelVersion>
...
<dependencies>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>startup</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${ECLIPSE_HOME}/startup.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath>
<dependency>org.eclipse:startup</dependency>
</classpath>
<argument>org.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