You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2005/12/15 22:30:05 UTC
[jira] Created: (MNG-1851) "Duplicate project ID found" message
with maven-artifact-ant-2.0.1
"Duplicate project ID found" message with maven-artifact-ant-2.0.1
------------------------------------------------------------------
Key: MNG-1851
URL: http://jira.codehaus.org/browse/MNG-1851
Project: Maven 2
Type: Bug
Components: Ant tasks
Versions: 2.0.1
Reporter: John Casey
Assigned to: 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1851) "Duplicate project ID found" message
with maven-artifact-ant-2.0.1
Posted by "Tomislav Bodor (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1851?page=comments#action_53942 ]
Tomislav Bodor commented on MNG-1851:
-------------------------------------
I *was* looking at trunk. I thought as a bug fix it would make it in there. Anyway, I checked the maven-2.0.x branch now and I see the change.
Something is still not entirely clear, though: what is the 2.0.2-SNAPSHOT built from - trunk or that branch (the snapshot I refer to is the one at http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/maven-artifact-ant/2.0.2-SNAPSHOT/maven-artifact-ant-2.0.2-20051220.231658-1-dep.jar)?
I know this is unofficial, but thought it would be useful to test whether this issue was resolved and to see if I run into any others (at the moment can't get past the duplicate project ID, so can't tell what else might be broken). So, I got it and it has the same bahaviour as 2.0.1. Hence the confusion...
> "Duplicate project ID found" message with maven-artifact-ant-2.0.1
> ------------------------------------------------------------------
>
> Key: MNG-1851
> URL: http://jira.codehaus.org/browse/MNG-1851
> Project: Maven 2
> Type: Bug
> Components: Ant tasks
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1851) "Duplicate project ID found" message
with maven-artifact-ant-2.0.1
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1851?page=comments#action_53903 ]
Brett Porter commented on MNG-1851:
-----------------------------------
r357237
Are you sure you aren't looking at trunk?
> "Duplicate project ID found" message with maven-artifact-ant-2.0.1
> ------------------------------------------------------------------
>
> Key: MNG-1851
> URL: http://jira.codehaus.org/browse/MNG-1851
> Project: Maven 2
> Type: Bug
> Components: Ant tasks
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1851) "Duplicate project ID found" message
with maven-artifact-ant-2.0.1
Posted by "Tomislav Bodor (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1851?page=comments#action_53902 ]
Tomislav Bodor commented on MNG-1851:
-------------------------------------
I have looked at the current 2.0.2 snapshot (and svn trunk) and there doesn't seem to be any difference in behaviour (or code). Is this fix committed?
> "Duplicate project ID found" message with maven-artifact-ant-2.0.1
> ------------------------------------------------------------------
>
> Key: MNG-1851
> URL: http://jira.codehaus.org/browse/MNG-1851
> Project: Maven 2
> Type: Bug
> Components: Ant tasks
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1851) "Duplicate project ID found" message
with maven-artifact-ant-2.0.1
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1851?page=comments#action_54198 ]
Dennis Lundberg commented on MNG-1851:
--------------------------------------
If I understand it correctly, the 2.0.2-SNAPSHOT is built from the maven-2.0.x branch.
> "Duplicate project ID found" message with maven-artifact-ant-2.0.1
> ------------------------------------------------------------------
>
> Key: MNG-1851
> URL: http://jira.codehaus.org/browse/MNG-1851
> Project: Maven 2
> Type: Bug
> Components: Ant tasks
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-1851) "Duplicate project ID found" message with
maven-artifact-ant-2.0.1
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1851?page=all ]
John Casey closed MNG-1851:
---------------------------
Resolution: Fixed
Added code preventing Pom instances from reinitializing once the mavenProject instance variable is non-null. This should prevent the underlying project builder from squawking.
> "Duplicate project ID found" message with maven-artifact-ant-2.0.1
> ------------------------------------------------------------------
>
> Key: MNG-1851
> URL: http://jira.codehaus.org/browse/MNG-1851
> Project: Maven 2
> Type: Bug
> Components: Ant tasks
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org