Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.5
-
None
-
None
Description
We use M322 and define the version 3.4 for the site plugin in our POM using a version property. The output of help:effective-pom verifies that the site-plugin is declared using version 3.4. However, release:perform fails with (snippet):
[INFO] --- maven-release-plugin:2.5:perform (default-cli) @ master --- [INFO] Checking out the project to perform the release ... ... [INFO] [INFO] --- maven-site-plugin:3.0-beta-3:site (default-site) @ master --- [INFO] [WARNING] Error injecting: org.apache.maven.plugins.site.DefaultMavenReportExecutor [INFO] java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter [INFO] at java.lang.Class.getDeclaredConstructors0(Native Method) [INFO] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
Obviously the release:perform goal of the release plugin in version 2.5 uses now version 3.0-beta-3 of the site plugin with is incompatible.
When we go back to version 2.4.2 of the release plugin, it uses the correct (declared) version of the site plugin and the release is performed successfully.
Comparing the used plugin versions during release:perform, it is not only the version of the site plugin that is wrong. It seems that any declared plugin version is simply ignored with release plugin version 2.5.