排除应用程序服务器自动部署的依赖关系 [英] Exclude dependency from Application Server auto deployment
本文介绍了排除应用程序服务器自动部署的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
使用 Maven Shade插件 过滤器
和/或 minimizeJar
功能可以从该依赖关系中排除类。
I've got EJB object which requires some interfaces from dependency (maven - jar). When I deploy it in .ejb in .ear everything works. I really don't need ear so I wanted to use .war with this EJB object. However during deployment it appeared that my dependency has some classes annotated with @Webservice. This classes also requires other dependencies which I don't want to use in my project, so during deployment I get no class def found exception. Is there any way to stop this auto-deployment of annotated classes from dependency?
解决方案
Use the Maven Shade Plugin filters
and/or minimizeJar
features to exclude classes from that dependency.
这篇关于排除应用程序服务器自动部署的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文