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:49:54 UTC
[jira] (ARCHETYPE-356) Archetype install process substitutes
package names when creating modular projects
[ https://jira.codehaus.org/browse/ARCHETYPE-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed ARCHETYPE-356.
------------------------------------
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.
> Archetype install process substitutes package names when creating modular projects
> ----------------------------------------------------------------------------------
>
> Key: ARCHETYPE-356
> URL: https://jira.codehaus.org/browse/ARCHETYPE-356
> Project: Maven Archetype
> Issue Type: Bug
> Components: Generator
> Affects Versions: 2.0
> Reporter: Matt Raible
> Attachments: appfuse-modular-spring-archetype-2.1.0-SNAPSHOT.zip
>
>
> AppFuse has a number of imports that are contained in JARs. Therefore, after running "archetype:generate", I use Ant to change some imports from ${package}.foo to org.appfuse.foo.
> <replace dir="@{dir}/target/generated-sources/archetype/src">
> <replacetoken>import ${package}.model</replacetoken>
> <replacevalue>import org.appfuse.model</replacevalue>
> </replace>
> This works for single-module projects. However, on multi-module projects, even though the source has "org.appfuse", something in the archetype JAR-ing changes org.appfuse to ${package}.
> This does *not* happen when using the 2.0-alpha-4 version of the plugin.
> To reproduce, use the attached project and run "mvn install" on it, then create a new project using it.
> archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=myproject -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=com.mycompany -DartifactId=appfuse-modular-spring-archetype -DpackageName=com.mycompany -DarchetypeRepository=local
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)