码迷,mamicode.com
首页 > 编程语言 > 详细

Maven配置jar(war)包自动打包上传Maven服务器的配置

时间:2015-11-03 10:23:42      阅读:285      评论:0      收藏:0      [点我收藏+]

标签:

Maven配置jar(war)包自动打包上传Maven服务器的配置

 

  1. 创建jar(war)包工程
    1. 创建一个maven工程

      技术分享

    2. 在工程中穿件一个测试类

      技术分享

     

  2. 配置pom.xml

    技术分享

<distributionManagement>

    <repository>

<id>nexus-releases</id>

<url>http://127.0.0.1:8081/nexus/content/repositories/releases/</url>

</repository>

<snapshotRepository>

<id>nexus-snapshots</id>

<url>http://127.0.0.1:8081/nexus/content/repositories/snapshots/</url>

</snapshotRepository>

</distributionManagement>

 

  1. 配置setting文件

    技术分享

  2. 上传
    1. 使用eclipse上传

      技术分享

    2. 使用命令上传

    技术分享

  3. 查看上传是否成功

    技术分享

  4. 测试

    新建一个maven工程,在工程中引入提交的jar包

    技术分享

    书写测试方法

    技术分享

Maven配置jar(war)包自动打包上传Maven服务器的配置

标签:

原文地址:http://www.cnblogs.com/qadada/p/4932126.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!