The following artifacts could not be resolved: javax.jms:jms:jar:1.1

后端 未结 10 1738
别跟我提以往
别跟我提以往 2020-12-04 09:27

I am trying to compile a maven project, but I systematically get the following error message:

[ERROR]Failed to execute goal on project ...:
Could not resolve         


        
10条回答
  •  难免孤独
    2020-12-04 10:09

    I also faced the same issue when I started using following maven dependency version for log4j (1.2.15) in my project.

    
      log4j
      log4j
      1.2.15
    
    

    Following error was thrown at me.

    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 java.net (https://maven-repository.dev.java.net/nonav/repository): Cannot access https://maven-repository.dev.java.net/nonav/repository with type legacy using the available connector factories: BasicRepositoryConnectorFactory: Cannot access https://maven-repository.dev.java.net/nonav/repository with type legacy using the available layout factories: Maven2RepositoryLayoutFactory: Unsupported repository layout legacy -> [Help 1]
    

    I started using following log4j (1.2.17) version and it helped me solve this issue without any configurations related fixes.

     
          log4j
          log4j
          1.2.17
        
    

提交回复
热议问题