Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: install:install
    • Labels:
      None
    • Number of attachments :
      2

      Description

      Hello!
      The deploy plugin has a skip parameter that if set to true, skips the deploy goal.
      http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

      I was thinking that the install plugin could have the same feature. I have created a patch (wasn't that hard). And I will submit it when i find out what number this task gets =)

      1. MINSTALL-73.patch
        1 kB
        Ludwig Magnusson
      2. MINSTALL-73-test.patch
        3 kB
        Ludwig Magnusson

        Issue Links

          Activity

          Hide
          Ludwig Magnusson added a comment -

          Here is the patch...

          Show
          Ludwig Magnusson added a comment - Here is the patch...
          Hide
          Ludwig Magnusson added a comment -

          New patch including test

          Show
          Ludwig Magnusson added a comment - New patch including test
          Hide
          Martin Bengl added a comment -

          Please add this little feature to the next release version! It would help us a lot!

          Show
          Martin Bengl added a comment - Please add this little feature to the next release version! It would help us a lot!
          Hide
          Bernd Vogt added a comment -

          Pleas include this patch in Maven 3.0.4. Would help me a lot, too!

          Show
          Bernd Vogt added a comment - Pleas include this patch in Maven 3.0.4. Would help me a lot, too!
          Hide
          Bernd Vogt added a comment -

          Found a workaround: Add the profile below to your (parent) pom. After that you can use the property maven.install.skip (e.g. by passing -Dmaven.install.skip=true) to skip the install plugin.

            <profiles>
              <profile>
                <id>skipInstall</id>
                <activation>
                  <property>
                    <name>maven.install.skip</name>
                    <value>true</value>
                  </property>
                </activation>
                <build>
                  <pluginManagement>
                    <plugins>
                      <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-install-plugin</artifactId>
                        <executions>
                          <execution>
                            <id>default-install</id>
                            <phase>none</phase>
                          </execution>
                        </executions>
                      </plugin>
                    </plugins>
                  </pluginManagement>
                </build>
              </profile>
            </profiles>
          
          Show
          Bernd Vogt added a comment - Found a workaround: Add the profile below to your (parent) pom. After that you can use the property maven.install.skip (e.g. by passing -Dmaven.install.skip=true ) to skip the install plugin. <profiles> <profile> <id>skipInstall</id> <activation> <property> <name>maven.install.skip</name> <value>true</value> </property> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <executions> <execution> <id>default-install</id> <phase>none</phase> </execution> </executions> </plugin> </plugins> </pluginManagement> </build> </profile> </profiles>
          Hide
          Ivan Bondarenko added a comment -

          Would like to have the "skip" option too.
          We need to disable install plugin when certain profile is active, so now we need either use two params at once (-P profile1 -Dmaven.install.skip=true) or to use very ugly workarounds.

          Show
          Ivan Bondarenko added a comment - Would like to have the "skip" option too. We need to disable install plugin when certain profile is active, so now we need either use two params at once (-P profile1 -Dmaven.install.skip=true) or to use very ugly workarounds.
          Hide
          Olivier Lamy added a comment -

          patch applied.
          Thanks!

          Show
          Olivier Lamy added a comment - patch applied. Thanks!

            People

            • Assignee:
              Olivier Lamy
              Reporter:
              Ludwig Magnusson
            • Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: