我是maven的新手所以必须有一些我不理解的东西.但是,我添加了多个存储库来解析我的POM文件中的多个依赖项.由于某种原因,它在拉动递归依赖时失败了.我依赖于春天和春天取决于jms,它找不到jms.我不确定是谁告诉maven在哪里可以找到jms是我还是它在POM内弹簧?无论如何,我已经尝试添加另一个包含jms的存储库,但它仍然说它无法找到它.这是我的POM.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>app</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>app</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype</name>
<url>http://repository.sonatype.org</url>
</repository>
<repository>
<snapshots/>
<id>repo.pentaho.org</id>
<name>repo.pentaho.org-snapshots</name>
<url>http://repository.pentaho.org/artifactory/pentaho</url>
</repository>
<repository>
<id>thirdparty.pentaho.org</id>
<name>repo.pentaho.org-snapshots</name>
<url>http://repository.pentaho.org/artifactory/thirdparty</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>EBR Spring Release Repository</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.external</id>
<name>EBR External Release Repository</name>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
</repositories>
<properties>
<org.springframework.version>3.0.5.RELEASE</org.springframework.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.18</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.4</version>
<scope>runtime</scope> …Run Code Online (Sandbox Code Playgroud)