Hi Brett,
 Where is the antrun property maven.dependency.classpath or any other
properties documented?
 I also had some problem with ant+maven.
sample ant tasks:
 <target name="initTaskDefs">
<!-- don't forget to update the version! -->
<taskdef resource="org/apache/maven/artifact/ant/antlib.xml"
classpath="lib/maven-artifact-ant-2.0-dep.jar">
</taskdef>
</target>

<target name="test-pom" depends="initTaskDefs">
<pom file="pom.xml" id="maven.project" />

<echo>Artifact ID = ${maven.project.artifactId}</echo>
<echo>The target dir is ${maven.project.build.directory}</echo>

<dependencies verbose="true" pathId="dependency.classpath">
<dependency groupId="commons-logging" artifactId="commons-logging" version="
1.0" />
</dependencies>
</target>
During execution of
<dependency groupId="commons-logging" artifactId="commons-logging" version="
1.0" />
I got following exception:
java.lang.NoClassDefFoundError: org/apache/tools/ant/types/FileList$FileName
at org.apache.maven.artifact.ant.DependenciesTask.doExecute(
DependenciesTask.java:
207)
at org.apache.maven.artifact.ant.AbstractArtifactTask.execute
(AbstractArtifactTask
.java:451)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
It seems that within maven antlib, the original ant classes can not be
found. Do you know something about this?
 Yudong
 On 11/3/05, Frank Mena <[EMAIL PROTECTED]> wrote:
>
> Is there is list of the properties available?
>
> - Frank
>
> On 11/2/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> >
> > It's a reference, you can't echo it.
> >
> > try:
> > <property name="out" refid="maven.dependency.classpath" />
> > <echo>${out}</echo>
> >
> > On 11/3/05, Frank Mena <[EMAIL PROTECTED]> wrote:
> > > I tried it and it did not work:
> > >
> > > <plugins>
> > > <plugin>
> > > <artifactId>maven-antrun-plugin</artifactId>
> > > <executions>
> > > <execution>
> > > <phase>compile</phase>
> > > <configuration>
> > > <tasks>
> > > <echo>${maven.dependency.classpath}</echo>
> > > </tasks>
> > > </configuration>
> > > <goals>
> > > <goal>run</goal>
> > > </goals>
> > > </execution>
> > > </executions>
> > > </plugin>
> > > </plugins>
> > >
> > >
> > > On 11/2/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > > >
> > > > How are you using Ant?
> > > >
> > > > The antrun plugin exposes maven.dependency.classpath as a reference.
> > > >
> > > > - Brett
> > > >
> > > > On 11/3/05, Frank Mena <[EMAIL PROTECTED]> wrote:
> > > > > Using M2, how do I get the the projects classpath (which includes
> > > > multiple
> > > > > modules) in ant? Can I assume this classpath would include the
> > > > > target/classes directory for all the included modules?
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

Reply via email to