您的位置:首页 > 其它

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

2015-02-09 11:50 483 查看
<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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  maven 打包