about using a command to add a jar into your own pom file-maven Project Add jar Package

Source: Internet
Author: User

Now almost all development projects are used by MAVEN projects, but sometimes you can use the diff gate or the new jar may not be able to search the Web in the Pom file configuration should be how to write, so write down this blog.

For example, I now want to join the Aaa.jar this package open cmd, enter the command inside MVN install:install-file-dfile= want to add the location of the jar package (such as E:/aaa.jar)-dgroupid= This package is placed in the location of your local library (for example, the COM. Company name). You have this package related to this name Com.xxxx.BBB)-dartifactid=bbb-dversion=0.0.1-dpackaging=jar after this execution in the warehouse com/ There is a bbb-0.0.1.jar bag under the xxxx/bbb/bbb/o.o.1.  Then configure the configuration in the Pom to be able to. Com.xxxx.BBB BBB 0.0.1 Note: The AAA and BBB names are not the same, general AAA is the name of the original package, BBB can be used to understand the name. Project or normal use of the original AAA inside the method has no effect.

about using a command to add a jar into your own pom file-maven Project Add jar Package

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.