出现的问题:pom文件中有gav 一直导不进,例如(在idea项目中):
<dependency>
<groupId>at.bestsolution.efxclipse.eclipse</groupId>
<artifactId>org.eclipse.jetty.server</artifactId>
<version>9.4.8</version>
</dependency>
但是在maven中央仓库很容易下载到jar包:
解决方法:把 jar 包下载到本地,加到本地maven仓库,重新在项目Build 即可。
cmd执行下面命令:
mvn install:install-file -Dfile=C:\Users\hp\Desktop\org.eclipse.jetty.server-9.4.8.jar -DgroupId=org.springframework -DartifactId=spring-context-support -Dversion=3.1.0.RELEASE -Dpackaging=jar
其中:C:\Users\hp\Desktop\org.eclipse.jetty.server-9.4.8.jar
是自己的jar包路径,其他参数请根据自己jar包的版本修改。