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

Shane Isbell commented on MNG-3856:
-----------------------------------

The ${maven.version} interpolation is tricky. There are deployed poms in the 
repo that have this property. If we specify a default ${maven.version} property 
as 3.x, it may blow up on class not found exceptions.  There is no way to know 
what the intended version is supposed to be.

We should consider restricting from allowing this value to pass through 
un-interpolated prior to deploy.

> Fix interpolation to correctly treat all interpolated variables
> ---------------------------------------------------------------
>
>                 Key: MNG-3856
>                 URL: http://jira.codehaus.org/browse/MNG-3856
>             Project: Maven 2
>          Issue Type: Bug
>            Reporter: Oleg Gusakov
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-2
>
>
> There are several dependencies that have non-replaced variables, coming from 
> maven-mercury implementation:
> {code}
> ======>  org.apache.maven.plugins:maven-changelog-plugin:2.1::jar
> org.apache.maven.mercury.metadata.MetadataTreeException: did not find 
> non-optional artifact for 
> org.apache.maven.scm:maven-scm-api:${maven-scm.version}::jar <== 
> org.apache.maven.plugins:maven-changelog-plugin:2.1::jar
>  
> ======>  org.apache.maven.plugins:maven-dependency-plugin:2.0::jar
> org.apache.maven.mercury.metadata.MetadataTreeException: did not find 
> non-optional artifact for 
> org.apache.maven:maven-artifact:${maven.version}::jar <== 
> org.apache.maven.plugins:maven-dependency-plugin:2.0::jar
>  
> ======>  org.apache.maven.plugins:maven-deploy-plugin:2.4::jar
>  
> ======>  org.apache.maven.plugins:maven-ear-plugin:2.3.1::jar
> org.apache.maven.mercury.metadata.MetadataTreeException: did not find 
> non-optional artifact for ${pom.groupId}:wagon-http-shared:1.0-beta-2::jar 
> <== org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-2::jar <== 
> org.apache.maven:maven-core:2.0.6::jar <== 
> org.apache.maven.plugins:maven-deploy-plugin:2.4::jar
>  
> ======>  org.apache.maven.plugins:maven-javadoc-plugin:2.4::jar
> org.apache.maven.mercury.metadata.MetadataTreeException: did not find 
> non-optional artifact for 
> org.apache.maven.doxia:doxia-sink-api:${doxiaVersion}::jar <== 
> org.apache.maven.plugins:maven-javadoc-plugin:2.4::jar
>  
>  
> ======>  org.apache.maven.plugins:maven-plugin-plugin:2.4.3::jar
> org.apache.maven.mercury.metadata.MetadataTreeException: did not find 
> non-optional artifact for 
> org.apache.maven.doxia:doxia-sink-api:${doxiaVersion}::jar <== 
> org.apache.maven.plugins:maven-plugin-plugin:2.4.3::jar
>  
> ======>  org.apache.maven.plugins:maven-remote-resources-plugin:1.0::jar
> org.apache.maven.mercury.metadata.MetadataTreeException: did not find 
> non-optional artifact for ${pom.groupId}:wagon-http-shared:1.0-beta-2::jar 
> <== org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-2::jar <== 
> org.apache.maven:maven-core:2.0.5::jar <== 
> org.apache.maven.plugins:maven-remote-resources-plugin:1.0::jar
>  
>  
> ======>  org.apache.maven.plugins:maven-surefire-plugin:2.4.3::jar
> org.apache.maven.mercury.metadata.MetadataTreeException: did not find 
> non-optional artifact for ${pom.groupId}:wagon-http-shared:1.0-beta-2::jar 
> <== org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-2::jar <== 
> org.apache.maven:maven-core:2.0.6::jar <== 
> org.apache.maven.plugins:maven-surefire-plugin:2.4.3::jar
> {code}

-- 
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