Package local jar packages to a local warehouse and upload to a

Source: Internet
Author: User

1. Local jar package to local warehouse

MVN install:install-file -dfile=jar package full address or relative address -dgroupid= custom GroupID -dartifactid= Custom Artifactid -dversion= custom version number -dpackaging=jar

If the upload times are wrong to find the Pom file, which is caused by different operating systems, You can enclose the above command arguments in quotation marks, as follows

mvn install:install-file" -dfile=jar package full address or relative address "" -dgroupid= custom GroupID "" -dartifactid= Custom Artifactid "" -dversion= custom version number "" -dpackaging=jar "

2, local jar uploaded to the"

1), can log in to the jar

2), you can also use the command to upload

mvn deploy:deploy-file  -dfile=jar package   -dgroupid=groupid -dartifactid=artifacid  -dversion= version number  - Dpackaging=jar -durl=http://ip:port/nexus/content/repositories/thirdparty/  -drepositoryid=thirdparty

Package The local jar package to the local warehouse and upload to the database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.