# maven-hpi-plugin **Repository Path**: king019/maven-hpi-plugin ## Basic Information - **Project Name**: maven-hpi-plugin - **Description**: maven-hpi-plugin - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-03 - **Last Updated**: 2022-09-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Maven HPI Plugin Maven plugin to build Jenkins plugins. See the [developer guide](https://jenkins.io/doc/developer/plugin-development/) for details. [Mojo documentation](https://jenkinsci.github.io/maven-hpi-plugin/) ## Changelog ### Newer versions See [GitHub Releases](https://github.com/jenkinsci/maven-hpi-plugin/releases) ### Older versions See [archive](https://github.com/jenkinsci/maven-hpi-plugin/tree/24b27178f4dbdb9eeb395f35fc94774d514c980a#35-2019-03-28). ## For maintainers ```bash mvn -Prun-its clean install # Find some plugin using the 2.x parent POM and run: mvn -f ../some-plugin -Dhpi-plugin.version=2.XXX-SNAPSHOT -DskipTests -DjenkinsHome=/tmp/sanity-check-maven-hpi-plugin clean package hpi:run ``` You can also rerun one test: ```bash mvn -Prun-its mrm:start invoker:run mrm:stop -Dinvoker.test=parent-3x ``` To rerun just the verification script: ```bash groovy -e "basedir='$(pwd)/target/its/parent-3x'; evaluate new File('src/it/parent-3x/verify.groovy')" ``` Also make sure `project.parent.version` in `src/it/parent-3x/pom.xml` is the latest. ## Updating Jetty `hpi:run` mojo is a variant of `jetty:run` mojo, and because of the way plugin descriptor is generated, this module copies some code from Jetty Maven plugin, specifically `AbstractJettyMojo.java` and `ConsoleScanner.java`. To keep upstream tracking easier, pristine copies of these files are copied into `incoming-x.y` branch, then package renamed. This version specific incoming branch is then "theirs" merged into the `incoming` branch, which acts as the upstream tracking branch. This branch is then merged into `master` via `git merge -X ignore-space-at-eol incoming`. See diff between `incoming` and `master` on these files to see the exact local patches.