antrun classpaths
10 answers - 1107 bytes -

I went to here to see how to let ant get to some maven classpaths:
I have a build.xml file that I run with this in my pom:
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant inheritRefs="true"
target="axisWsdl2Java" antfile="build.xml" dir="." />
</tasks>
<sourceRoot>${project.build.directory
}/generated-sources/java</sourceRoot>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
But it complains that:
[ERRR] BUILD ERRR
[INF]
[INF] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
[path here]\build.xml:31: Reference maven.runtime.classpath not
Any ideas? Is the doc page up to date?
Thanks.
No.1 | | 1269 bytes |
| 
Mon, 12 Jun 2006, Lee Meador wrote:
Hi,
I can't reproduce this with 'inheritRefs="true"'.
What do you have in your build.xml?
-- Kenney
I went to here to see how to let ant get to some maven classpaths:
I have a build.xml file that I run with this in my pom:
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant inheritRefs="true"
target="axisWsdl2Java" antfile="build.xml" dir="." />
</tasks>
<sourceRoot>${project.build.directory
}/generated-sources/java</sourceRoot>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
But it complains that:
[ERRR] BUILD ERRR
[INF]
[INF] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
[path here]\build.xml:31: Reference maven.runtime.classpath not
Any ideas? Is the doc page up to date?
Thanks.
No.2 | | 1545 bytes |
| 
<path id="axis.classpath">
<path refid="maven.runtime.classpath"/>
</path>
<taskdef resource="axis-tasks.properties" classpathref="axis.classpath"
/>
6/12/06, Kenney Westerhof <kenney (AT) apache (DOT) orgwrote:
Mon, 12 Jun 2006, Lee Meador wrote:
Hi,
I can't reproduce this with 'inheritRefs="true"'.
What do you have in your build.xml?
-- Kenney
I went to here to see how to let ant get to some maven classpaths:
I have a build.xml file that I run with this in my pom:
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant inheritRefs="true"
target="axisWsdl2Java" antfile="build.xml" dir="." />
</tasks>
<sourceRoot>${project.build.directory
}/generated-sources/java</sourceRoot>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
But it complains that:
[ERRR] BUILD ERRR
[INF]
[INF] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
[path here]\build.xml:31: Reference maven.runtime.classpath not
Any ideas? Is the doc page up to date?
Thanks.
No.3 | | 1840 bytes |
| 
Tue, 13 Jun 2006, Lee Meador wrote:
Try pasting this in the pom.xml in place of the <ant/tag. Shouldn't
matter, but who knows.
Maybe you're still using maven-antrun-plugin 1.0, try adding
<version>1.1</versionbelow the <plugintag.
-- Kenney
<path id="axis.classpath">
<path refid="maven.runtime.classpath"/>
</path>
<taskdef resource="axis-tasks.properties" classpathref="axis.classpath"
/>
--
6/12/06, Kenney Westerhof <kenney (AT) apache (DOT) orgwrote:
Mon, 12 Jun 2006, Lee Meador wrote:
Hi,
I can't reproduce this with 'inheritRefs="true"'.
What do you have in your build.xml?
-- Kenney
I went to here to see how to let ant get to some maven classpaths:
I have a build.xml file that I run with this in my pom:
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant inheritRefs="true"
target="axisWsdl2Java" antfile="build.xml" dir="." />
</tasks>
<sourceRoot>${project.build.directory
}/generated-sources/java</sourceRoot>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
But it complains that:
[ERRR] BUILD ERRR
[INF]
[INF] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
[path here]\build.xml:31: Reference maven.runtime.classpath not
Any ideas? Is the doc page up to date?
Thanks.
No.4 | | 2138 bytes |
| 
Kenney,
Well you said it shouldn't matter and it didn't.
I had checked that the -X showed it using 1.1 but who knows?
Thanks.
NTE T ALL: More ideas are welcome
-- Lee
6/13/06, Kenney Westerhof <kenney (AT) apache (DOT) orgwrote:
Tue, 13 Jun 2006, Lee Meador wrote:
Try pasting this in the pom.xml in place of the <ant/tag. Shouldn't
matter, but who knows.
Maybe you're still using maven-antrun-plugin 1.0, try adding
<version>1.1</versionbelow the <plugintag.
-- Kenney
<path id="axis.classpath">
<path refid="maven.runtime.classpath"/>
</path>
<taskdef resource="axis-tasks.properties" classpathref="
axis.classpath"
/>
--
6/12/06, Kenney Westerhof <kenney (AT) apache (DOT) orgwrote:
Mon, 12 Jun 2006, Lee Meador wrote:
Hi,
I can't reproduce this with 'inheritRefs="true"'.
What do you have in your build.xml?
-- Kenney
I went to here to see how to let ant get to some maven classpaths:
I have a build.xml file that I run with this in my pom:
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant inheritRefs="true"
target="axisWsdl2Java" antfile="build.xml" dir="." />
</tasks>
<sourceRoot>${project.build.directory
}/generated-sources/java</sourceRoot>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
But it complains that:
[ERRR] BUILD ERRR
[INF]
[INF] Error executing ant tasks
Embedded error: The following error occurred while executing this
line:
[path here]\build.xml:31: Reference maven.runtime.classpath not
Any ideas? Is the doc page up to date?
Thanks.
No.5 | | 2313 bytes |
| 
Does anyone have any ideas on why I can't get the maven classpath in my ant
script?
6/13/06, Lee Meador <lee (AT) leemeador (DOT) comwrote:
Kenney,
Well you said it shouldn't matter and it didn't.
I had checked that the -X showed it using 1.1 but who knows?
Thanks.
NTE T ALL: More ideas are welcome
-- Lee
--
6/13/06, Kenney Westerhof <kenney (AT) apache (DOT) orgwrote:
Tue, 13 Jun 2006, Lee Meador wrote:
Try pasting this in the pom.xml in place of the <ant/tag. Shouldn't
matter, but who knows.
Maybe you're still using maven-antrun-plugin 1.0, try adding
<version1.1</versionbelow the <plugintag.
-- Kenney
<path id="axis.classpath">
<path refid="maven.runtime.classpath"/>
</path>
<taskdef resource="axis-tasks.properties" classpathref="
axis.classpath"
/>
--
6/12/06, Kenney Westerhof < kenney (AT) apache (DOT) orgwrote:
Mon, 12 Jun 2006, Lee Meador wrote:
Hi,
I can't reproduce this with 'inheritRefs="true"'.
What do you have in your build.xml?
-- Kenney
I went to here to see how to let ant get to some maven classpaths:
--
I have a build.xml file that I run with this in my pom:
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant inheritRefs="true"
target="axisWsdl2Java" antfile="build.xml" dir="." />
</tasks>
<sourceRoot>${ project.build.directory
}/generated-sources/java</sourceRoot>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
But it complains that:
[ERRR] BUILD ERRR
[INF]
[INF] Error executing ant tasks
Embedded error: The following error occurred while executing this
line:
[path here]\build.xml:31: Reference maven.runtime.classpath not
Any ideas? Is the doc page up to date?
Thanks.
No.6 | | 6028 bytes |
| 
This is a bit of a long-shot, but I have noticed that property
inheritance doesn't work as described in the docs, thus requiring each
property to be explicitly passed along:
<ant antfile="build-helper.xml" target="visualize-whirled-peas">
<!-- should be available automatically, but isn't
<property name="project.version" value="${project.version}"/>
</ant>
Maybe a similar technique is required for references? (I haven't tried
it, but that is my suggestion.):
<ant target="axisWsdl2Java">
<reference torefid="maven.runtime.classpath"
refid="maven.runtime.classpath"/>
</ant>
-Max
Lee Meador wrote:
Does anyone have any ideas on why I can't get the maven classpath in my ant
script?
6/13/06, Lee Meador <lee (AT) leemeador (DOT) comwrote:
>>
>Kenney,
>>
>Well you said it shouldn't matter and it didn't.
>>
>I had checked that the -X showed it using 1.1 but who knows?
>>
>Thanks.
>>
>NTE T ALL: More ideas are welcome
>>
>-- Lee
>>
>>
>6/13/06, Kenney Westerhof <kenney (AT) apache (DOT) orgwrote:
>>
>Tue, 13 Jun 2006, Lee Meador wrote:
>>
>Try pasting this in the pom.xml in place of the <ant/tag. Shouldn't
>matter, but who knows.
>>
>Maybe you're still using maven-antrun-plugin 1.0, try adding
><version1.1</versionbelow the <plugintag.
>>
>-- Kenney
>>
><path id="axis.classpath">
><path refid="maven.runtime.classpath"/>
></path>
>>
><taskdef resource="axis-tasks.properties" classpathref="
>axis.classpath"
>/>
>>
>>
>6/12/06, Kenney Westerhof < kenney (AT) apache (DOT) orgwrote:
>>
>Mon, 12 Jun 2006, Lee Meador wrote:
>>
>Hi,
>>
>I can't reproduce this with 'inheritRefs="true"'.
>>
>What do you have in your build.xml?
>>
>-- Kenney
>>
>I went to here to see how to let ant get to some maven
>classpaths:
>>
>>
>
>>
>I have a build.xml file that I run with this in my pom:
>>
><build>
><plugins>
><plugin>
><artifactId>maven-antrun-plugin</artifactId>
><executions>
><execution>
><phase>generate-sources</phase>
><goals>
><goal>run</goal>
></goals>
><configuration>
><tasks>
><ant inheritRefs="true"
>target="axisWsdl2Java" antfile="build.xml" dir="." />
></tasks>
><sourceRoot>${
>project.build.directory
>}/generated-sources/java</sourceRoot>
></configuration>
></execution>
></executions>
></plugin>
></plugins>
></build>
>>
>But it complains that:
>>
>[ERRR] BUILD ERRR
>[INF]
>>
>
>
>[INF] Error executing ant tasks
>>
>Embedded error: The following error occurred while executing this
>line:
>[path here]\build.xml:31: Reference maven.runtime.classpath not
>>
>Any ideas? Is the doc page up to date?
>>
>Thanks.
>>
>--
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
>>
>--
>Kenney Westerhof
>http://www.neonics.com
>GPG public key:
>http://www.gods.nl/~forge/kenneyw.key<http://www.gods.nl/%7Eforge/kenneyw.key
>>
>>
>>
>
>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>
>>
>>
>>
>--
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
>>
>--
>Kenney Westerhof
>http://www.neonics.com
>GPG public key:
>http://www.gods.nl/~forge/kenneyw.key<http://www.gods.nl/%7Eforge/kenneyw.key
>>
>>
>
>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>
>>
>>
>>
>--
>>
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
No.7 | | 6294 bytes |
| 
I give. None of this works.
6/14/06, Max Cooper <max (AT) maxcooper (DOT) comwrote:
This is a bit of a long-shot, but I have noticed that property
inheritance doesn't work as described in the docs, thus requiring each
property to be explicitly passed along:
<ant antfile="build-helper.xml" target="visualize-whirled-peas">
<!-- should be available automatically, but isn't
<property name="project.version" value="${project.version}"/>
</ant>
Maybe a similar technique is required for references? (I haven't tried
it, but that is my suggestion.):
<ant target="axisWsdl2Java">
<reference torefid="maven.runtime.classpath"
refid="maven.runtime.classpath"/>
</ant>
-Max
Lee Meador wrote:
Does anyone have any ideas on why I can't get the maven classpath in my
ant
script?
6/13/06, Lee Meador <lee (AT) leemeador (DOT) comwrote:
>>
>Kenney,
>>
>Well you said it shouldn't matter and it didn't.
>>
>I had checked that the -X showed it using 1.1 but who knows?
>>
>Thanks.
>>
>NTE T ALL: More ideas are welcome
>>
>-- Lee
>>
>>
>6/13/06, Kenney Westerhof <kenney (AT) apache (DOT) orgwrote:
>>
>Tue, 13 Jun 2006, Lee Meador wrote:
>>
>Try pasting this in the pom.xml in place of the <ant/tag. Shouldn't
>matter, but who knows.
>>
>Maybe you're still using maven-antrun-plugin 1.0, try adding
><version1.1</versionbelow the <plugintag.
>>
>-- Kenney
>>
><path id="axis.classpath">
><path refid="maven.runtime.classpath"/>
></path>
>>
><taskdef resource="axis-tasks.properties" classpathref="
>axis.classpath"
>/>
>>
>>
>6/12/06, Kenney Westerhof < kenney (AT) apache (DOT) orgwrote:
>>
>Mon, 12 Jun 2006, Lee Meador wrote:
>>
>Hi,
>>
>I can't reproduce this with 'inheritRefs="true"'.
>>
>What do you have in your build.xml?
>>
>-- Kenney
>>
>I went to here to see how to let ant get to some maven
>classpaths:
>>
>>
>
>>
>I have a build.xml file that I run with this in my pom:
>>
><build>
><plugins>
><plugin>
><artifactId>maven-antrun-plugin</artifactId>
><executions>
><execution>
><phase>generate-sources</phase>
><goals>
><goal>run</goal>
></goals>
><configuration>
><tasks>
><ant inheritRefs="true"
>target="axisWsdl2Java" antfile="build.xml" dir="." />
></tasks>
><sourceRoot>${
>project.build.directory
>}/generated-sources/java</sourceRoot>
></configuration>
></execution>
></executions>
></plugin>
></plugins>
></build>
>>
>But it complains that:
>>
>[ERRR] BUILD ERRR
>[INF]
>>
>>
>>
>[INF] Error executing ant tasks
>>
>Embedded error: The following error occurred while executing
this
>line:
>[path here]\build.xml:31: Reference maven.runtime.classpath not
>>
>Any ideas? Is the doc page up to date?
>>
>Thanks.
>>
>--
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
>>
>--
>Kenney Westerhof
>http://www.neonics.com
>GPG public key:
>http://www.gods.nl/~forge/kenneyw.key<
http://www.gods.nl/%7Eforge/kenneyw.key>
>>
>>
>>
>
>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>
>>
>>
>>
>--
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
>>
>--
>Kenney Westerhof
>http://www.neonics.com
>GPG public key:
>http://www.gods.nl/~forge/kenneyw.key<
http://www.gods.nl/%7Eforge/kenneyw.key>
>>
>>
>
>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>
>>
>>
>>
>--
>>
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
>
>
>
>
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
--
No.8 | | 6462 bytes |
| 
Have you tried inheritRefs="true" as stated in
6/16/06, Lee Meador <lee (AT) leemeador (DOT) comwrote:
I give. None of this works.
6/14/06, Max Cooper <max (AT) maxcooper (DOT) comwrote:
This is a bit of a long-shot, but I have noticed that property
inheritance doesn't work as described in the docs, thus requiring each
property to be explicitly passed along:
<ant antfile="build-helper.xml" target="visualize-whirled-peas">
<!-- should be available automatically, but isn't
<property name="project.version" value="${project.version}"/>
</ant>
Maybe a similar technique is required for references? (I haven't tried
it, but that is my suggestion.):
<ant target="axisWsdl2Java">
<reference torefid="maven.runtime.classpath"
refid="maven.runtime.classpath"/>
</ant>
-Max
Lee Meador wrote:
Does anyone have any ideas on why I can't get the maven classpath in my
ant
script?
6/13/06, Lee Meador <lee (AT) leemeador (DOT) comwrote:
>>
>Kenney,
>>
>Well you said it shouldn't matter and it didn't.
>>
>I had checked that the -X showed it using 1.1 but who knows?
>>
>Thanks.
>>
>NTE T ALL: More ideas are welcome
>>
>-- Lee
>>
>>
>6/13/06, Kenney Westerhof <kenney (AT) apache (DOT) orgwrote:
>>
>Tue, 13 Jun 2006, Lee Meador wrote:
>>
>Try pasting this in the pom.xml in place of the <ant/tag. Shouldn't
>matter, but who knows.
>>
>Maybe you're still using maven-antrun-plugin 1.0, try adding
><version1.1</versionbelow the <plugintag.
>>
>-- Kenney
>>
><path id="axis.classpath">
><path refid="maven.runtime.classpath"/>
></path>
>>
><taskdef resource="axis-tasks.properties" classpathref="
>axis.classpath"
>/>
>>
>>
>6/12/06, Kenney Westerhof < kenney (AT) apache (DOT) orgwrote:
>>
>Mon, 12 Jun 2006, Lee Meador wrote:
>>
>Hi,
>>
>I can't reproduce this with 'inheritRefs="true"'.
>>
>What do you have in your build.xml?
>>
>-- Kenney
>>
>I went to here to see how to let ant get to some maven
>classpaths:
>>
>>
>
>>
>I have a build.xml file that I run with this in my pom:
>>
><build>
><plugins>
><plugin>
><artifactId>maven-antrun-plugin</artifactId>
><executions>
><execution>
><phase>generate-sources</phase>
><goals>
><goal>run</goal>
></goals>
><configuration>
><tasks>
><ant inheritRefs="true"
>target="axisWsdl2Java" antfile="build.xml" dir="." />
></tasks>
><sourceRoot>${
>project.build.directory
>}/generated-sources/java</sourceRoot>
></configuration>
></execution>
></executions>
></plugin>
></plugins>
></build>
>>
>But it complains that:
>>
>[ERRR] BUILD ERRR
>[INF]
>>
>>
>>
>[INF] Error executing ant tasks
>>
>Embedded error: The following error occurred while executing
this
>line:
>[path here]\build.xml:31: Reference maven.runtime.classpath not
>>
>Any ideas? Is the doc page up to date?
>>
>Thanks.
>>
>--
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
>>
>--
>Kenney Westerhof
>http://www.neonics.com
>GPG public key:
>http://www.gods.nl/~forge/kenneyw.key<
http://www.gods.nl/%7Eforge/kenneyw.key>
>>
>>
>>
>
>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>
>>
>>
>>
>--
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
>>
>--
>Kenney Westerhof
>http://www.neonics.com
>GPG public key:
>http://www.gods.nl/~forge/kenneyw.key<
http://www.gods.nl/%7Eforge/kenneyw.key>
>>
>>
>
>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>
>>
>>
>>
>--
>>
>-- Lee Meador
>Sent from gmail. My real email address is lee (AT) leemeador (DOT) com
>>
>
>
>
>
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>
>
>
>
No.9 | | 81 bytes |
| 
I give. None of this works.
See here for
the explanation and an example
No.10 | | 1820 bytes |
| 
Here is how I got it to work:
In the PM I have this:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<property refid="maven.compile.classpath"
name="cp2"></property>
<ant inheritRefs="true" antfile="build.xml"
dir="${basedir}">
<target name="axisWsdl2Java"></target>
</ant>
</tasks>
<sourceRoot>${project.build.directory
}/generated-sources/java</sourceRoot>
</configuration>
</execution>
</executions>
</plugin>
Furthermore, I have added the axis-ant jar to the dependencies in the
compile classpath. (NTE: It just occurred to me that it should probably be
in the test classpath or somewhere else that doesn't get it into my ear
file. Does anyone have a suggestion as to which classpath is the appropriate
place for a jar that is used only to generate code in an ant script that is
called during the generate sources phase?)
Anyway, then I put the following in my build.xml:
<path id="axis.classpath" path="${cp2}"></path>
<taskdef name="axis-wsdl2java" classname="
">
<classpath refid="axis.classpath" />
</taskdef>
Then use 'axis-wsdl2java' in the normal way to generate java from the wsdl
using the axis ant tool.
-- Lee
8/20/06, Dave Syer <david_syer (AT) hotmail (DOT) comwrote:
>
>
>
I give. None of this works.
See here for
the explanation and an example