Ali larger than jar package import maven

Source: Internet
Author: User

Initially want to pour into the local jar package, directly using the import local jar package, found that it is not possible, because it is MAVEN unified management jar package, so direct import is not possible. And then on the Internet to see a lot of ways, including installing the jar package in the terminal, but found that their command did not, to install MAVEN (I am IntelliJ bring maven), for a long time, in fact, I just want to join a local jar package, do a lot of trouble to find it useless.

Finally I joined the Lib folder in the Web-int and put my jar package in the folder. And the following statements are added to the pom.xml:

<!--  Ali greater than jar-->      <dependency>          <groupId>my-jar</groupId>   <!--  Take your own pick-up          <artifactId>my-jar</artifactId> <!--yourself-          <version>1.0</ version><!--your own pick-up          <scope>system</scope>          <systempath>${project.basedir}/ Src/main/webapp/web-inf/lib/taobao-sdk-java-auto_1455552377940-20160607.jar</systempath>      </ Dependency>

 <!--local warehouse add plug-in <plugin> <groupId>org.apache.maven.plugins</groupId>                    <artifactId>maven-shade-plugin</artifactId> <executions> <execution> <id>make-assembly</id> <phase>package&                        Lt;/phase> <goals> <goal>shade</goal>                                </goals> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> &                        Lt;/descriptorrefs> <finalName>xxx-jar-with-dependencies</finalName> </configuration> </execution> </executions> &lt ;/plugin>

Ali larger than jar package import maven

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.