You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tomislav Stojcevich (JIRA)" <ji...@codehaus.org> on 2006/03/29 03:22:44 UTC

[jira] Commented: (MNG-1980) "Duplicate project ID found" message with maven-artifact-ant-2.0.2

    [ http://jira.codehaus.org/browse/MNG-1980?page=comments#action_62221 ] 

Tomislav Stojcevich commented on MNG-1980:
------------------------------------------

I am sure I'm not referencing an old version.  I have the jar in my ${user.home}/.ant/lib directory.  I deleted maven-artifact-ant-2.0-dep.jar and put in maven-artifact-ant-2.0.3-dep.jar.

The 2.0 jar of course didn't produce this error, the error did show up when using the 2.0.3 jar.  Also, when I tried it from building the 2.1 jar from the trunk months ago, it also worked.  See comment from 31/Jan/06.

I just compared your test script.  I found a difference.  In my <artifact:install>, which is when the error shows up, I have <pom file="../pom.xml"/>  I changed it to <pom refId="maven.project"/>.  That's what I should be using anyway since I create the reference in the script.

I guess we can keep this closed since it there is a viable workaround and appears to be fixed in the 2.1 version.  You may consider adding a test case using the "<pom file" in the artifact install since it is broken in my particular setup.  Also note that my pom isn't in the same directory as my ant build file.  That combination might be whats throwing it off.

> "Duplicate project ID found" message with maven-artifact-ant-2.0.2
> ------------------------------------------------------------------
>
>          Key: MNG-1980
>          URL: http://jira.codehaus.org/browse/MNG-1980
>      Project: Maven 2
>         Type: Bug

>   Components: Ant tasks
>     Versions: 2.0.2
>     Reporter: Tomislav Stojcevich
>     Assignee: Jason van Zyl
>      Fix For: 2.0.3

>
>
> The same bug that was reported as fixed MNG-1851 still shows up with 2.0.2.
> [artifact:install] An error has occurred while processing the Maven artifact tasks.
> [artifact:install]  Diagnosis:
> [artifact:install]
> [artifact:install] Unable to build project: D:\Projects\Development\app\pom.xml
> [artifact:install] Duplicate project ID found in D:\Projects\Development\app\pom.xml
> [artifact:install]
> BUILD FAILED
> D:\Projects\Development\app\ant\build.xml:166: Unable to build project: D:\Projects\Development\app\pom.xml

-- 
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