Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-269

Add Skip Property to Skip Plugin Execution

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      Expose plugin configuration as well as a user property to allow the plugin execution to be skipped.

       

      There are occasions when we do not always want to run jar plugin.

       

      Example:

      In a build pipeline, we run different phases in different stages

       

      1. Run install in isolation (we need jar here)
      2. Run deploy in isolation (we don't need jar again - so need a way to skip)

       

      Currently there is only a hack to do this, by overriding the default-jar execution of the plugin and setting the phase to a user property, and then overriding that to a non-existent phase, to keep it from being attached to the maven lifecycle.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              brianwyka Brian Wyka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 96h
                  96h
                  Remaining:
                  Remaining Estimate - 95h 40m
                  95h 40m
                  Logged:
                  Remaining Estimate - 95h 40m
                  20m