Maven 3プロジェクトでpom.xml
に依存関係を定義しています。次のように依存性がある:なぜ、間違ったレポの人工物を探しているのですか?
<repository>
<id>java.net</id>
<name>java.net</name>
<url>http://download.java.net/maven/2</url>
</repository>
アーティファクトが実際にリポジトリに存在する次のよう
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<scope>runtime</scope>
<version>2.2</version>
</dependency>
RepostoryはPOMに記載されています。 It's easy to check。それにもかかわらず、Mavenはrepo1.maven.org
からアーティファクトを取得しようとしています。 この理由は何でしょうか?リポジトリへのアクセスを定義する際に重大な間違いを犯す可能性がありますか?他の依存関係はうまくいくようです。
Plugin org.mortbay.jetty:maven-jetty-plugin:6.1.26 or one of its
dependencies could not be resolved: Could not find artifact
org.glassfish.web:el-impl:jar:2.2
in central (http://repo1.maven.org/maven2)