如何在使用 maven 构建的战争中包含系统依赖关系
我已经在互联网上搜索了很长一段时间,我无法弄清楚如何配置maven-war插件或类似的东西,以便系统依赖项包含在build-war中(WEB-INF / lib文件夹)
我在jar构建的情况下使用maven依赖插件作为:
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
但我无法理解在战争建设的情况下该怎么办。我尝试过使用maven-war插件,但它没有在构建中包含系统依赖项。
[更新]
我有以下类型的贬低:
<dependency>
<groupId>LoginRadius</groupId>
<artifactId>LoginRadius</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}\lib\LoginRadius-1.0.jar</systemPath>
</dependency>
在我的POM中,这些依赖项在战争构建时不包括在WEB-INF / lib中。