maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Piéroni (JIRA) <j...@codehaus.org>
Subject [jira] Closed: (ARCHETYPE-162) Prepend java package declaration to the java file path
Date Fri, 14 Nov 2008 17:46:16 GMT

     [ 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

       

Mime
View raw message