Issue Details (XML | Word | Printable)

Key: MNG-2596
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Vincent Massol
Votes: 4
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Maven 2

Allow support for multiple classifier for a given artifact

Created: 10/Oct/06 03:33 AM   Updated: 05/Mar/08 09:02 PM
Component/s: Artifacts and Repositories
Affects Version/s: 2.0.4
Fix Version/s: 3.0

Time Tracking:
Not Specified

Issue Links:
Related
 

Complexity: Intermediate


 Description  « Hide
Right now Maven 2.0.x only support a single classifier per artifact. There are cases where more than 1 classifer would be required. For example the Clover plugin modifies the current artifact to add a "clover" classifier. However when the source plugin runs it tries to add another classifier ("sources") to the artifact. As only one classifier is currently supported it's not working (see MSOURCES-10). In the clover plugin code we also have things like:
// Do not try to find Clovered versions for artifacts with classifiers. This is because Maven2 only
        // supports a single classifier per artifact and thus if we replace the original classifier with
        // a Clover classifier the artifact will fail to perform properly as intended originally. This is a
        // limitation.
        if ( artifact.getClassifier() == null )
        {


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Vincent Massol added a comment - 10/Oct/06 03:34 AM
This is probably something to consider for Maven 2.1

Paul Gier added a comment - 10/Aug/07 09:27 AM
Can this be handled by just appending to the existing classifier? I don't think Maven prevents you from having a classifier "clover-sources". It seems like it would have the same effect as having multiple classifiers, but works with the current implementation. Any plugins that modify the classifier would just have to append to it instead of replacing it.