[ 
https://jira.codehaus.org/browse/MRELEASE-715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MRELEASE-715:
------------------------------------

    Description: 
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.
{code:xml}

          <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>
{code}
produces:
{noformat}
[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]
{noformat}

A sample pom file is attached.

  was:
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.

    
> 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.
> {code:xml}
>           <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>
> {code}
> produces:
> {noformat}
> [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]
> {noformat}
> A sample pom file is attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to