maven仓库使用HTTP代理,maven仓库使用本地jar
setting.xml
<proxies> <proxy> <id>proxy</id> <active>true</active> <protocol>http</protocol> <username>xxxxx</username> <password>xxxxxxxx</password> <host>proxy.xxxx.com</host> <port>8080</port> <!-- <nonProxyHosts>local.net|some.host.com</nonProxyHosts> --> </proxy> </proxies>
pom
<dependency> <groupId>org.apache.solr</groupId> <artifactId>solr-solrj</artifactId> <version>7.3.1</version> <scope>system</scope> <systemPath>F:/mavenrepo/jar/solr-solrj-7.3.1.jar</systemPath> </dependency>