maven私服nexus问题记录

环境介绍:idea 2020.2.3 、maven 3.6.3、nexus

使用场景:有些第三方库在中央仓库没有,需要我们手工上传到nexus。然后通过idea、maven进行下载

问题1:未上传包到nexus直接maven reload,提示如下

Cannot resolve it:sauronsoftware:1.0.2

解决方案:上传jar包到nexus私服

问题2:上传jar包到nexus,不生成pom文件

   maven reload提示如下:

Could not find artifact it:sauronsoftware:pom:1.0.2 in nexus
Cannot resolve org.openjfx:javafx.base:11.0.0-SNAPSHOT

 解决方案:上传时勾选生成pom文件

原文地址:https://www.cnblogs.com/damon-blogs/p/13895849.html