maven的setting.xml文件配置

在servers标签里配置

IDEA配置连接(自建Maven仓库)私服并打包上传

 

 <server>
        
        <id>privete_maven</id>
        <!--账号密码需要与私服登录账号密码一致-->
        <username>admin</username>
        <password>123456</password>
    </server>

 

 

在项目的pom.xml文件增加 这里的ID要和上面的ID对应

IDEA配置连接(自建Maven仓库)私服并打包上传

 

 

 <distributionManagement>
        <repository>
            <id>privete_maven</id>
            <name>Nexus Release Repository</name>
            <url>http://192.168.1.2:8010/nexus/repository/maven-releases/</url>
        </repository>
    </distributionManagement>

 

 

IDEA配置连接(自建Maven仓库)私服并打包上传

 

 然后点击deploy

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-07-05
  • 2021-08-18
  • 2022-12-23
  • 2019-01-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-26
  • 2021-06-06
  • 2021-07-19
  • 2022-01-01
  • 2022-12-23
  • 2021-08-08
相关资源
相似解决方案