You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jochen Stiepel (JIRA)" <ji...@codehaus.org> on 2010/05/31 11:56:12 UTC
[jira] Created: (MNG-4695) Missing Error during pom validation:
"You cannot have two plugin executions with the same (or missing)
elements."
Missing Error during pom validation: "You cannot have two plugin executions with the same (or missing) <id/> elements."
-----------------------------------------------------------------------------------------------------------------------
Key: MNG-4695
URL: http://jira.codehaus.org/browse/MNG-4695
Project: Maven 2 & 3
Issue Type: Bug
Components: Plugins and Lifecycle
Affects Versions: 3.0-beta-1
Environment: Maven 3.0 beta1, Java 6.0.18
Reporter: Jochen Stiepel
Maven 2.2.1 gives an error "You cannot have two plugin executions with the same (or missing) <id/> elements.", if there are two executions for the same plugin without an id element.
Maven 3.0 beta1 doesn't throw this usefull validation error. It uses the first configuration for both executions.
A relatet issue, where this error has occured with an attached example: http://jira.codehaus.org/browse/MRPM-76
--
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
[jira] Closed: (MNG-4695) Missing Error during pom validation: "You
cannot have two plugin executions with the same (or missing)
elements."
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4695.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0-beta-2
Assignee: Benjamin Bentmann
Fixed in [r949720|http://svn.apache.org/viewvc?view=revision&revision=949720].
> Missing Error during pom validation: "You cannot have two plugin executions with the same (or missing) <id/> elements."
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: MNG-4695
> URL: http://jira.codehaus.org/browse/MNG-4695
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Plugins and Lifecycle
> Affects Versions: 3.0-beta-1
> Environment: Maven 3.0 beta1, Java 6.0.18
> Reporter: Jochen Stiepel
> Assignee: Benjamin Bentmann
> Fix For: 3.0-beta-2
>
>
> Maven 2.2.1 gives an error "You cannot have two plugin executions with the same (or missing) <id/> elements.", if there are two executions for the same plugin without an id element.
> Maven 3.0 beta1 doesn't throw this usefull validation error. It uses the first configuration for both executions.
> A relatet issue, where this error has occured with an attached example: http://jira.codehaus.org/browse/MRPM-76
--
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
[jira] Commented: (MNG-4695) Missing Error during pom validation:
"You cannot have two plugin executions with the same (or missing)
elements."
Posted by "Jochen Stiepel (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=223202#action_223202 ]
Jochen Stiepel commented on MNG-4695:
-------------------------------------
the maven 2.2.1 console output, that is missing in maven 3.0 beta1
Project ID: apps:config-rpm
POM Location: /home/sti/maven-TRUNK/apps/config-rpm/pom.xml
Validation Messages:
[0] You cannot have two plugin executions with the same (or missing) <id/> elements.
Offending execution
Id: 'default'
Plugin:'org.codehaus.mojo:rpm-maven-plugin'
Reason: Failed to validate POM for project apps:config-rpm at /home/sti/maven-TRUNK/apps/config-rpm/pom.xml
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project config-rpm at /home/sti/maven-TRUNK/apps/config-rpm/pom.xml
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to validate POM for project nivadis.apps:vbs-polas-config-rpm at /home/sti/maven-TRUNK/apps/config-rpm/pom.xml
at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1077)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
... 12 more
> Missing Error during pom validation: "You cannot have two plugin executions with the same (or missing) <id/> elements."
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: MNG-4695
> URL: http://jira.codehaus.org/browse/MNG-4695
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Plugins and Lifecycle
> Affects Versions: 3.0-beta-1
> Environment: Maven 3.0 beta1, Java 6.0.18
> Reporter: Jochen Stiepel
> Assignee: Benjamin Bentmann
> Fix For: 3.0-beta-2
>
>
> Maven 2.2.1 gives an error "You cannot have two plugin executions with the same (or missing) <id/> elements.", if there are two executions for the same plugin without an id element.
> Maven 3.0 beta1 doesn't throw this usefull validation error. It uses the first configuration for both executions.
> A relatet issue, where this error has occured with an attached example: http://jira.codehaus.org/browse/MRPM-76
--
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