Maven 打包发布到nexus

 阅读约 3 分钟

编译打包

mvn clean package -DskipTestsr

省略....

[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ wechat-wxpay ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ wechat-wxpay ---
[INFO] Building jar: /Users/pro/zi/2017/pays/wxpay/target/wechat-wxpay-1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Pay Parent ......................................... SUCCESS [  0.161 s]
[INFO] wechat-common ...................................... SUCCESS [  3.040 s]
[INFO] WechatPay .......................................... SUCCESS [  0.635 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.960 s
[INFO] Finished at: 2017-08-10T09:53:19+08:00
[INFO] Final Memory: 24M/261M
[INFO] ------------------------------------------------------------------------

上传jar到nexus,安装pom文件里面的信息填写配置

    <parent>
        <artifactId>pays</artifactId>
        <groupId>com.xxx.base</groupId>
        <version>1.0</version>
    </parent>

clipboard.png

阅读 1.1k更新于 2017-08-10
推荐阅读
leifeng
用户专栏

java,ios,android,爬虫等相关内容更新

3 人关注
75 篇文章
专栏主页
目录