On Thu, Oct 20, 2016 at 2:55 PM, Gilles <gil...@harfang.homelinux.org> wrote:
> > Can you point me at a component that has a config supporting > multiple modules? I cannot point you to the multi module project within ASF commons, while it's not that hard to create one. First of all you can use "mvn archetype:generate" to create base skeleton to play with, for example: 1. mvn archetype:generate -DgroupId=org.apache.commons \ -DartifactId=commons-rng \ -DarchetypeArtifactId=org.codehaus.mojo.archetypes 2. Enter commons-rng folder and run: mvn archetype:generate -DgroupId=org.apache.commons \ -DartifactId=commons-rng-core \ -DarchetypeArtifactId=maven-archetype-quickstart mvn archetype:generate -DgroupId=org.apache.commons \ -DartifactId=commons-rng-utility \ -DarchetypeArtifactId=maven-archetype-quickstart This will create parent muti-module project "commons-rng" with two modules "utility" and "core". Here is the example of pom.xml for possible multi module RNG component, assuming you have one main module with all core logic which is "commons-rng-core" and another utility one "commong-rng-utility" both of these are wrapped into pom packaged module "commons-rng": <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.commons</groupId> <artifactId>commons-parent</artifactId> <version>41</version> </parent> <groupId>org.apache.commons</groupId> <artifactId>commons-rng</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <name>rng</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <modules> <module>commons-rng-core</module> <module>commons-rng-utils</module> </modules> <inceptionYear>2016</inceptionYear> <description>The Apache Commons RNG project provides implementations of random numbers generators.</description> <url>http://commons.apache.org/proper/commons-rng/</url> <issueManagement> <system>jira</system> <url>http://issues.apache.org/jira/browse/RNG</url> </issueManagement> <scm> <connection>scm:git: http://git-wip-us.apache.org/repos/asf/commons-rng.git</connection> <developerConnection>scm:git: https://git-wip-us.apache.org/repos/asf/commons-rng.git </developerConnection> <url>https://git-wip-us.apache.org/repos/asf?p=commons-rng.git</url> </scm> <distributionManagement> <site> <id>apache.website</id> <name>Apache Commons Site</name> <url>scm:svn: https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-rng/ </url> </site> </distributionManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> </project> Hope this helps you. Best regards, Artem Barger.