dropVersionComponent
protected Version.COMPONENT dropVersionComponent
Flag used to determine what components of the version will be used
in OSGi version.
An OSGi version has four parts as shown below:
major.minor.micro.qualifer.
It is not always desirable to use all four parts while
exporting packages. In fact, maven version and OSGi version
behave just opposite during version comparison as shown below:
a maven version 1.2.3-SNAPSHOT is mapped to OSGi version 1.2.3.SNAPSHOT.
In maven, 1.2.3 > 1.2.3-SNAPSHOT, but in OSGi, 1.2.3 < 1.2.3.SNAPSHOT.
So, it is highly desirable to drop qualifier while computing the version.
Instead of hardcoding the policy, we let user tell us what portions will
be used in the OSGi version. If they ask us to drop minor, then only
major will be used. Similarly, if they ask us to drop qualifier, then
major, minor and micro portions will be used.