You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ian Simpson (JIRA)" <ji...@codehaus.org> on 2010/05/15 23:07:12 UTC

[jira] Created: (ARCHETYPE-315) Provide the archetype plugin the ability to filter a group id into a dynamically created source path

Provide the archetype plugin the ability to filter a group id into a dynamically created source path
----------------------------------------------------------------------------------------------------

                 Key: ARCHETYPE-315
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-315
             Project: Maven Archetype
          Issue Type: Wish
          Components: Archetypes
            Reporter: Ian Simpson


I'm not sure if this feature exists in a form that I'm not aware of, or if it's on a roadmap, or not feasible at all...

What I'd like is if there was an ability to dynamically create the path for your source files based on a filtered version of the package information.

Currently, here's what would happen:
My archetype is set up as
src/main/resources/archetype-resources/src/main/java/__package__/Sample.java

When this is filtered, you would get in your project:
myproj/src/main/com.myproj/Sample.java

What would be very useful is if you could filter that somehow so that you instead end up with:
myproj/src/main/com/myproj/Sample.java



-- 
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-315) Provide the archetype plugin the ability to filter a group id into a dynamically created source path

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/ARCHETYPE-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed ARCHETYPE-315.
-----------------------------------

    Resolution: Fixed
      Assignee: Herve Boutemy

the feature is already here for a long time (even if not well documented...):
just use __packageInPathFormat__

> Provide the archetype plugin the ability to filter a group id into a dynamically created source path
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-315
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-315
>             Project: Maven Archetype
>          Issue Type: Wish
>          Components: Archetypes
>            Reporter: Ian Simpson
>            Assignee: Herve Boutemy
>
> I'm not sure if this feature exists in a form that I'm not aware of, or if it's on a roadmap, or not feasible at all...
> What I'd like is if there was an ability to dynamically create the path for your source files based on a filtered version of the package information.
> Currently, here's what would happen:
> My archetype is set up as
> src/main/resources/archetype-resources/src/main/java/__package__/Sample.java
> When this is filtered, you would get in your project:
> myproj/src/main/com.myproj/Sample.java
> What would be very useful is if you could filter that somehow so that you instead end up with:
> myproj/src/main/com/myproj/Sample.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (ARCHETYPE-315) Provide the archetype plugin the ability to filter a group id into a dynamically created source path

Posted by "Ian Simpson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/ARCHETYPE-315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276592#comment-276592 ] 

Ian Simpson commented on ARCHETYPE-315:
---------------------------------------

Yeah, sorry, should have commented on this ticket.  I wound up finding this on some stack overflow article out there, which, to your point, is a clear indicated that this feature isn't documented well at all.  The rest of the Architecture team at my employer was actually surprised by this feature, having never found it themselves and relying on post-archetype shell scripts instead.

I'll get off my soap box now :)

> Provide the archetype plugin the ability to filter a group id into a dynamically created source path
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-315
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-315
>             Project: Maven Archetype
>          Issue Type: Wish
>          Components: Archetypes
>            Reporter: Ian Simpson
>            Assignee: Herve Boutemy
>
> I'm not sure if this feature exists in a form that I'm not aware of, or if it's on a roadmap, or not feasible at all...
> What I'd like is if there was an ability to dynamically create the path for your source files based on a filtered version of the package information.
> Currently, here's what would happen:
> My archetype is set up as
> src/main/resources/archetype-resources/src/main/java/__package__/Sample.java
> When this is filtered, you would get in your project:
> myproj/src/main/com.myproj/Sample.java
> What would be very useful is if you could filter that somehow so that you instead end up with:
> myproj/src/main/com/myproj/Sample.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira