idea 使用外包本地包

方式一:通过mvn命令将包打到本地仓库

然后pom添加引用

方式二:直接在pom文件中添加引用

<dependency>
<groupId>com.zysjgroupId>
<artifactId>zwdd-sdk-java-1.1.9artifactId>
<version>1.1.9version>
<scope>systemscope>
<systemPath>${basedir}/src/main/resources/lib/zwdd-sdk-java-1.1.9-1.1.9.jarsystemPath>
dependency>

在打包时需要额外增加 <includeSystemScope>trueincludeSystemScope>

<build>
<plugins>
<plugin>
<groupId>org.springframework.bootgroupId>
<artifactId>spring-boot-maven-pluginartifactId>
<configuration>

<includeSystemScope>trueincludeSystemScope>
configuration>
plugin>


<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-surefire-pluginartifactId>
<configuration>
<skipTests>trueskipTests>
configuration>
plugin>
plugins>
build>

你可能感兴趣的:(intellij-idea,java,ide)