Hi, I've seen people ask this or a similar question before but I don't think it has ever been answered. If it has then can some kind soul point me in the right direction?
Here's the situation: I have an EAR and a WAR inside the EAR. The EAR also contains JARs. So here's a directory structure: projectEAR |--- moduleA.jar |--- moduleB.jar |--- JSPs.war |--- WEB-INF |--- lib |--- moduleC.jar |--- moduleD.jar Now, let's say that moduleB and moduleC depends on moduleA. Thus, moduleA has to be in the EAR so that both moduleB and C can find it without duplicating moduleA in the WAR. So now, in my pom file for the WAR, the dependencies contain moduleC and moduleD but since moduleC depends on moduleA, moduleA automatically gets included in the WAR. This duplication is something I don't want. I add an exclusion to exclude moduleA but now it doesn't show up in the manifest classpath. Since we can't use custom manifest files with the maven-war-plugin, I need to update the manifest manually after building. So I want to get away from manually updating, I want to know if there's a way to add classpath entries to the manifest without including the actual jar since the jar is already located in the EAR. Is there a way to do this? I've tried different scope settings for the dependencies but they don't seem to work. Is there something wrong with my structure? All of my problems could be solved if the war plugin supports custom manifest files like the jar plugin does. _Mang Lau