springboot 添加本地jar包依赖

2018-04-13 19:21:00    admin    906    原创

在install的时候,出现jar包下载不了,这时你需要手动写,而至于三围可以随便写

<dependency>

<groupId>dayu.api</groupId>
<artifactId>dayu-api</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>
${project.basedir}/src/main/resources/lib/dayu-api-1.0.0.jar
</systemPath>
</dependency>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
        </plugin>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <includeSystemScope>true</includeSystemScope>
            </configuration>
        </plugin>
    </plugins>
</build>



豫ICP备15006410号
蝉知 蝉知4.5.2