Maven Install Plugin
  1. Maven Install Plugin
  2. MINSTALL-3

The install plugin fails if there are only "attached" artifacts.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None

      Description

      Usually, classifiers are used to produce attached artifacts, together with the "main" artifact. In some cases, however, it is not possible to produce the different flavors of the artifacts simultaneously (for example, for a version with debug and without debug).

      Then, in order to have a single artifact with a classifier, one can configure the jar plugin as follow:

      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <configuration>
      <classifier>someclassifier</classifier>
      </configuration>
      </plugin>

      However, this cause the install plugin (and probably also the deploy plugin) to fail, because it cannot find the "main" artifact:

      [INFO] [jar:jar]
      [INFO] Building jar: /home/julien/cvs/java/libs/attr/target/libattr-3.0-nodebug.jar
      [INFO] [install:install]
      [INFO] Installing /home/julien/cvs/java/libs/attr/target/classes to /home/julien/.m2/repository/unicity/libattr/3.0/libattr-3.0.jar

        Issue Links

          Activity

          jps created issue -
          Hide
          Brett Porter added a comment -

          This is becaquse the main artifact is still target/classes according to a short patch Julien sent to the list

          Show
          Brett Porter added a comment - This is becaquse the main artifact is still target/classes according to a short patch Julien sent to the list
          John Casey made changes -
          Field Original Value New Value
          Assignee John Casey [ jdcasey ]
          John Casey made changes -
          Original Estimate 2h [ 7200 ]
          Fix Version/s 2.0.1 [ 12000 ]
          Remaining Estimate 2h [ 7200 ]
          John Casey made changes -
          Fix Version/s 2.0.1 [ 12000 ]
          Fix Version/s 2.0.2 [ 12107 ]
          Maria Odea Ching made changes -
          Affects Version/s 2.0 [ 11703 ]
          Key MNG-1616 MINSTALL-3
          Fix Version/s 2.0.3 [ 12107 ]
          Workflow Maven [ 42246 ] jira [ 43996 ]
          Project Maven 2 [ 10500 ] Maven 2.x Install Plugin [ 11136 ]
          Component/s maven-install-plugin [ 11837 ]
          Jason van Zyl made changes -
          Workflow jira [ 43996 ] Maven [ 44821 ]
          Show
          Brett Porter added a comment - http://marc.theaimsgroup.com/?l=turbine-maven-user&m=113231335716042&w=2
          Hide
          Brett Porter added a comment -

          just going with a temporary solution here. I will add a 2.1 design document for better profile overlaying on the lifecycle and multiple rebuilds.

          Show
          Brett Porter added a comment - just going with a temporary solution here. I will add a 2.1 design document for better profile overlaying on the lifecycle and multiple rebuilds.
          Brett Porter made changes -
          Assignee John Casey [ jdcasey ] Brett Porter [ brettporter ]
          Fix Version/s 2.1 [ 12225 ]
          Original Estimate 2h [ 7200 ] 0.5h [ 1800 ]
          Remaining Estimate 2h [ 7200 ] 0.5h [ 1800 ]
          Brett Porter logged work - 03/Jan/06 23:16
          • Time Spent:
            0.25h
             
            <No comment>
          Brett Porter made changes -
          Remaining Estimate 0.5h [ 1800 ] 0h [ 0 ]
          Time Spent 0.25h [ 900 ]
          Brett Porter made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Brett Porter made changes -
          Workflow Maven [ 44821 ] Maven New [ 52095 ]
          Benjamin Bentmann made changes -
          Link This issue relates to MINSTALL-18 [ MINSTALL-18 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:26:11 UTC 2015 [ 1428229571122 ]
          Mark Thomas made changes -
          Workflow jira [ 12721609 ] Default workflow, editable Closed status [ 12751221 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 00:00:18 UTC 2015 [ 1428278418685 ]
          Mark Thomas made changes -
          Workflow jira [ 12959161 ] Default workflow, editable Closed status [ 12996009 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          46d 18h 2m 1 Brett Porter 03/Jan/06 23:16

            People

            • Assignee:
              Brett Porter
              Reporter:
              jps
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.25h Time Not Required
                0.25h

                  Development