You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org> on 2008/11/14 18:46:16 UTC

[jira] Closed: (ARCHETYPE-162) Prepend java package declaration to the java file path

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

Raphaël Piéroni closed ARCHETYPE-162.
-------------------------------------

    Resolution: Fixed

The fix for this issue is related to ARCHETYPE-192.
If one has a java file like
package ${package}.${artifactId}.${someProperty};
class ${somePrefix}Model {};
Just place it in /src/main/resources/archetype-resources/src/main/java/__artifactId__/__someProperty__
And call it __somePrefix__Model.java
And obviously use a 'packaged' fileset in your archeype-metadata.xml file

> Prepend java package declaration to the java file path
> ------------------------------------------------------
>
>                 Key: ARCHETYPE-162
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-162
>             Project: Maven Archetype
>          Issue Type: Improvement
>          Components: Creator
>    Affects Versions: 2.0-alpha-2
>            Reporter: Bruno Bieth
>             Fix For: 2.0-alpha-5
>
>
> If I define a java class like that :
> {code:java}
> package ${package}.another.package;
> public class AClass {
> ...
> }
> {code}
> Then I would expect to see this class in folder src/main/java/${package}/another/package
> and not in src/main/java/${package}

-- 
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