Hi. Le mer. 12 mars 2025 à 17:21, Andy Russell <arussell...@gmail.com> a écrit : > > Hello, > > I am trying to run the FastMathTestPerformance > <https://github.com/apache/commons-math/blob/484ff99a6ec5d42c34f55f4fab81234a1e2766a7/src/userguide/java/org/apache/commons/math4/userguide/FastMathTestPerformance.java> > class. > > The README suggests running a command like > > mvn -q exec:java > -Dexec.mainClass=org.apache.commons.math4.userguide.FastMathTestPerformance > > but I get > > [ERROR] Failed to execute goal on project commons-math4-examples: > Could not resolve dependencies for project > org.apache.commons:commons-math4-examples:jar:4.0-SNAPSHOT > [ERROR] dependency: > org.apache.commons:commons-math4:jar:tools:4.0-SNAPSHOT (compile) > [ERROR] Could not find artifact > org.apache.commons:commons-math4:jar:tools:4.0-SNAPSHOT > [ERROR] dependency: org.apache.commons:commons-math4:jar:4.0-SNAPSHOT > (compile) > [ERROR] Could not find artifact > org.apache.commons:commons-math4:jar:4.0-SNAPSHOT > [ERROR] dependency: > org.apache.commons:commons-geometry-enclosing:jar:1.0 (compile) > [ERROR] org.apache.commons:commons-geometry-enclosing:jar:1.0 > was not found in https://repo.maven.apache.org/maven2 during a > previous attempt. This failure was cached in the local repository and > resolution is not reattempted until the update interval of central has > elapsed or updates are forced > [ERROR] dependency: org.apache.commons:commons-geometry-hull:jar:1.0 (compile) > [ERROR] org.apache.commons:commons-geometry-hull:jar:1.0 was > not found in https://repo.maven.apache.org/maven2 during a previous > attempt. This failure was cached in the local repository and > resolution is not reattempted until the update interval of central has > elapsed or updates are forced > > even after building the root module with mvn clean install. > > I'm a Maven noob :) What am I doing wrong?
Nothing. Update of the "userguide" (code and doc) has been lagging behind the modularization of the "actual" codebase. The "pom.xml" is also not up-to-date, hence the errors about the dependencies; but fixing that reveals a huge number of compilation errors, due to the many changes in version 4.0-beta1. Sorry about that. I'll try and have a look... Concerning "FastMathTestPerformance", it is an outdated benchmark; it should be replaced with one that uses JMH. [The "FastMath" class itself has been renamed "AccurateMath".] Regards, Gilles --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org