Impossible to release projects which have compiler args such as Xlint:all
-------------------------------------------------------------------------
Key: MRELEASE-715
URL: https://jira.codehaus.org/browse/MRELEASE-715
Project: Maven 2.x Release Plugin
Issue Type: Bug
Components: prepare
Affects Versions: 2.2.1
Reporter: Steven Schlansker
Priority: Critical
Attachments: pom.xml
When you configure maven-compiler-plugin to pass arguments with a colon to
javac, such as -Xlint:all, the release plugin is no longer capable of
processing the POM file.
e.g.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<showWarnings>true</showWarnings>
<compilerArguments combine.children="append">
<Werror />
<Xlint:all />
<Xlint:-path />
</compilerArguments>
</configuration>
</plugin>
produces:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.2.1:prepare (default-cli) on
project compiler-colon-args: Error reading POM: Error on line 29: The prefix
"Xlint" for element "Xlint:all" is not bound. -> [Help 1]
A sample pom file is attached.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira