You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2010/05/10 19:47:12 UTC
[jira] Moved: (MARCHETYPES-3) Incorrect after using
archetype:create
[ http://jira.codehaus.org/browse/MARCHETYPES-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy moved ARCHETYPE-156 to MARCHETYPES-3:
---------------------------------------------------
Component/s: (was: Plugin)
Key: MARCHETYPES-3 (was: ARCHETYPE-156)
Project: Maven Archetype Bundles (was: Maven Archetype)
> Incorrect <parent> after using archetype:create
> -----------------------------------------------
>
> Key: MARCHETYPES-3
> URL: http://jira.codehaus.org/browse/MARCHETYPES-3
> Project: Maven Archetype Bundles
> Issue Type: Bug
> Environment: Windows XP
> Maven 2.0.7
> Reporter: Per Lindfors
> Priority: Minor
> Attachments: flatHierarchySupport.patch
>
>
> Hi,
> I'm not sure if this is a bug or lack of functionality, but here it goes...
> It seems that the archetype plugin (2.0-alpha-2) and the create-goal somehow alters the information in the <parent> segment of the resulting pom compared to what we have in the "template" pom.
> In my case we would like to be able to have a root pom project with multiple modules(ejb, war, jar etc). Each module has a <parent> which points to a "super pom" in our repository instead of the root pom project. When creating the modules with our archetype the module gets registred in the <modules> segment in the root pom project, but the <parent> segment with groupId and artifactId etc referes not to the "super pom" in our repo, but to the root project. Why?
> Desired result:
> Root project pom.xml
> -------------------------------
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>se.xxx.yyy</groupId>
> <artifactId>yyy</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>pom</packaging>
> <name></name>
> <build>
> ......
> </build>
> <modules>
> <module>project1</module>
> <module>project2</module>
> <module>project3</module>
> </modules>
> Modules pom.xml
> --------------------------------------
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>superpom-groupid</groupId>
> <artifactId>superpom-artifactId</artifactId>
> <version>superpom-version</version>
> </parent>
> <groupId>se.aaa.bbb</groupId>
> <artifactId>project1</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>war</packaging>
> ...
> /Per
--
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