You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Aslak Hellesøy <as...@netcom.no> on 2003/01/29 01:42:58 UTC

Is MavenTask supposed to work?

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


Re: maven-1.0-beta-7 docs?

Posted by Jason van Zyl <ja...@zenplex.com>.
On Tue, 2003-01-28 at 22:12, Matt Ho wrote:
> Can these be found anywhere?  I'd like to figure out what the syntax for
> 
> <build>
> 	<testResources>
> 
> to include .xml and .properties files for testing only.  The current
> docs online are for beta-8 which appears to be different from beta-7.
> 
> Thanks!

The best place to look for examples of the current implementation is the
touchstone build:

http://cvs.apache.org/viewcvs.cgi/jakarta-turbine-maven/src/test/touchstone-build/

> --
> Matt Ho
> Principal
> Indigo Egg, Inc.
> http://www.indigoegg.com/
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-maven-user-help@jakarta.apache.org
-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


Re: maven-1.0-beta-7 docs?

Posted by Brett Porter <bp...@f2network.com.au>.
you can checkout CVS with that tag and build the docs with maven 
site:generate

however, for this particular purpose, you can read 
$MAVEN_HOME/maven-project.xsd

Cheers,
Brett

Matt Ho wrote:
> Can these be found anywhere?  I'd like to figure out what the syntax for
> 
> <build>
> 	<testResources>
> 
> to include .xml and .properties files for testing only.  The current
> docs online are for beta-8 which appears to be different from beta-7.
> 
> Thanks!
> 
> --
> Matt Ho
> Principal
> Indigo Egg, Inc.
> http://www.indigoegg.com/
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-maven-user-help@jakarta.apache.org


maven-1.0-beta-7 docs?

Posted by Matt Ho <ma...@indigoegg.com>.
Can these be found anywhere?  I'd like to figure out what the syntax for

<build>
	<testResources>

to include .xml and .properties files for testing only.  The current
docs online are for beta-8 which appears to be different from beta-7.

Thanks!

--
Matt Ho
Principal
Indigo Egg, Inc.
http://www.indigoegg.com/