[ https://issues.apache.org/jira/browse/ARCHETYPE-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed ARCHETYPE-374. ------------------------------------ Resolution: Auto Closed This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results. > Dynamic runtime property values for resource filtering > ------------------------------------------------------ > > Key: ARCHETYPE-374 > URL: https://issues.apache.org/jira/browse/ARCHETYPE-374 > Project: Maven Archetype > Issue Type: New Feature > Components: Generator > Affects Versions: 2.1 > Reporter: Marc Szewczyk > > When generating a new project from an archetype, it does not seem to be > possible to populate the properties used by the Velocity engine with dynamic > runtime values, other than the ones that are automatically provided by Java > system properties. > What would be ideal is to have some hook in -- some events or something -- > that would allow us to run arbitrary Java code packaged with the archetype > JAR. But some mechanism is desired to be able to assign a dynamic value to > the properties so that, for example, a timestamp or a dynamically-generated > ID could be inserted into a filtered archetype-resource file when the project > is generated from the archetype. > Supporting Java expressions in the requiredProperties in the > archetype-descriptor might be one way to do it. So, for example: > <requiredProperties> > <requiredProperty key="current-date"> > <dynamicInit>new Date()</dynamicInit> > </requiredProperty> > </requiredProperties> -- This message was sent by Atlassian JIRA (v6.3.4#6332)