I have create an archetype using archetype:create-from-project out of a multi module project.
The archetype-metadata.xml is attached and also as a paste below, what I would want is that the "dir" can be modified when I run mvn archetype:generate by using the archetypeId I provide instead of using a fixed one. Can that be done? http://snipt.net/feniix/archetype-metadataxml Basically my archetype has this structure: ├── pom.xml └── src ├── main │ └── resources │ ├── archetype-resources │ │ ├── pom.xml │ │ ├── service │ │ │ ├── pom.xml │ │ │ └── src │ │ │ ├── main │ │ │ │ └── java │ │ │ └── test │ │ │ ├── java │ │ │ └── resources │ │ ├── service-def │ │ │ ├── pom.xml │ │ │ └── src │ │ │ └── main │ │ │ └── java │ │ └── service-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── resources │ │ │ ├── dao-context.xml │ │ │ ├── hibernate.cfg.xml │ │ │ └── single-context.xml │ │ └── webapp │ │ └── WEB-INF │ │ ├── jboss-web.xml │ │ ├── remoting-servlet.xml │ │ └── web.xml │ └── META-INF │ └── maven │ └── archetype-metadata.xml └── test └── resources └── projects └── basic ├── archetype.properties └── goal.txt Is there any way I can make the directories service-web service and service-def be dynamic when I use the archetype? Thanks in advance -- Those who do not understand Unix are condemned to reinvent it, poorly. Any sufficiently recent Microsoft OS contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Unix.
<?xml version="1.0" encoding="UTF-8"?> <archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="service-parent" xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modules> <module id="service-def" dir="service-def" name="service-def"> <fileSets> <fileSet filtered="true" packaged="true" encoding="UTF-8"> <directory>src/main/java</directory> <includes> <include>**/*.java</include> </includes> </fileSet> </fileSets> </module> <module id="service" dir="service" name="service"> <fileSets> <fileSet filtered="true" packaged="true" encoding="UTF-8"> <directory>src/main/java</directory> <includes> <include>**/*.java</include> </includes> </fileSet> <fileSet filtered="true" packaged="true" encoding="UTF-8"> <directory>src/test/java</directory> <includes> <include>**/*.java</include> </includes> </fileSet> <fileSet filtered="true" encoding="UTF-8"> <directory>src/test/resources</directory> <includes> <include>**/*.xml</include> <include>**/*.properties</include> </includes> </fileSet> <fileSet encoding="UTF-8"> <directory>src/test/resources</directory> <includes> <include>**/*.sql</include> <include>**/*.dtd</include> </includes> </fileSet> </fileSets> </module> <module id="service-web" dir="service-web" name="service-web"> <fileSets> <fileSet filtered="true" encoding="UTF-8"> <directory>src/main/webapp</directory> <includes> <include>**/*.xml</include> </includes> </fileSet> <fileSet filtered="true" encoding="UTF-8"> <directory>src/main/resources</directory> <includes> <include>**/*.xml</include> </includes> </fileSet> </fileSets> </module> </modules> </archetype-descriptor>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
