Jesse Glick created MNG-5226:
--------------------------------
Summary: Malformed plugin configuration <source/>1.6<source/>
quietly ignored
Key: MNG-5226
URL: https://jira.codehaus.org/browse/MNG-5226
Project: Maven 2 & 3
Issue Type: Bug
Components: Plugins and Lifecycle
Affects Versions: 2.2.1, 3.0.4
Environment: Ubuntu or Mac OS X, JDK 6 or 7
Reporter: Jesse Glick
Priority: Minor
Building a project using the following POM:
{code:xml}
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>bogus-source-attr</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source/>1.6<source/>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
{code}
succeeds without so much as a warning, despite the clearly incorrect attempt to
configure the {{source}} parameter of the compiler plugin.
{{<source/>}} might be some kind of valid configuration. (Meaning {{null}}? Or
reset to default {{1.5}} overriding parent? And what would it mean for it to
repeat?) But the stray CDATA {{1.6}} could not be interpreted as anything and
ought to be flagged by the plugin configuration parser as a warning if not an
error.
Even with {{--debug}} there is no mention of the misconfigured parameter.
--
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