You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bruno Bieth (JIRA)" <ji...@codehaus.org> on 2008/04/25 15:53:46 UTC
[jira] Created: (ARCHETYPE-162) Prepend java package declaration to
the java file path
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
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
[jira] Commented: (ARCHETYPE-162) Prepend java package declaration
to the java file path
Posted by "Bruno Bieth (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=132641#action_132641 ]
Bruno Bieth commented on ARCHETYPE-162:
---------------------------------------
Thanks, for the comment.
Yes, that's fine as long as you don't use variable in the package declaration and you always add ${package} at the beginning.
What if I want :
package ${package}.${artifactId}.apackage;
Maybe nobody defines packages like that :)
I know I'm picky but this would ensure that classes are in the right folder.
Thanks
> 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
>
> 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
[jira] Commented: (ARCHETYPE-162) Prepend java package declaration
to the java file path
Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=132638#action_132638 ]
Raphaël Piéroni commented on ARCHETYPE-162:
-------------------------------------------
Put your java class in
src/main/resources/archetype-resources/src:main/java/another/package
> 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
>
> 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
[jira] Closed: (ARCHETYPE-162) Prepend java package declaration to
the java file path
Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Issue Comment Edited: (ARCHETYPE-162) Prepend java package
declaration to the java file path
Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=132638#action_132638 ]
raphael edited comment on ARCHETYPE-162 at 4/25/08 10:23 AM:
---------------------------------------------------------------------
Put your java class in
src/main/resources/archetype-resources/src/main/java/another/package
was (Author: raphael):
Put your java class in
src/main/resources/archetype-resources/src:main/java/another/package
> 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
>
> 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