You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Fox (JIRA)" <ji...@codehaus.org> on 2007/08/22 02:40:47 UTC

[jira] Created: (ARCHETYPE-87) create-from-project replaces too many things in the pom with variables

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

        

[jira] Commented: (ARCHETYPE-87) create-from-project replaces too many things in the pom with variables

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106620 ] 

Brian Fox commented on ARCHETYPE-87:
------------------------------------

in multimodule archetypes, there isn't a way to update the names of the modules and the sibling dependencies aren't updated. For example, i ran it on the enforcer tree. When I create the project from the archetype, I rename the group id to org.apache.maven.checker and the artifact to checker. The groups all get updated, but inside i still have enforcer-rule, enforcer-api etc. The parent pom artifactid does get changed to checker.

Also, there are still dependencies in the modules that point to org.apache.maven.enforcer.xxxx


> 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
>            Reporter: Brian Fox
>            Assignee: Raphaël Piéroni
>            Priority: Blocker
>             Fix For: NG-1.0-alpha-1
>
>
> 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