maven项目中战争中的额外jar
我们开发的一个商业罐正在战争中。但我在pom.xml中看不到。。。。当我搜索整个eclipse时,我发现它位于同一项目的eclipse的.setting文件夹(.settings/org.eclipse.wst.common.component)中 这是你的记录maven项目中战争中的额外jar,maven,jar,pom.xml,Maven,Jar,Pom.xml,我们开发的一个商业罐正在战争中。但我在pom.xml中看不到。。。。当我搜索整个eclipse时,我发现它位于同一项目的eclipse的.setting文件夹(.settings/org.eclipse.wst.common.component)中 这是你的记录 <dependent-module archiveName="BankAccount-3.0.39.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var
<dependent-module archiveName="BankAccount-3.0.39.jar" deploy-path="/WEB-INF/lib"
handle="module:/classpath/var/M2_REPO/com/BankAccount/3.0.39/BankAccount-3.0.39.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
使用
执行mvn dependency:tree
并查看其工作原理。如果您确定项目不需要jar,则运行mvn dependency:tree
并找到特定jar的来源。然后可以使用
<exclusions>
<exclusion>
<groupId>Group Id</groupId>
<artifactId>jar which you want to exclude</artifactId>
</exclusion>
</exclusions>
组Id
要排除的jar
在它被捆绑的那个罐子下面
您还可以通过使用特定项目的assembly.xml中的
标记来移除jar我不确定问题是什么;你是在问它为什么在那里?它是项目的依赖项吗?