4.从maven私服下载项目到本地
程序员文章站
2024-01-14 13:37:16
...
步骤:
1.在本地settings.xml配置
<servers>
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
2.创建一个Maven工程
在pom中进行相关配置
<dependencies>
<dependency>
<groupId>com.bajin</groupId>
<artifactId>feiyun</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>releases</id>
<url>http://192.168.126.129:8081/repository/maven-snapshots/</url>
</repository>
</repositories>