[ 
http://jira.codehaus.org/browse/MNG-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147368#action_147368
 ] 

Paul Benedict commented on MNG-3746:
------------------------------------

I am not quite sure what the correct solution is. Obviously, properties like 
java.version are really important, and if they can be overridden, that might 
lead to some unpredictable expectations.

I'd rather Maven err if such properties like java.* exist. However, if it is 
pre-existing behavior, maybe it's worth continuing.... but I must admit I feel 
that my code was inappropriate to use that property namespace.

> POM properties do not override default system properties during POM 
> interpolation
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-3746
>                 URL: http://jira.codehaus.org/browse/MNG-3746
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.1.0-M1
>            Reporter: John Casey
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.1.0-M1
>
>
> From Paul Benedict, on the maven dev list:
> {noformat}
> My issue might be related to MNG-3535.
> I defined this property:
> <java.version>1.6</java.version>
> And used it in my compiler plugin:
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-compiler-plugin</artifactId>
>   <configuration>
>     <source>${java.version}</source>
>     <target>${java.version}</target>
>   </configuration>
> </plugin>
> I know this use to work before 2.0.10, but now it does not.
> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
> javac: invalid target release: 1.6.0_06
> Usage: javac <options> <source files>
> use -help for a list of possible options
> The error here is that ${java.version} is not the value I specified,
> but one that already exists.
> Paul
> {noformat}
> I've replicated the problem in a separate test mock-up project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to