Java Maven springsource回购协议
我与maven有一个问题,maven一直在寻找springsource回购协议,并在回购协议不可用时花费大量时间试图通过:Java Maven springsource回购协议,java,maven,maven-3,Java,Maven,Maven 3,我与maven有一个问题,maven一直在寻找springsource回购协议,并在回购协议不可用时花费大量时间试图通过: [WARNING] The repository url 'http://repository.springsource.com/maven/bundles/release' is invalid - Repository 'com.springsource.repository.bundles.release' will be blacklisted. [WARNING]
[WARNING] The repository url 'http://repository.springsource.com/maven/bundles/release' is invalid - Repository 'com.springsource.repository.bundles.release' will be blacklisted.
[WARNING] The repository url 'http://repository.springsource.com/maven/bundles/external' is invalid - Repository 'com.springsource.repository.bundles.external' will be blacklisted.
我的问题是,我不明白为什么这些回购协议被提取为:
- 我不使用任何弹簧组件
- 似乎没有一个依赖项ARRTIFACT是从这些REPO中提取的(用mvn站点的依赖项列表进行检查)
- 我的任何文件中都没有声明回购协议
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.6
在回购错误之前,我也有以下错误:
...
[ERROR] Artifact: xerces:xml-apis:jar:2.11.0 has no file.
[ERROR] Artifact: xerces:xmlParserAPIs:jar:2.6.2 has no file.
[ERROR] Artifact: xml-apis:xml-apis:jar:1.3.02 has no file.
[ERROR] Artifact: xom:xom:jar:1.0 has no file.
...
任何关于如何找到责任(工件或插件)或消除这些错误的想法都受到热烈欢迎
谢谢你提供线索
PS:我正在将maven 3.0.4与JDK 1.7.0_04一起使用。尝试运行:
mvn help:effective-pom
您将至少看到以下内容:
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2</url>
</repository>
</repositories>
它将为找到的任何定义了
标记的依赖项吐出消息。您好,谢谢您提供的信息,不幸的是,它没有解决问题。帮助:effective pom没有显示对springsource repo的引用,我使用enforcer检查项目并去掉pom.xml中声明的两个(内部)repo,但它没有改变springsource获取。还有其他建议吗?再次感谢。
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>enforce-no-repositories</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireNoRepositories>
<message>Best Practice is to never define repositories in pom.xml (use a repository manager instead)</message>
</requireNoRepositories>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>