jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Install Plugin
  • Maven 2.x Install Plugin
  • MINSTALL-73

Add skip parameter

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    MINSTALL-73.patch
    06/Mar/10 2:59 PM
    1 kB
    Ludwig Magnusson
  2. Text File
    MINSTALL-73-test.patch
    21/May/10 3:07 AM
    3 kB
    Ludwig Magnusson

Issue Links

is duplicated by

New Feature - A new feature of the product, which has yet to be developed. MINSTALL-72 add a skip parameter to install mojo

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. MINSTALL-84 maven-install-plugin: add a <skip> configuration parameter to avoid the install side effect

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Ludwig Magnusson added a comment - 06/Mar/10 2:59 PM

Here is the patch...

Show
Ludwig Magnusson added a comment - 06/Mar/10 2:59 PM Here is the patch...
Hide
Permalink
Ludwig Magnusson added a comment - 21/May/10 3:07 AM

New patch including test

Show
Ludwig Magnusson added a comment - 21/May/10 3:07 AM New patch including test
Hide
Permalink
Martin Bengl added a comment - 17/Aug/11 5:43 AM

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

Show
Martin Bengl added a comment - 17/Aug/11 5:43 AM Please add this little feature to the next release version! It would help us a lot!
Hide
Permalink
Bernd Vogt added a comment - 28/Sep/11 5:12 AM

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

Show
Bernd Vogt added a comment - 28/Sep/11 5:12 AM Pleas include this patch in Maven 3.0.4. Would help me a lot, too!
Hide
Permalink
Bernd Vogt added a comment - 28/Sep/11 6:21 AM

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 - 28/Sep/11 6:21 AM 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
Permalink
Ivan Bondarenko added a comment - 07/Jul/12 11:26 AM

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 - 07/Jul/12 11:26 AM 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
Permalink
Olivier Lamy added a comment - 08/Jul/12 12:08 PM

patch applied.
Thanks!

Show
Olivier Lamy added a comment - 08/Jul/12 12:08 PM patch applied. Thanks!

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Ludwig Magnusson
Vote (7)
Watch (7)

Dates

  • Created:
    06/Mar/10 2:55 PM
    Updated:
    08/Jul/12 12:08 PM
    Resolved:
    08/Jul/12 12:08 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.