You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/11/25 21:48:55 UTC

[jira] (ARCHETYPE-310) Incorrect after using archetype:create

     [ https://jira.codehaus.org/browse/ARCHETYPE-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed ARCHETYPE-310.
------------------------------------

    Resolution: Won't Fix

Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

> Incorrect <parent> after using archetype:create
> -----------------------------------------------
>
>                 Key: ARCHETYPE-310
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-310
>             Project: Maven Archetype
>          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
> -------------------------------
> {code: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>{code}
> Modules pom.xml
> --------------------------------------
> {code: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>
>     ...
> {code}
> /Per



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)