[ 
https://issues.apache.org/jira/browse/MNG-5840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14574209#comment-14574209
 ] 

Stephen Connolly commented on MNG-5840:
---------------------------------------

Here is the test case working on maven 3.2.5

{code}
[stephenc@stevo ~/tmp/mng-5840-testcase]$ brew switch maven 3.2.5
Cleaning /usr/local/Cellar/maven/3.2.1
Cleaning /usr/local/Cellar/maven/3.2.2
Cleaning /usr/local/Cellar/maven/3.2.3
Cleaning /usr/local/Cellar/maven/3.2.5
Cleaning /usr/local/Cellar/maven/3.3.1
Cleaning /usr/local/Cellar/maven/3.3.3
3 links created for /usr/local/Cellar/maven/3.2.5
[stephenc@stevo ~/tmp/mng-5840-testcase]$ ./test.sh 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building parent 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ parent ---
[INFO] Installing /Users/stephenc/tmp/mng-5840-testcase/parent-1/pom.xml to 
/Users/stephenc/.m2/repository/org/example/bug/parent/1/parent-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.321 s
[INFO] Finished at: 2015-06-05T10:37:03+01:00
[INFO] Final Memory: 8M/245M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building child 1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4:enforce (default) @ child ---
[INFO] Skipping Rule Enforcement.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.495 s
[INFO] Finished at: 2015-06-05T10:37:04+01:00
[INFO] Final Memory: 9M/245M
[INFO] ------------------------------------------------------------------------
{code}

And here is the test case failing on 3.3.1

{code}
[stephenc@stevo ~/tmp/mng-5840-testcase]$ brew switch maven 3.3.1
Cleaning /usr/local/Cellar/maven/3.2.1
Cleaning /usr/local/Cellar/maven/3.2.2
Cleaning /usr/local/Cellar/maven/3.2.3
Cleaning /usr/local/Cellar/maven/3.2.5
Cleaning /usr/local/Cellar/maven/3.3.1
Cleaning /usr/local/Cellar/maven/3.3.3
5 links created for /usr/local/Cellar/maven/3.3.1
[stephenc@stevo ~/tmp/mng-5840-testcase]$ ./test.sh 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building parent 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ parent ---
[INFO] Installing /Users/stephenc/tmp/mng-5840-testcase/parent-1/pom.xml to 
/Users/stephenc/.m2/repository/org/example/bug/parent/1/parent-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.327 s
[INFO] Finished at: 2015-06-05T10:38:07+01:00
[INFO] Final Memory: 8M/245M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building child 1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4:enforce (default) @ child ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.AlwaysFail failed with 
message:
Always fails!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.490 s
[INFO] Finished at: 2015-06-05T10:38:09+01:00
[INFO] Final Memory: 10M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:1.4:enforce (default) on project 
child: Some Enforcer rules have failed. Look above for specific messages 
explaining why the rule failed. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{code}

and also on 3.3.3

{code}
[stephenc@stevo ~/tmp/mng-5840-testcase]$ brew switch maven 3.3.3
Cleaning /usr/local/Cellar/maven/3.2.1
Cleaning /usr/local/Cellar/maven/3.2.2
Cleaning /usr/local/Cellar/maven/3.2.3
Cleaning /usr/local/Cellar/maven/3.2.5
Cleaning /usr/local/Cellar/maven/3.3.1
Cleaning /usr/local/Cellar/maven/3.3.3
5 links created for /usr/local/Cellar/maven/3.3.3
[stephenc@stevo ~/tmp/mng-5840-testcase]$ ./test.sh 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building parent 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ parent ---
[INFO] Installing /Users/stephenc/tmp/mng-5840-testcase/parent-1/pom.xml to 
/Users/stephenc/.m2/repository/org/example/bug/parent/1/parent-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.327 s
[INFO] Finished at: 2015-06-05T10:38:36+01:00
[INFO] Final Memory: 8M/245M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building child 1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4:enforce (default) @ child ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.AlwaysFail failed with 
message:
Always fails!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.487 s
[INFO] Finished at: 2015-06-05T10:38:38+01:00
[INFO] Final Memory: 10M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:1.4:enforce (default) on project 
child: Some Enforcer rules have failed. Look above for specific messages 
explaining why the rule failed. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{code}

> <relativePath> is used if the groupId and artifactId match irrespective of 
> the version
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-5840
>                 URL: https://issues.apache.org/jira/browse/MNG-5840
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.3.1, 3.3.3
>            Reporter: Stephen Connolly
>              Labels: regression
>         Attachments: mng-5840-testcase.tar.gz
>
>
> This is a regression. (In my view a serious one)
> Works fine with Maven 3.0 through 3.2.5
> Fails with 3.3.1 and 3.3.3



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to