Thursday, January 31, 2013

log4j dependency error,

Just created one simple Maven project to test the log4j, simply add one dependency called log4j.  the run mvn dependency:resolve, get an error that might brings you here.

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project log4jexample: Could not resolve dependencies for project com.androidyou.test:log4jexample:jar:0.0.1-SNAPSHOT: The following
artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms:

jar:1.1 from/to ( No connector available to access repository (https://maven-repositor of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.



And the fix is easy, change the version 1.2.15->1.2.16 or 17

No comments:

Locations of visitors to this page