[ 
http://jira.codehaus.org/browse/ARCHETYPE-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99666
 ] 

Kenney Westerhof commented on ARCHETYPE-78:
-------------------------------------------

This is caused by the fact that -Dversion=0.1 is provided on the commandline.

The archetype poms specify ${project.version}.
RegexBasedModelInterpolator strips off the leading project. (or pom. or env.)
and checks the context object for 'version', which it contains since -Dversion 
was specified.
So in this case 0.1 is used for dependencies.

this will break with ALL maven builds that have a ${project.version} somewhere 
and -Dversion is specified.


> Dependencies listed as version ${project.version} in maven-archetype prevent 
> the use of archetypes
> --------------------------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-78
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-78
>             Project: Maven Archetype
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-4
>            Reporter: Wayne Fay
>            Priority: Critical
>
> Dependencies are listed as ${project.version} in deployed POM.
>   <dependencyManagement>
>     <dependencies>
>       <dependency>
>         <groupId>org.apache.maven.archetype</groupId>
>         <artifactId>maven-archetype-model</artifactId>
>         <version>${project.version}</version>
>       </dependency>
>       <dependency>
>         <groupId>org.apache.maven.archetype</groupId>
>         <artifactId>maven-archetype-core</artifactId>
>         <version>${project.version}</version>      
>       </dependency>      
>       <dependency>
>         <groupId>org.apache.maven.archetype</groupId>
>         <artifactId>maven-archetype-creator</artifactId>
>         <version>${project.version}</version>      
>       </dependency>      
>     </dependencies>
>   </dependencyManagement>

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