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

后端 未结 10 1729
别跟我提以往
别跟我提以往 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:25

    If anyone still wants to use jms1.1 then add the public jboss repository and maven will find it...

    project->dependencies:

      
        
          javax.jms
          jms
          1.1
        
    

    project->repositories:

      
        
          repository.jboss.org-public
          JBoss.org Maven repository
          https://repository.jboss.org/nexus/content/groups/public
          
    

    It works -

    F:\mvn-repo-stuff>mvn verify
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building mvn-repo-stuff 1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.pom
    Downloaded: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.pom (677 B at 0.8 KB/sec)
    [WARNING] The artifact xml-apis:xml-apis:jar:2.0.2 has been relocated to xml-apis:xml-apis:jar:1.0.b2
    Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar
    Downloading: https://repository.jboss.org/nexus/content/groups/public/javax/jms/jms/1.1/jms-1.1.jar
    Downloaded: https://repository.jboss.org/nexus/content/groups/public/javax/jms/jms/1.1/jms-1.1.jar (26 KB at 8.5 KB/sec)
    

提交回复
热议问题