我已经在互联网上搜索了很长一段时间,我不知道如何配置maven-war插件或类似的东西,以便将系统依赖项包含在built war (WEB-INF/lib文件夹)中
我在jar-build的情况下使用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>
在构建war时,WEB-INF/lib中没有包含这些依赖项。
https://stackoverflow.com/questions/19065666
复制相似问题