Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.1.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
I would like to package classes in my war-packaged project into a jar, but I don't want to use default 'classes' classifier assigned by the plugin. The generated artifacts have distinct packaging types, so there is no conflict and the classifier provides no useful additional information. Using the following configuration:
<configuration>
<classesClassifier/>
</configuration>
Results in "classes" classifier being used anyway. If I understand the behavior correctly Plexus assigns the variable it's default value, when presented an empty input. I don't think this can be fixed in way that is both clean and backward compatible. Either the default value will change, which would break existing builds that don't specify plugin version explicitly, or some clunky additional parameter like <useClassesClassifier>false</useClassesClassifier>, or magic value like <classesClassifier>NONE</classesClassifier> need to be introduced.
It's quite odd that the jar inside the war does not have any classifier, but if the same jar is chosen to be attached as an artifact to the project, it has to have a classifier. There must be some disabling option for this annoying "feature".