有没有佬知道,私库上有source.jar,但是本地maven拉不下source包,是有什么配置没到位吗
2 Likes
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>download-sources</id>
<goals>
<goal>sources</goal>
</goals>
</execution>
</executions>
<configuration>
<downloadSources>true</downloadSources>
</configuration>
</plugin>
试试?
1 Like
解决方案:
在pom.xml依赖文件同级目录下执行mvn命令: mvn dependency:resolve -Dclassifier=sources