Hide Forgot
Description of problem: I have a spring application and during the deployment it tries to find pom.properties in the war. Even though it's located in META-INF/maven/org/jboss/springapp/pom.properties, it's not found. The source code for doing that is located here https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java#L167 Consider, that a fix of this bug will influence the reproducer of BZ 1035775, where the getPomProperties method searches for pom.xml as an alternative because of this issue. How reproducible: Use the same reproduce steps from BZ 1035775 and the attachments there.
Created attachment 830234 [details] server log
The server log contains: Unable to load pom.properties tried recursing down from/home/ibek/jboss/jboss-eap-6.1/modules/system/layers/base/sun/jdk/main/service-loader-resources/ so I tried to add pom.properties into that location just to have it as a workaround and it doesn't work either, so there must be something terribly wrong.
I don't know what is the urlPathToAdd variable but if it's a path to the war, in the source is a condition only for jar files https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java#L173 if ( urlPathToAdd.endsWith( ".jar" ) || urlPathToAdd.endsWith( "/content" ) ) It could be one of the reasons why the pom.properties isn't found there.
Fixed by https://github.com/droolsjbpm/droolsjbpm-integration/commit/fccbb9246
Verified in BPMS 6.0.0.ER7