[
http://jira.codehaus.org/browse/ARCHETYPE-339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=257126#action_257126
]
Herve Boutemy commented on ARCHETYPE-339:
-----------------------------------------
I just hit the same issue, caused by the fact that the initial project had a
one-level-only package name
then package == packageInPathFormat, and the archetype creation replaces the
packageInPathFormat variable before package
FYI, I just fixed my case by having the sample project in foo.bar package
instead of foo: see [r1073199|http://svn.apache.org/viewvc?rev=1073199&view=rev]
BTW, I'll have a look at the code to try to detect this cas and force
${package} instead of ${packageInPathFormat] when their value is the same
> create-from-project goal should default to using ${package} instead of
> ${packageInPathFormat}
> ---------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-339
> URL: http://jira.codehaus.org/browse/ARCHETYPE-339
> Project: Maven Archetype
> Issue Type: Bug
> Components: Creator
> Affects Versions: 2.0-alpha-5
> Reporter: Brian Sanders
> Priority: Minor
> Attachments: entityProviders.xml, Installer.java
>
>
> In my particular case, ${packageInPathFormat} is used in all generated files
> when ${package} should have been. In my XML and java files,
> ${packageInPathFormat} did not make sense. Maybe there are other cases where
> it would work. Just seems like ${package} should either be the default, or
> there should be an option to specify. I attached a few generated files to
> illustrate the issue.
--
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