[ 
https://jira.codehaus.org/browse/MRELEASE-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=351156#comment-351156
 ] 

Robert Scholte commented on MRELEASE-882:
-----------------------------------------

There are 2 things really weird: 
- none of the [fixed issues of 
2.5|https://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11144&version=19017]
 seems to be related to this.
- The release perform is very straightforward: checkout the code by tag into 
the {{target/checkout}}-directory and from this directory run {{mvn deploy 
site-deploy}}. You could try to do the latter part by hand and it will give you 
the same result. Try to figure out what has happened with the pom.

> [regression] Perform fails because usage of site plugin with wrong version
> --------------------------------------------------------------------------
>
>                 Key: MRELEASE-882
>                 URL: https://jira.codehaus.org/browse/MRELEASE-882
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: perform
>    Affects Versions: 2.5
>            Reporter: Jörg Schaible
>
> 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):
> {noformat}
> [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)
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to