You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ralf Zahn <Ra...@ARS.de> on 2012/12/14 11:24:38 UTC
Maven and JEE Modules (Dependency WAR -> EJB)
Hi,
I want to build an EAR file with maven, containing 1 WAR, 1 EJB and 1
Utility JAR module. The WAR module is dependent from the EJB and the JAR,
so a classpath entry must be written to the WAR's manifest for both
modules (because the Utility JAR is not packaged into the lib/-folder
within the EAR so it is not automatically in the classpath of the other
modules.)
But when enabling the manifest generation with classpath entries
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>utilities/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
the EJB module is also referenced within the manifest using the
utilities/-subfolder - which is not correct, because it is packaged
directly within the EAR file.
Are there any solutions EXCEPT configuring manifest entries manually?
Kind regards,
Ralf Zahn
ARS Computer und Consulting GmbH, http://www.ars.de
Ridlerstrasse 55, 80339 Muenchen, Deutschland
Application Development Services, Business Transformation Services, IT
Infrastruktur Services
Beratung und Vertrieb zu IBM Software, System x, POWER Systems, Storage
License Management Services, IBM Passport Advantage Lizenzierung
Handelsregister Muenchen, HRB 101829, USt-ID: DE 155 068 909
Geschaeftsfuehrer: Michael Arbesmeier, Kai-Uwe Rommel, Roland Schock,
Joachim Gucker