You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Will Gomes <wg...@umd.edu> on 2008/07/11 17:21:17 UTC

Archetype Properties and Packaging

Is it possible to provide default value for only a portion of ${package}
property? I would like to do the something like the following:

<requiredProperties>
   <requiredProperty key="myModule" />
   <requiredProperty key="myApp" />
   <requiredProperty key="package">
       <defaultValue>org.foo.bar.${myModule}.${myApp}</defaultValue>
    </requiredProperty>
 </requiredProperties>

having resources

src/main/java
    dao/MyDao.java
    Main.java

to produce

org.foo.bar.mymodule.myapp.dao.MyDao.java
org.foo.bar.mymodule.myapp.Main.java

-- 
View this message in context: http://www.nabble.com/Archetype-Properties-and-Packaging-tp18406312p18406312.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Archetype Properties and Packaging

Posted by Raphaël Piéroni <ra...@gmail.com>.
Hi,

This is not possible for now.

The archetype plugin does not do any property in propeties replacement.


Regards,

Raphaël

2008/7/11, Will Gomes <wg...@umd.edu>:
>
>  Is it possible to provide default value for only a portion of ${package}
>  property? I would like to do the something like the following:
>
>  <requiredProperties>
>    <requiredProperty key="myModule" />
>    <requiredProperty key="myApp" />
>    <requiredProperty key="package">
>        <defaultValue>org.foo.bar.${myModule}.${myApp}</defaultValue>
>     </requiredProperty>
>   </requiredProperties>
>
>  having resources
>
>  src/main/java
>     dao/MyDao.java
>     Main.java
>
>  to produce
>
>  org.foo.bar.mymodule.myapp.dao.MyDao.java
>  org.foo.bar.mymodule.myapp.Main.java
>
>
>  --
>  View this message in context: http://www.nabble.com/Archetype-Properties-and-Packaging-tp18406312p18406312.html
>  Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>  For additional commands, e-mail: users-help@maven.apache.org
>
>