create-from-project replaces too many things in the pom with variables
----------------------------------------------------------------------
Key: ARCHETYPE-87
URL: http://jira.codehaus.org/browse/ARCHETYPE-87
Project: Maven Archetype
Issue Type: Bug
Affects Versions: NG-1.0-alpha-1
Reporter: Brian Fox
Priority: Blocker
Using the maven-integration-test-sample project, and create-from-project, I
find that the processed pom has every fragment of the group,artifactid and
version replaced. It's not a safe assumption that everything with the same
version (and other values) should be generic. For example, if my sample project
has 1.0 as a version, every version 1.0 will be replaced, even if it's
something completely unrelated to my project.
Example output:
{noformat}
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<name>Maven Integration Tests</name>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-verifier</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its</groupId>
<artifactId>maven-integration-test-helper</artifactId>
<version>${version}</version>
</dependency>
{noformat}
--
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