Github user michael-o commented on a diff in the pull request:
https://github.com/apache/maven-archetype/pull/8#discussion_r70186237
--- Diff:
maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java
---
@@ -84,6 +90,43 @@
* the IT.</li>
* </ul>
* <p/>
+ * To let the IT create a Maven module below some other Maven project
(being generated from another archetype)
+ * one can additionally specify an optional
<code>archetype.pom.properties</code> file in the parent directory,
+ * specifying the archetype's <code>groupId</code>,
<code>artifactId</code> and <code>version</code> along with its
+ * <code>archetype.properties</code> file, containing properties for
project generation. Both files are leveraged
+ * to create the parent project for this IT. Parent projects can be nested.
+ * An example structure for such an integration test looks like this
+ * <table>
+ * <tr>
+ * <th>File/Folder</code></td>
+ * <th>Description</td>
+ * </tr>
+ * <tr>
+ * <td><code>src/test/resources/projects/it1</code></td>
+ * <td>Folder for integration test 1</td>
+ * </tr>
+ * <tr>
+ *
<td><code>src/test/resources/projects/it1/archetype.pom.properties</code></td>
+ * <td>GAV for the archetype from which to generate the parent</td>
+ * </tr>
+ * <tr>
+ *
<td><code>src/test/resources/projects/it1/archetype.properties</code></td>
+ * <td>All required properties for the archetype being specified by
<code>archetype.pom.properties</code> on this level</td>
+ * </tr>
+ * <tr>
+ * <td><code>src/test/resources/projects/it1/child</code></td>
+ * <td>Folder for maven module within integration test 1 (this folder's
name is not relevant)</td>
--- End diff --
ditto
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]