commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@bpm-inspire.com>
Subject Re: [Math] Maven expert needed...
Date Mon, 15 Feb 2016 08:00:41 GMT
Gilles wrote:

> ... to fix the "src/userguide" in order to be able to compile the
> examples.
> 
> I get compilation errors like:
> ---CUT---
> [ERROR]
> /home/gilles/devel/java/apache/commons-
math/trunk/src/userguide/java/org/apache/commons/math4/userguide/FastMathTestPerformance.java
> [19,32] cannot find symbol
>    symbol:   class PerfTestUtils
>    location: package org.apache.commons.math4
> [ERROR]
> /home/gilles/devel/java/apache/commons-
math/trunk/src/userguide/java/org/apache/commons/math4/userguide/FastMathTestPerformance.java:
[664,54]
> package PerfTestUtils does not exist
> ---CUT---
> 
> It seems related to not finding the
> "commons-math4-4.0-SNAPSHOT-tools.jar"
> file, although it has been created:
> $ ls target/*jar
> target/commons-math4-4.0-SNAPSHOT-tools.jar
> target/commons-math4-4.0-SNAPSHOT.jar
> 
> Also, I think that the naming of the "tools" JAR might be problematic.
> Isn't the version supposed to come after the complete name (in order
> to be able to fill the "<dependency>" tags in the userguide's
> "pom.xml")?

No, it's an attached artifact. This jar is build (for whatever reason) using 
the ant and build-helper plugin (instead of using the jar plugin directly) 
in the package phase of the main build.

However, the pom in the userguide does not refer this artifact, therefore it 
is not on the classpath. Simply add:

      <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-math4</artifactId>
          <classifier>tools</classifier>
          <version>4.0-SNAPSHOT</version>
      </dependency>

I have currently no Maven setup on my machine, therefore I cannot test it. 
Otherwise I'd had committed it myself ;-)

Cheers,
Jörg


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


Mime
View raw message