You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mike Wallace <mi...@yahoo.com> on 2011/11/14 17:59:45 UTC
Maven Ant Tasks: Reading from an existing pom
I'm attempting to run a simple ant task that reads an existing pom.xml.
However, when the task gets to the pom reading line, it says:
[artifact:pom] Unable to create dummy Pom
[artifact:pom] Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutlib.
Here's the build.xml:
<project xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<path id="maven-ant-tasks.classpath" path="maven-ant-tasks-2.1.3.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
uri="antlib:org.apache.maven.artifact.ant"
classpathref="maven-ant-tasks.classpath" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
classpath="/repository/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar" />
<target name="build">
<artifact:pom id="mypom" file="pom.xml" />
...
Any ideas?
Thanks,
Mike