我正在使用Maven 3.3。我是否需要添加任何特殊存储库来访问Servlet-API 3.0.1 JAR?我将其添加到我的pom.xml文件
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
,但是当我尝试进行构建时,我会遇到这个错误...
[ERROR] Failed to execute goal on project core: Could not resolve dependencies for project org.collegeboard.springboard:core:jar:99.0.0-SNAPSHOT: Could not find artifact javax.servlet:servlet-api:jar:3.0.1 in thirdparty (https://nexus.getmyco.com/nexus/content/repositories/thirdparty/) -> [Help 1]
我需要这种依赖性,因为我被告知taht anoterh依赖性(春季 - 测试-4.0.6.Release(需要此。
查看spring-test-4.0.6.release的pom:http://search.maven.org/#artifactdetails| qureg.springframeframework| springframework|-spring--test|-test|-test| test| 4.0.66.6.6.66.66.66.66.66.66.66.Release | jar
实际上取决于以下内容:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>