I’m getting the error below. What does “Path to dependency” refer to and why is there 3 locations?
I have almost no Maven experience.
Missing:
----------
1) com.sun.jmx:jmxri:jar:1.2.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.services:Common:jar:1.0.0.0
2) log4j:log4j:jar:1.2.15
3) com.sun.jmx:jmxri:jar:1.2.1
Common requires Log4J. Log4J requires JMX. There are three “locations” because that’s how long the dependency path is. A dependency is path is (more or less) “what made me want this library?”
(But it doesn’t; upgrade or downgrade your Log4J dependency–IIRC this has been fixed in 1.2.16, and didn’t exist before 1.2.mumble.)