Hi Ilya, Ilya Ermolov wrote: > Hello, I have the following problem. > > My web-project have a great number of subprojects which have complex > dependencies with each other. I want pack all .class files in > JAR and then > pack my web-app in WAR file. But how to do it having the only pom.xml?
we do this by declaring the POM as packaging "jar" (with a configuration for the output directory as target/webapp/WEB-INF/lib) and declare the war plugin to run also in the package phase (with a configured classifier, the webappDirectory to be target/webapp and the warSourceExclude for anything in WEB-INF/classes and META-INF). That way you produce a jar file that "transports" all the transitive deps and a war that is runnable, because it contains all libs. If you intent to merge wars in a later step, you will have to exclude anything from WEB-INF/lib from the depednent wars, since the deps are now supported using the jar artifact. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
