如何将本地maven工程打包到仓库以供在其他工程用pom.xml文件调用

<distributionManagement>
<repository>
<id>pro-release</id>
<name>Proj Release Repository</name>
<url>http://xxx.xxx.xxxx.xx/nexus/content/repositories/RestBus-Releases</url>
</repository>


<snapshotRepository>
<id>pro-snapshot</id>
<name>Proj Snapshot Repository</name>
<url>http://xxx.xxx.xxxx.xx/nexus/content/repositories/ResBus-SnapShots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<finalName>spiderman</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>


</plugins>
</pluginManagement>

</build>

在项目名称上右击,run as

maven build 

clean deploy


版权声明:本文为silk_java原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。