Hi all,
I am calling a ant build script using <ant> and I want to be able to
reference my maven.dependency.classpath value. In my maven.xml I specify:
<ant antFile="build.xml" target="testTAJ001" dir="./src/test/etc/scripts/"
inheritRefs="true" inheritAll="true"/>
However, in my build.xml file, I do:
<condition property="path.ok">
<and>
<available
classname="org.apache.xerces.jaxp.DocumentBuilderImpl" >
<classpath>
<path refid="maven.dependency.classpath"/>
</classpath>
</available>
<available
classname="org.apache.xalan.processor.TransformerFactoryImpl" />
</and>
</condition>
And get an error on the path reference:
[ERROR] BUILD FAILED
[ERROR] File...... C:\kinaseprofiler\maven.xml
[ERROR] Element... ant
[ERROR] Line...... 134
[ERROR] Column.... 126
[ERROR] Reference maven.dependency.classpath not found.
If I inline my ant stuff in my maven.xml, then it works, it can use the
maven.dependency.classpath variable. Is there someway that maven can pass
to ant this reference?
Eric Pugh
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 10:31 AM
To: Turbine Maven Users List
Subject: RE: what's difference of war plugin and war in j2ee
Grace Li <[EMAIL PROTECTED]> wrote on 01/10/2002 03:13:30 AM:
> If war is a part of j2ee, a war file is a middle result of j2ee goals,
such
> as j2ee:ear, so does ejb?
>
> What's the solution to use ejb goals in b5 or higher version? It seems
ant's
> ejbjar doesn't work too. I asked this question in an earlier email.
Quoting myself:
> The War plugin definitely works. The ejb piece of the
> j2ee plugin has not yet been correctly converted since
> b5.
The ejb tasks in the j2ee plugin currently are untested and I personally
would be stunned if they worked. For all intents and purposes, they are
not working. Ant's ejbjar doesn't work? Got any details?
> Thanks.
>
> GL
> -----Original Message-----
> From: Mr Dion Gillard [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 12:16 PM
> To: Turbine Maven Users List
> Subject: Re: what's difference of war plugin and war in j2ee
>
>
> The war plugin used to be part of the j2ee plugin.
>
> It was extracted to be standalone.
>
> The j2ee docs are a little out of date, but getting
> better.
>
> --- Grace Li <[EMAIL PROTECTED]> wrote:
> > From j2ee doc page, j2ee has some properties related
> > to war, such as
> > maven.j2ee.war.name, maven.j2ee.war.src, etc. I 'm a
> > little confused wether
> > j2ee calls war plugin or it has war itself. But from
> > plugin.jelly of j2ee I
> > didn't see any war goal or ejb goal. I need ejb
> > also. Or the war and ejb
> > cannot be called in maven.xml explicitly? thanks.
>
> There is an example webapp project as part of the
> examples plugin. See your
> ${maven.home}/plugins/maven-examples-plugin-1.0-SNAPSHOT
> directory
>
> The War plugin definitely works. The ejb piece of the
> j2ee plugin has not yet been correctly converted since
> b5.
>
>
> HTH,
> >
> > GL
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>