0

jboss7.1.1 で MDB を構築しようとしています。Maven プロジェクトがありますが、javax.jms パッケージをインポートできません。pom.xml に次の依存関係を追加しました。

<dependency>
 <groupId>javax.jms</groupId>
 <artifactId>jms</artifactId>
  <version>1.1</version>
</dependency>

pom.xmlで定義されたこのリポジトリもあります

 <repository>
           <id>jboss-public-repository</id>
           <name>JBoss Repository</name>
           <url>http://repository.jboss.org/nexus/content/groups/public</url>
           <!-- These optional flags are designed to speed up your builds 
              by reducing remote server calls -->
           <releases>
              <enabled>true</enabled>
           </releases>
           <snapshots>
              <enabled>false</enabled>
           </snapshots>
        </repository>

日食では、エラーが発生します

ArtifactDescriptorException: Failed to read artifact descriptor for javax.jms:jms:jar:1.1:     
 ArtifactResolutionException: Failure to transfer javax.jms:jms:pom:1.1 from  
 http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. 
 Original error: Could not transfer artifact javax.jms:jms:pom:1.1 from/to central (http://repo.maven.apache.org/maven2): 
 Remotely Closed [id: 0x01c17b4c, /0:0:0:0:0:0:0:1:54960 :> repo.maven.apache.org/185.31.16.185:80] pom.xml /fourPMOperations-ejb   line 1  Maven Dependency Problem

ヒントはありますか?それは何らかの設定の問題に違いありません。

4

1 に答える 1