Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The feature.xml file needs to have the version of the feature (spelled using OSGi conventions, not Maven conventions - meaning to use periods, not dashes) injected into the feature.xml from the pom version. This was being done by using Maven's "filtering" of resources specifying this in the pom in a <resources> element with <filtering> set to true.
This worked for building with Maven, but Eclipse builds didn't work - the project shows an "error" because substitutable values aren't allowed in the feature.xml.
Fix this by (a) moving the feature.xml to src/main/resources and adding a step to copy it (for Eclipse to see and use) to the top level, with filtering.
Since this is common for all feature projects, add a profile for this in the project-wide common parent, and activate it with a marker-file-identifying-eclipse-feature.
(For now, also copy into feature projects until next project-wide pom is released).