本地maven拉取snapshot jar有可能会失败,应该是没开放snapshot类型下载
需要配置config/setting.xml
<profile>
<id>snap-profile</id>
<repositories>
<repository>
<id>nexusMirror</id>
<url>http://localhost:8081/repository/maven-public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
</repository>
</repositories>
</profile>
<activeProfiles>
<activeProfile>custom-compiler</activeProfile>
<activeProfile>snap-profile</activeProfile>
</activeProfiles>
配置下profile,同时需要profile加到activeProfile中。