logo Maven hpi Plugin

Support for developing Hudson plugins with Apache Maven.

homepage: hudson-ci.org
fresh index:
last release: 6 years ago, first release: 1 decade ago
packaging: maven-plugin
get this artifact from: central
see this artifact on: search.maven.org




This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
hpi:hpi (phase: package)

Build a war/webapp.

hpi:resolve-test-dependencies

Places test-dependency plugins into somewhere the test harness can pick up. See {@code TestPluginManager.loadBundledPlugins()} where the test harness uses it.

hpi:run

Runs Hudson with the current plugin project. This only needs the source files to be compiled, so run in the compile phase. To specify the HTTP port, use -Djetty.port=PORT

hpi:test-hpl

Generate .hpl file in the test class directory so that test harness can locate the plugin.

hpi:create

Builds a new plugin template. Most of this is really just a rip-off from the archetype:create goal, but since Maven doesn't really let one Mojo calls another Mojo, this turns out to be the easiest.

hpi:insert-test (phase: generate-test-sources)

Insert default test suite.

hpi:hpl

Generate .hpl file.

hpi:apt-compile (phase: compile)

Often used code snippets:

<plugin>
  <groupId>org.jvnet.hudson.tools</groupId>
  <artifactId>maven-hpi-plugin</artifactId>
  <configuration>
    <showDeprecation>true</showDeprecation>
    <showWarnings>true</showWarnings>
  </configuration>
</plugin>
<plugin>
  <groupId>org.jvnet.hudson.tools</groupId>
  <artifactId>maven-hpi-plugin</artifactId>
  <version>1.20</version>
  <extensions>true</extensions>
</plugin>
<plugin>
  <groupId>org.jvnet.hudson.tools</groupId>
  <artifactId>maven-hpi-plugin</artifactId>
  <version>1.54</version>
  <extensions>true</extensions>
  <configuration>
    <showDeprecation>true</showDeprecation>
  </configuration>
</plugin>
<plugin>
  <groupId>org.jvnet.hudson.tools</groupId>
  <artifactId>maven-hpi-plugin</artifactId>
  <version>${hpi.plugin.version}</version>
  <extensions>true</extensions>
</plugin>
<plugin>
  <groupId>org.jvnet.hudson.tools</groupId>
  <artifactId>maven-hpi-plugin</artifactId>
  <version>1.31</version>
  <extensions>true</extensions>
</plugin>

© Jiri Pinkas 2015 - 2017. All rights reserved. Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení | 4npm - npm search | monitored using: sitemonitoring
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.