Maven 打包釋出到nexus

asoren發表於2017-08-10

編譯打包

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

相關文章