Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54949

parameter to add current plugin to custom war

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • maven-hpi-plugin
    • None
    • Maven HPI Plugin 3.2, Plugin POM 3.33

      As hpi:help states,

      hpi:custom-war
       Builds a custom Jenkins war that includes all the additional plugins
       referenced in this POM.
      

      Please, consider adding parameter like addThisPluginToCustomWar, see PR:
      https://github.com/jenkinsci/maven-hpi-plugin/pull/86
      There is an issue with my implementation. WarMojo has defaultPhase = PACKAGE, so custom-war does not get built before jenkins plugin was packaged. Changing defaultPhase to PRE_INTEGRATION_TEST does not work. I suppose some rearrangement in the custom lifecycle might help. OTOH coutom-war should not be added to package phase in components.xml, as it should not be built and deployed by default.

      Meanwhile workaround might be used:

      mvn package hpi:custom-war -DaddThisPluginToCustomWar=true
      

            vititov Valentin Titov
            vititov Valentin Titov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: