本地俩个jar包用尽办法也无法通过 mvn clean package 放到jar里 于是 我就自己搭私服试试
win64位下载链接
nexus-3.15.2-01-win64.zip

下载好之后
我解压到
D:\nexus-3.15.2-01-win64\nexus-3.15.2-01\bin目录下
然后执行

\bin>nexus.exe /run

此外还可以通过docker安装
放个链接地址 自己研究下 https://help.sonatype.com/repomanager3/installation
等待三分钟后程序启动 打开 http://127.0.0.1:8081/#browse/browse
登录名/密码 admin / admin123
nexus 搭建 svn私服
通过上述方式上传本地jar包,此外也可以通过配置settings.xml 来上传 source code
然后在pom文件中写入

<repositories>
        <repository>
            <id>nexus</id>
            <url>http://localhost:8081/repository/maven-public/</url>
            <!--是否下载releases构件 -->
            <releases>
                <enabled>true</enabled>
            </releases>
            <!--是否下载snapshots构件 -->
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
 </repositories>

这样就可以了!

相关文章:

  • 2021-07-01
  • 2021-09-12
  • 2022-01-05
  • 2021-06-10
  • 2021-04-27
  • 2021-06-25
  • 2021-05-25
  • 2022-01-19
猜你喜欢
  • 2021-11-11
  • 2021-11-03
  • 2021-06-30
  • 2021-06-29
  • 2021-10-14
相关资源
相似解决方案