[
https://issues.apache.org/jira/browse/MRELEASE-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17722750#comment-17722750
]
Guillaume Nodet commented on MRELEASE-1123:
-------------------------------------------
The issue is caused by the new xml api. The {{XmlPlexusConfiguration}} from
plexus is a final class and has not been changed in any way, however, maven 4
now builds a {{org.apache.maven.internal.xml.XmlPlexusConfiguration}} which
also implements the {{PlexusConfiguration}} interface, but does not inherit the
{{org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration.}}
I'd suggest to change the release plugin to use the interface instead of the
{{org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration}} which actually
does not bring anything.
[https://github.com/apache/maven-release/blob/master/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java#L253]
> Maven Release plugin doesn't work in maven 4
> --------------------------------------------
>
> Key: MRELEASE-1123
> URL: https://issues.apache.org/jira/browse/MRELEASE-1123
> Project: Maven Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 3.0.0
> Environment: Any
> Reporter: Lenny Primak
> Priority: Blocker
>
> {code:java}
> mvn -B -ntp -C release:prepare release:perform{code}
>
> {code:java}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:3.0.0:prepare (default-cli) on
> project flowlogix: Unable to parse configuration of mojo
> org.apache.maven.plugins:maven-release-plugin:3.0.0:prepare for parameter
> projectVersionPolicyConfig: Cannot set 'projectVersionPolicyConfig' in class
> org.apache.maven.plugins.release.PrepareReleaseMojo: Can not set
> org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration field
> org.apache.maven.plugins.release.PrepareReleaseMojo.projectVersionPolicyConfig
> to org.apache.maven.internal.xml.XmlPlexusConfiguration -> [Help 1]{code}
> Maven 4.0.0-alpha-5 and release plugin 3.0.0
--
This message was sent by Atlassian Jira
(v8.20.10#820010)