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 Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      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

          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
          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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes Time Not Required
                15m