請結合網(wǎng)絡上一些文章操作,以下是我成功運行后的重點記錄
默認庫的地址
<localRepository>d:/.m2/repository</localRepository>鏡像
<mirror>
<id>releases</id>
<mirrorOf>*</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>snapshots</id>
<mirrorOf>repo1</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>maven.oschina.net1</id>
<mirrorOf>repo2</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>ibiblio</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mirrors.ibiblio.org/maven2/</url>
</mirror>執(zhí)行一遍相同的maven命令,同時加上-U參數(shù),讓maven強制更新maven會直接將上次緩存的失敗結果返回給你嗓袱,如下圖返回緩存失敗結果stanford-corenlp-3.3.1.jar.lastUpdated
去除aar
mvn dependency:sources
mvn -f jackson.pom.xml dependency:copy-dependencies
在線編譯