我的Maven工程报错信息如下:
Failed to execute goal on project common-utils: Could not resolve dependencies for project com.sitech.cmap.bdmp.common:common-utils:jar:1.0.0-SNAPSHOT: Failure to find javax.servlet:javax.servlet:jar:3.0 in http://172.21.3.28:8080/nexus-2.8.1-01/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
自己下载个javax.servlet-3.0.jar包到本地,pom文件做如下改动:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet</artifactId>
<version>3.0</version>
<scope>system</scope>
<systemPath>C:/Users/280797275/Downloads/javax.servlet-3.0.jar</systemPath>
</dependency>
最后在run-maven install即可。