Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2596

Allow support for multiple classifier for a given artifact

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.0.4
    • None
    • None

    Description

      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 )
              {
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmassol Vincent Massol
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: