maven本地jar包打包时无法打进jar的解决方式
<dependency> <groupId>cfca-logback</groupId> <artifactId>cfca-logback</artifactId> <version>4.2.1.0</version> <scope>system</scope> <systemPath>${project.basedir}/libs/logback-cfca-jdk1.6-4.1.1.0.jar</systemPath> </dependency>
引入一些maven仓库搜不到的jar包时,想要打包进最终jar,需要在POM.xml中加入:
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> </plugins> </build>