[ http://jira.codehaus.org/browse/MANTTASKS-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter moved MNG-1851 to MANTTASKS-47: -------------------------------------------- Affects Version/s: (was: 2.0.1) 2.0.1 Fix Version/s: (was: 2.0.2) 2.0.2 Component/s: (was: Ant tasks) Complexity: (was: Expert) Key: MANTTASKS-47 (was: MNG-1851) Project: Maven 2.x Ant Tasks (was: Maven 2) > "Duplicate project ID found" message with maven-artifact-ant-2.0.1 > ------------------------------------------------------------------ > > Key: MANTTASKS-47 > URL: http://jira.codehaus.org/browse/MANTTASKS-47 > Project: Maven 2.x Ant Tasks > Issue Type: Bug > Affects Versions: 2.0.1 > Reporter: John Casey > Assignee: John Casey > Priority: Blocker > Fix For: 2.0.2 > > > from the original email: > I tried upgrading my Maven 2 Ant Tasks' JAR tonight, and after doing > so, I'm getting the following error: > foxxy:~/dev/equinox mraible$ ant war > Buildfile: build.xml > init: > [artifact:dependencies] An error has occurred while processing the > Maven artifact tasks. > [artifact:dependencies] Diagnosis: > [artifact:dependencies] > [artifact:dependencies] Unable to build project: > /Users/mraible/Work/equinox/pom.xml > [artifact:dependencies] Duplicate project ID found in > /Users/mraible/Work/equinox/pom.xml > BUILD FAILED > /Users/mraible/Work/equinox/build.xml:27: Unable to build project: > /Users/mraible/Work/equinox/pom.xml > Total time: 2 seconds > foxxy:~/dev/equinox mraible$ > I haven't been able to find the "duplicate project id" the error is > referring to. The strange thing is if I run "mvn package" on my > project, everything works fine with Maven 2.0.1. If I revert my > maven-artifact-ant-2.0.1-dep.jar to maven-artifact-ant-2.0-dep.jar, > everything works as expected. > Here's how I declare the Maven Ant tasks in my build.xml: > <target name="init" description="Initializes tasks and downloads > dependencies"> > <typedef resource="org/apache/maven/artifact/ant/antlib.xml" > uri="urn:maven-artifact-ant"> > <classpath> > <pathelement > location="${basedir}/lib/maven-artifact-ant-2.0-dep.jar" /> > </classpath> > </typedef> > <artifact:pom file="pom.xml" id="maven.project"/> > Here's line 27 of build.xml: > <artifact:dependencies pathId="compile.classpath" > filesetId="compile.fileset" useScope="compile"> > <pom refid="maven.project"/> > </artifact:dependencies> > Thanks, > Matt > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira