Filip Spiridonov created FELIX-4174:
---------------------------------------
Summary: Resources aren't copied to WEB-INF/classes
Key: FELIX-4174
URL: https://issues.apache.org/jira/browse/FELIX-4174
Project: Felix
Issue Type: Bug
Components: Maven Bundle Plugin
Reporter: Filip Spiridonov
I have a standard maven web application. I am converting it to OSGi. I have
specified <_wab/> instruction to maven-bundle-plugin configuration.
My "src/main/resources" contains some files and themes folder with files:
log4j.xml
velocity.properties
themes/default.properties
themes/orange.properties
I expect all of them to be copied to "WEB-INF/classes". In reality only
"themes" folder with files is copied, but "log4j.xml" and "velocity.properties"
files are copied to the root of the bundle.
After debugging, the root of the problem is in aQute.bnd.osgi.Builder.doWab():
if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) {
dot.rename(path, "WEB-INF/classes/" + path);
}
log4j.xml, etc. are directly in the "src/main/resources", so they do not
satisfy "path.indexOf('/') > 0" and not prepended "WEB-INF/classes/"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira