简体   繁体   English

Gradle-带战争锉的耳锉

[英]Gradle - ear file with war file

It works with ear file we build with Maven. 它与我们使用Maven生成的ear文件一起使用。 Using Gradle, I have an EAR (MyEnterpriseApp) file with a WAR (Myweb) and set of jar files in the root folder. 使用Gradle,我有一个带有WAR(Myweb)的EAR(MyEnterpriseApp)文件,并且在根文件夹中有一组jar文件。 When we deploy it is fine no problem. 当我们部署它没问题时。 When the applicatin starts it throws a compound class loader for a class (com.test.mypackage.MyClass) that is available in the one of the jars. 当应用程序启动时,它会为其中一个jars中可用的类(com.test.mypackage.MyClass)抛出一个复合类加载器。 We are using Websphere 6.1 on windows. 我们在Windows上使用Websphere 6.1。

Any suggestions. 有什么建议么。

I figured it out my self, using deploy and earlib together will cause this problem. 我自己弄清楚了,将deployearlib一起使用会导致此问题。 Now I am using only deploy with runtime dependencies in war gradle file. 现在,我仅在war gradle文件中使用带有运行时依赖项的deploy。 For now it solved the problem. 现在,它解决了问题。 If any of you have better idea than this, always welcome. 如果您有更好的主意,请随时欢迎。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM