I found a JIRA feature request for what I described. Although it's flagged "fixed" I think there wasn't really any change there, at least I can't find any documentation about it.
link: http://jira.codehaus.org/browse/ARCHETYPE-58 Cheers, stephanos stephanos wrote: > > Hi, > > I need to know if I can use conditions in my archetype. > > My use case: > I have an archetype that can be used in various languages (e.g. Java and > Groovy). I want to give the user the base class for the according > language. But I don't want to be both classes (MyClass.java & > MyClass.groovy) there - just one! > > Is there a way to only generate one of the two files via maven:generate > depending on a condition/property? > -- View this message in context: http://old.nabble.com/Conditional-archetype-generation-tp26655657p26675944.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
