Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.0.8
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
Pull the staged 2.4 into your local repo, and run surefire-report:report-only on a POM configured to use 2.4. The build will fail. Try again, this time running "mvn org.apache.maven.plugins:maven-surefire-report-plugin:2.4:report-only"
-----------------------------------------------------
this realm = app0.child-container[org.apache.maven.plugins:maven-surefire-report-plugin]
urls[0] = file:/c:/weirdlocalrepo/org/apache/maven/plugins/maven-surefire-report-plugin/2.4/maven-surefire-report-plugin-2.4.jar
urls[1] = file:/c:/weirdlocalrepo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
Number of imports: 4
import: org.codehaus.classworlds.Entry@4891bb28
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@c51bc9e7
import: org.codehaus.classworlds.Entry@bece5185
this realm = plexus.core
urls[0] = file:/C:/devtools/maven-2.0.7/lib/maven-core-2.0.7-uber.jar
Number of imports: 4
import: org.codehaus.classworlds.Entry@4891bb28
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@c51bc9e7
import: org.codehaus.classworlds.Entry@bece5185
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-report-plugin:2.4:report-only': Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.4:report-only' in the p
lugin 'org.apache.maven.plugins:maven-surefire-report-plugin'
org/apache/maven/reporting/AbstractMavenReport
when using a plugin repository that is not central (for example, to test a staged release), the POM is still searched for on central, rather than <pluginRepositories>. This is not found and causes the build to break.