更新时间:2023-09-29 22:28:34
好了,你可以做到这一点的可移植的方式:
well, you can do it the portable way:
将库JAR在.ear文件的根。结果
例如:
Place the library jars at the root of .ear file.
Example:
library jar -> lib1.jar, lib2.jar
[EAR STRUCTURE]
your.ear
|--yourfirst.war
|--yoursecond.war
|--lib1.jar
|--lib2.jar
在更新的两个的将.war文件中的MANIFEST.MF文件指向这些罐子
像这样:结果类路径:lib1.jar lib2.jar
结果
(不要忘记添加一个空格,换行字符上面一行的末尾如果这是在最后一个项目清单)
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)