02-jar package operation --- quoted local project package --maven

The idea tool, ordinary items, then add as library directly on the right in the jar on the line.

 

If the project is a maven

The package can be placed in the lib directory, then the configuration file referenced in the pom. example:

<!--引入非本地仓库的依赖-->
        <dependency>
            <groupId>com.alipay.api</groupId>
            <artifactId>alipay-sdk-java</artifactId>
            <version>20170324180803</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/alipay-sdk-java20170324180803.jar</systemPath>
        </dependency>

scope specified range

system
with the provided similar, but to be provided in the form of external JAR packages in the system , maven will not find it in the repository.

systemPath

rather than rely on the local repository maven in a jar, sytemPath specified local path jar package

 

Guess you like

Origin www.cnblogs.com/Tpf386/p/10988103.html