[
https://issues.apache.org/jira/browse/MATH-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14275524#comment-14275524
]
Sebb commented on MATH-1187:
----------------------------
How to use the pom.
[This will not work at present, because the examples are not deployed to the
Maven repo.]
Download the pom, and run it using:
mvn exec:java
This will run the default class which is defined in the pom as HelloWorldExample
This is equivalent to:
mvn exec:java
-Dexec.mainClass=org.apache.commons.math3.userguide.genetics.HelloWorldExample
To run different examples, just provide the appropriate fully qualifed class
name as per the example above.
> Pom to run examples from Maven repo
> -----------------------------------
>
> Key: MATH-1187
> URL: https://issues.apache.org/jira/browse/MATH-1187
> Project: Commons Math
> Issue Type: New Feature
> Reporter: Sebb
> Priority: Minor
> Attachments: pom.xml
>
>
> The Pom (to follow) allows one to run the examples assuming an examples jar
> has been installed / uploaded to Maven.
> There would be no need to create an Uber jar (with all the potential
> licensing/jar hell issues) as the pom would download any necessary
> dependencies to the local repo.
> As an enhancement, if it proved necessary to optionally depend on a
> non-permitted jar, it would be possible to add a profile to add that as a
> proper dependency (the main dependency would have to use "provided"). I think
> this would satisfy the ASF requirement that users should not be landed with
> non-AL code unless they specifically agree to it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)