排除应用程序服务器自动部署的依赖关系 [英] Exclude dependency from Application Server auto deployment

查看:200
本文介绍了排除应用程序服务器自动部署的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有EJB对象需要一些依赖关系的接口(maven - jar)。当我部署在.ejb在.ear一切都有效。我真的不需要耳朵,所以我想使用.war与这个EJB对象。但是在部署过程中,似乎我的依赖关系有一些用@Webservice注释的类。这个类还需要我不想在我的项目中使用的其他依赖项,所以在部署期间我没有找到类def find异常。有没有办法从依赖关系停止这个自动部署注释类?

解决方案

使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆