problem description
A spring boot project recently built by the company is implemented using multi-module. When the entry module is finally packaged, the local jar that the sub-module depends on can never be imported into BOOT-INF/lib. Many methods have been found on the Internet, all of which are imported by putting the local jar package in the lib in the startup module, which is not applicable to this project
.the environmental background of the problems and what methods you have tried
entry module configuration < includeSystemScope > true < / includeSystemScope > invalid
related codes
/ / Please paste the code text below (do not replace the code with pictures)
Sub-module pom is configured as follows
< dependency >
<groupId>szkingdom.jr.kupp.adapter</groupId>
<artifactId>xom-1.0</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/xom-1.0.jar</systemPath>
< / dependency >
< plugin >
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<compilerArgs>
<arg>-Djava.ext.dirs=lib/</arg>
</compilerArgs>
</configuration>
< / plugin >
the entry module is configured as follows
< plugin >
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
< / plugin >
what result do you expect? What is the error message actually seen?
I hope you Daniel can give us some advice. I am very grateful.