Hi Artem.

Would you be willing to create a branch containing actual
files?

If so, since the break-down into modules I'm thinking of is
not the one you've taken below,[1] I suggest that you create
an "all-example" module, into which you'd move _all_ the code.

I'd think that you should start from
  https://svn.apache.org/repos/asf/commons/proper/weaver/trunk/pom.xml
as suggested by Matt.

Then, I expect that
 $ mvn clean site
will run smoothly, and produce everything which the current
config does.[2]

Please let me know if you don't have the time to do it, or if
you run into any problem that would prevent this goal to be
achieved quickly.[3]


Thanks,
Gilles

[1] I'm still convinced that the "utils" (referred to in the
    other thread) should be a separate component.  But we could
    nevertheless create modules in "Commons RNG" that would
    clearly stress the separation between the low-level RNG
    algorithms, the high-level interfaces and the "simple API".
    Then later on, the "utils" component could choose to only
    depend on the "core" algorithms and provide its own API.
[2] In that case, I'll give a try at splitting the codebase.
[3] In that case, I'll start the release process tomorrow, with
    what we have now.

On Thu, 20 Oct 2016 15:20:12 +0300, Artem Barger wrote:
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.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to