I was getting some WARN
ings while trying to deploy the EARs in JBoss 7.1.1.
尝试在JBoss 7.1.1中部署EAR时,我得到了一些警告。
15:41:32,028 WARN [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry lib/commons-fileupload-1.0.jar in "/C:/myEar.ear/myWar.war" does not point to a valid jar for a Class-Path reference.
The issue is clearly explained in this SO thread.
在这个SO线程中清楚地解释了这个问题。
I tried removing the refernces from the MANIFEST.MF file and no more warnings appreared there after.
我尝试从MANIFEST.MF文件中删除引用,之后没有更多的警告。
My question is, is there anything I can try to exclude this class path from MANIFEST.MF without removing that manually?
我的问题是,有什么我可以尝试从MANIFEST.MF中排除这个类路径而不手动删除它?
I was looking for a way, somehow I can do that while taking the mvn build.I'm using maven 3.
我正在寻找一种方式,不知怎的,我可以在使用mvn build时这样做。我正在使用maven 3。
1 个解决方案
#1
Finally got it resolved:
终于解决了:
From the maven documentation Generating a manifest classpath I have set the property addClasspath
to false
. Now there is no warnings in the console.
从maven文档生成清单类路径我已将属性addClasspath设置为false。现在控制台中没有警告。
<manifest>
<packageName>blabla</packageName>
<addClasspath>false</addClasspath>
....
<addExtensions>false</addExtensions>
....
</manifest>
#1
Finally got it resolved:
终于解决了:
From the maven documentation Generating a manifest classpath I have set the property addClasspath
to false
. Now there is no warnings in the console.
从maven文档生成清单类路径我已将属性addClasspath设置为false。现在控制台中没有警告。
<manifest>
<packageName>blabla</packageName>
<addClasspath>false</addClasspath>
....
<addExtensions>false</addExtensions>
....
</manifest>