The following is the maven dependencies i want to access in my project pom.xml but it’s unable to recognize that one, it’s showing org.apache.commons.math4: 4.0 snapshot not found.
please, help me how can i fix it?
**<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math4</artifactId>
<version>4.0-SNAPSHOT</version>
</dependency>**
2
Answers
According to maven repository (https://mvnrepository.com/artifact/org.apache.commons/), there is no math4.
What you need to use is math3:
You’ll just need to add the repository config:
And after that you need to run maven command:
Flag -U Forces a check for updated releases and snapshots on remote repositories
Because you want to use the SNAPSHOT version. Snapshot version can change every day.
It should help you, I’ve checked just now.