I'm trying to use the MavenTask with little luck (I want to run Maven from
CruiseControl)
My environment:
o Win2k
o j2sdk1.4.1_01 / j2sdk1.4.1_01
o Maven CVS HEAD
My target:
<target name="maven">
<property environment="env"/>
<path id="maven.class.path">
<fileset dir="${env.MAVEN_HOME}/lib">
<include name="*.jar"/>
</fileset>
</path>
<taskdef name="maven"
classname="org.apache.maven.ant.MavenTask"
classpathref="maven.class.path"/>
<maven mavenHome="${env.MAVEN_HOME}"
goalName="jar:install"
toolsJar="${env.JAVA_HOME}/lib/tools.jar"/>
</target>
I get the following:
Buildfile: build.xml
maven:
[maven] __ __
[maven] | \/ |__ Jakarta _ ___
[maven] | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
[maven] |_| |_\__,_|\_/\___|_||_| v. 1.0-beta-8
[maven] BUILD FAILED
[maven] java.lang.ExceptionInInitializerError
[maven] Total time: 8 seconds
Any clue where this EII comes from and why?
Passing -debug to Ant is not passed through to Maven, it would be nice if it
were.
I have tried to set my ANT_OPTS to similar values as in maven.bat:
set
ANT_OPTS=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.D
ocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xe
rces.jaxp.SAXParserFactoryImpl "-Dmaven.home=%MAVEN_HOME%"
"-Dtools.jar=%JAVA_HOME%\lib\tools.jar"
"-Dforehead.conf.file=%MAVEN_HOME%\bin\forehead.conf"
-But that makes no difference.
I know I can do as described here:
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=turbine-maven-user@jakar
ta.apache.org&msgId=498833
-But I'd like to avoid starting a new VM.
Any clues?
Aslak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]