You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by EJ Ciramella <ej...@upromise.com> on 2006/06/08 21:44:22 UTC

RE: calling maven2 files from ant - any suggestions?

Any suggestions on this folks?

I'm completely wedged... 

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com] 
Sent: Thursday, June 08, 2006 11:31 AM
To: Ant Users List
Subject: RE: calling maven2 files from ant

I'm trying with the <java>  task, but I keep getting this:

Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.5.0_05\jre\bin\java.exe' with arguments:
'-classpath'
'E:\buildtools\maven-2.0.3\core\boot\classworlds-1.1.jar;E:\buildtools\maven-2.0.3\bin\m2.conf'
'org.codehaus.classworlds.Launcher'
'-Dclassworlds.conf=E:/buildtools/maven-2.0.3/bin/m2.conf'
'-Dmaven.home=E:/buildtools/maven-2.0.3'
'compile'

The ' characters around the executable and arguments are
not part of the command.
     [java] java.lang.Exception: classworlds configuration not specified nor found in the classpath
     [java] 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:423)
     [java] 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

BUILD SUCCESSFUL
Total time: 0 seconds


Here is my task:

   <java classname="org.codehaus.classworlds.Launcher" fork="true">
     <arg line="-Dclassworlds.conf=${maven.home}/bin/m2.conf -Dmaven.home=${maven.home} compile"/>
     <classpath refid="maven.classpath"/>
   </java>

These are the same params that exist in the mvn.bat file.  What am I missing?

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Tuesday, June 06, 2006 1:08 AM
To: user@ant.apache.org
Subject: AW: calling maven2 files from ant

<exec> / <java> ?

Jan 

>-----Ursprüngliche Nachricht-----
>Von: EJ Ciramella [mailto:ejciramella@upromise.com] 
>Gesendet: Montag, 5. Juni 2006 23:39
>An: Ant Users List
>Betreff: calling maven2 files from ant
>
>Without some really hacky scripty goodness, is there a clever 
>way to call maven2 with an ant script?
> 
>I'm working on getting a maven 2 based project up and running 
>under cruisecontrol and I've taken advantage of lots of little 
>ant benefits.
>Some things simply don't work using maven 2 directly, but 
>having ant call into maven would make things much easier.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org