felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alin Dreghiciu" <adreghi...@gmail.com>
Subject maven-bundle-plugin, Include-Resource and src/main/resources
Date Thu, 22 Mar 2007 15:18:57 GMT
Hi,

Does anyone recalls why the following code was added to the
maven-bundle-plugin?

   if (new File(baseDir, "src/main/resources").exists()) {
     header(properties, Analyzer.INCLUDE_RESOURCE, "src/main/resources/");
   }

In my view has two problems:
1. is useless since by the build time all the resources included in
src/main/resources will be copied automatically by maven into target/class
which is in the classpath of bnd so automatically will get into the
resulting bundle
2. is error prone since I can specify my resources in other place in the pom
or even add more resource folders. And the point 1 above  will do the right
thing anyhow.

Do I miss something?
If not I will make a jira issue to be removed.

Alin Dreghiciu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message