Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You need to use the <strong>rootArtifactId</strong> placeholder such as :</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;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"&gt; &lt;modules&gt; &lt;module id="${rootArtifactId}-def" dir="__rootArtifactId__-def" name="${rootArtifactId}-def"&gt; &lt;fileSets&gt; &lt;fileSet filtered="true" packaged="true" encoding="UTF-8"&gt; &lt;directory&gt;src/main/java&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*.java&lt;/include&gt; &lt;/includes&gt; &lt;/fileSet&gt; &lt;/fileSets&gt; &lt;/module&gt; &lt;module id="${rootArtifactId}" dir="__rootArtifactId__" name="${rootArtifactId}"&gt; &lt;fileSets&gt; &lt;fileSet filtered="true" packaged="true" encoding="UTF-8"&gt; &lt;directory&gt;src/main/java&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*.java&lt;/include&gt; &lt;/includes&gt; &lt;/fileSet&gt; &lt;fileSet filtered="true" packaged="true" encoding="UTF-8"&gt; &lt;directory&gt;src/test/java&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*.java&lt;/include&gt; &lt;/includes&gt; &lt;/fileSet&gt; &lt;fileSet filtered="true" encoding="UTF-8"&gt; &lt;directory&gt;src/test/resources&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*.xml&lt;/include&gt; &lt;include&gt;**/*.properties&lt;/include&gt; &lt;/includes&gt; &lt;/fileSet&gt; &lt;fileSet encoding="UTF-8"&gt; &lt;directory&gt;src/test/resources&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*.sql&lt;/include&gt; &lt;include&gt;**/*.dtd&lt;/include&gt; &lt;/includes&gt; &lt;/fileSet&gt; &lt;/fileSets&gt; &lt;/module&gt; &lt;module id="${rootArtifactId}-web" dir="__rootArtifactId__-web" name="${rootArtifactId}-web"&gt; &lt;fileSets&gt; &lt;fileSet filtered="true" encoding="UTF-8"&gt; &lt;directory&gt;src/main/webapp&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*.xml&lt;/include&gt; &lt;/includes&gt; &lt;/fileSet&gt; &lt;fileSet filtered="true" encoding="UTF-8"&gt; &lt;directory&gt;src/main/resources&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*.xml&lt;/include&gt; &lt;/includes&gt; &lt;/fileSet&gt; &lt;/fileSets&gt; &lt;/module&gt; &lt;/modules&gt; </code></pre> <p></p> <p>Rename your module folders using the __rootArtifactId__ prefix.</p> <p>You can see an example of such archetype in <a href="http://code.google.com/p/open-archetypes/source/browse/multi-javaee5-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml">http://code.google.com/p/open-archetypes/source/browse/multi-javaee5-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload