[ http://jira.codehaus.org/browse/ARCHETYPE-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=150619#action_150619 ]
Benjamin Papez commented on ARCHETYPE-192: ------------------------------------------ I have a use case, where I would need to reformat an existing property and use it as default value for another property. If for instance the artifactId is my-templates, I would like to automatically suggest creating a file called MyTemplates.properties. Using __artifactId__.properties now creates my-templates.properties which does not match the Java standard naming conventions. So would it somehow be possible to define a format conversion of the arifactId property and create another property using this Camel Case convention? > Property replacement for required properties > -------------------------------------------- > > Key: ARCHETYPE-192 > URL: http://jira.codehaus.org/browse/ARCHETYPE-192 > Project: Maven Archetype > Issue Type: Improvement > Affects Versions: 2.0-alpha-3 > Reporter: Will Gomes > Fix For: 2.0-alpha-5 > > > It would be nice if one could define default values for required properties > using other required properties. > For example: > <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 > would produce > org.foo.bar.mymodule.myapp.dao.MyDao.java > org.foo.bar.mymodule.myapp.Main.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