currently we are facing one problem. We are building a ear which contains multiple war files. In 2 of the WARs contains same jars. Both these wars need these jars during deployment.So Is there any way in ANT I can built it so that these jars will be in one single place and it will not create any problem during the ear deployment.
相关问题
- Dependencies while implementing Mocking in Junit4
- Unable to generate jar file for Hadoop
- Using task scheduler for running java jar (from ba
- NIO2: how to generically map a URI to a Path?
- How can I have my ant task pass or fail based on t
相关文章
- java.lang.NoClassDefFoundError: javax/servlet/http
- Default arguments in JAR-manifest
- Passing command line arguments to Java via ant bui
- Eclipse war export: optimize for a specific server
- ANT - Could not load a dependent class com/jcraft/
- intellij build jar artifact containing gradle depe
- Can't get Jenkins to start using Tomcat
- library resolve to a path with no project.properti
well, you can do it the portable way:
Place the library jars at the root of .ear file.
Example:
Update the MANIFEST.MF files in both the .war files to point to these jars like so:
Class-Path: lib1.jar lib2.jar
(dont forget to add a space and a newline character to the end of the above line if this is the last entry in the manifest)
You can put those shared JARs into the EAR's
lib
directory. Those will then be available on the classpath for any WARs in that EAR.