I was getting some WARN
ings while trying to deploy the EARs in JBoss 7.1.1.
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.
I tried removing the refernces from the MANIFEST.MF file and no more warnings appreared there after.
My question is, is there anything I can try to exclude this class path from MANIFEST.MF without removing that manually?
I was looking for a way, somehow I can do that while taking the mvn build.I'm using maven 3.