Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<plugin>
  <description></description>
  <groupId>org.jvnet.hudson.tools</groupId>
  <artifactId>maven-hudson-plugin</artifactId>
  <version>6.1.5</version>
  <goalPrefix>hudson</goalPrefix>
  <isolatedRealm>false</isolatedRealm>
  <inheritedByDefault>true</inheritedByDefault>
  <mojos>
    <mojo>
      <goal>run</goal>
      <description>&lt;p&gt;
This goal is used in-situ on a Maven project without first requiring that the project
is assembled into a war, saving time during the development cycle.
The plugin forks a parallel lifecycle to ensure that the &quot;compile&quot; phase has been completed before invoking Jetty. This means
that you do not need to explicity execute a &quot;mvn compile&quot; first. It also means that a &quot;mvn clean jetty:run&quot; will ensure that
a full fresh compile is done before invoking Jetty.
&lt;/p&gt;
&lt;p&gt;
Once invoked, the plugin can be configured to run continuously, scanning for changes in the project and automatically performing a
hot redeploy when necessary. This allows the developer to concentrate on coding changes to the project using their IDE of choice and have those changes
immediately and transparently reflected in the running web container, eliminating development time that is wasted on rebuilding, reassembling and redeploying.
&lt;/p&gt;
&lt;p&gt;
You may also specify the location of a jetty.xml file whose contents will be applied before any plugin configuration.
This can be used, for example, to deploy a static webapp that is not part of your maven build.
&lt;/p&gt;
&lt;p&gt;
There is a &lt;a href=&quot;run-mojo.html&quot;&gt;reference guide&lt;/a&gt; to the configuration parameters for this plugin, and more detailed information
with examples in the &lt;a href=&quot;http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin&quot;&gt;Configuration Guide&lt;/a&gt;.
&lt;/p&gt;</description>
      <requiresDependencyResolution>runtime</requiresDependencyResolution>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <executePhase>test-compile</executePhase>
      <implementation>org.mortbay.jetty.plugin.Jetty6RunMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>classesDirectory</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The directory containing generated classes.</description>
        </parameter>
        <parameter>
          <name>connectors</name>
          <type>org.mortbay.jetty.Connector[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of connectors to use. If none are configured
then we use a single SelectChannelConnector at port 8080</description>
        </parameter>
        <parameter>
          <name>contextHandlers</name>
          <type>org.mortbay.jetty.handler.ContextHandler[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of other contexts to set up. Optional.</description>
        </parameter>
        <parameter>
          <name>contextPath</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The context path for the webapp. Defaults to the
name of the webapp&apos;s artifact.</description>
        </parameter>
        <parameter>
          <name>jettyConfig</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Location of a jetty xml configuration file whose contents
will be applied before any plugin configuration. Optional.</description>
        </parameter>
        <parameter>
          <name>jettyEnvXml</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of a jetty-env.xml file. Optional.</description>
        </parameter>
        <parameter>
          <name>overrideWebXml</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>A web.xml file to be applied AFTER
the webapp&apos;s web.xml file. Useful for
applying different build profiles, eg
test, production etc. Optional.</description>
        </parameter>
        <parameter>
          <name>pluginArtifacts</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>false</editable>
          <description></description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>false</editable>
          <description>The maven project.</description>
        </parameter>
        <parameter>
          <name>requestLog</name>
          <type>org.mortbay.jetty.RequestLog</type>
          <required>false</required>
          <editable>true</editable>
          <description>A RequestLog implementation to use for the webapp at runtime.
Optional.</description>
        </parameter>
        <parameter>
          <name>scanIntervalSeconds</name>
          <type>int</type>
          <required>true</required>
          <editable>true</editable>
          <description>The interval in seconds to scan the webapp for changes
and restart the context if necessary. Disabled by default.</description>
        </parameter>
        <parameter>
          <name>scanTargetPatterns</name>
          <type>org.mortbay.jetty.plugin.util.ScanTargetPattern[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of directories with ant-style &amp;lt;include&amp;gt; and &amp;lt;exclude&amp;gt; patterns
for extra targets to periodically scan for changes. Can be used instead of,
or in conjunction with &amp;lt;scanTargets&amp;gt;.Optional.</description>
        </parameter>
        <parameter>
          <name>scanTargets</name>
          <type>java.io.File[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of files or directories to additionally periodically scan for changes. Optional.</description>
        </parameter>
        <parameter>
          <name>systemProperties</name>
          <type>org.mortbay.jetty.plugin.util.SystemProperty[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>System properties to set before execution.
Note that these properties will NOT override System properties
that have been set on the command line or by the JVM. Optional.</description>
        </parameter>
        <parameter>
          <name>testClassesDirectory</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The directory containing generated test classes.</description>
        </parameter>
        <parameter>
          <name>tmpDirectory</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The temporary directory to use for the webapp.
Defaults to target/jetty-tmp</description>
        </parameter>
        <parameter>
          <name>useTestClasspath</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>If true, the &amp;lt;testOutputDirectory&amp;gt;
and the dependencies of &amp;lt;scope&amp;gt;test&amp;lt;scope&amp;gt;
will be put first on the runtime classpath.</description>
        </parameter>
        <parameter>
          <name>userRealms</name>
          <type>org.mortbay.jetty.security.UserRealm[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of security realms to set up. Optional.</description>
        </parameter>
        <parameter>
          <name>webAppSourceDirectory</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>Root directory for all html/jsp etc files</description>
        </parameter>
        <parameter>
          <name>webDefaultXml</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>A webdefault.xml file to use instead
of the default for the webapp. Optional.</description>
        </parameter>
        <parameter>
          <name>webXml</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the web.xml file. If not
set then it is assumed it is in ${basedir}/src/main/webapp/WEB-INF</description>
        </parameter>
      </parameters>
      <configuration>
        <testClassesDirectory implementation="java.io.File">${project.build.testOutputDirectory}</testClassesDirectory>
        <scanIntervalSeconds implementation="int">0</scanIntervalSeconds>
        <classesDirectory implementation="java.io.File">${project.build.outputDirectory}</classesDirectory>
        <webXml implementation="java.lang.String">${maven.war.webxml}</webXml>
        <webAppSourceDirectory implementation="java.io.File">${basedir}/src/main/webapp</webAppSourceDirectory>
        <tmpDirectory implementation="java.io.File">${project.build.directory}/work</tmpDirectory>
        <useTestClasspath implementation="boolean" default-value="false"/>
        <project implementation="org.apache.maven.project.MavenProject">${executedProject}</project>
        <pluginArtifacts implementation="java.util.List">${plugin.artifacts}</pluginArtifacts>
        <contextPath implementation="java.lang.String">/${project.artifactId}</contextPath>
      </configuration>
    </mojo>
    <mojo>
      <goal>run-war</goal>
      <description>&lt;p&gt;
This goal is used to assemble your webapp into a war and automatically deploy it to Jetty.
&lt;/p&gt;
&lt;p&gt;
Once invoked, the plugin can be configured to run continuously, scanning for changes in the project and to the
war file and automatically performing a
hot redeploy when necessary.
&lt;/p&gt;
&lt;p&gt;
You may also specify the location of a jetty.xml file whose contents will be applied before any plugin configuration.
This can be used, for example, to deploy a static webapp that is not part of your maven build.
&lt;/p&gt;
&lt;p&gt;
There is a &lt;a href=&quot;run-war-mojo.html&quot;&gt;reference guide&lt;/a&gt; to the configuration parameters for this plugin, and more detailed information
with examples in the &lt;a href=&quot;http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin/&quot;&gt;Configuration Guide&lt;/a&gt;.
&lt;/p&gt;</description>
      <requiresDependencyResolution>runtime</requiresDependencyResolution>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <executePhase>package</executePhase>
      <implementation>org.mortbay.jetty.plugin.Jetty6RunWar</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>connectors</name>
          <type>org.mortbay.jetty.Connector[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of connectors to use. If none are configured
then we use a single SelectChannelConnector at port 8080</description>
        </parameter>
        <parameter>
          <name>contextPath</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The context path for the webapp. Defaults to the
name of the webapp&apos;s artifact.</description>
        </parameter>
        <parameter>
          <name>jettyConfig</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Location of a jetty xml configuration file whose contents
will be applied before any plugin configuration. Optional.</description>
        </parameter>
        <parameter>
          <name>overrideWebXml</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>A web.xml file to be applied AFTER
the webapp&apos;s web.xml file. Useful for
applying different build profiles, eg
test, production etc. Optional.</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>false</editable>
          <description>The maven project.</description>
        </parameter>
        <parameter>
          <name>requestLog</name>
          <type>org.mortbay.jetty.RequestLog</type>
          <required>false</required>
          <editable>true</editable>
          <description>A RequestLog implementation to use for the webapp at runtime.
Optional.</description>
        </parameter>
        <parameter>
          <name>scanIntervalSeconds</name>
          <type>int</type>
          <required>true</required>
          <editable>true</editable>
          <description>The interval in seconds to scan the webapp for changes
and restart the context if necessary. Disabled by default.</description>
        </parameter>
        <parameter>
          <name>systemProperties</name>
          <type>org.mortbay.jetty.plugin.util.SystemProperty[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>System properties to set before execution.
Note that these properties will NOT override System properties
that have been set on the command line or by the JVM. Optional.</description>
        </parameter>
        <parameter>
          <name>tmpDirectory</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The temporary directory to use for the webapp.
Defaults to target/jetty-tmp</description>
        </parameter>
        <parameter>
          <name>userRealms</name>
          <type>org.mortbay.jetty.security.UserRealm[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of security realms to set up. Optional.</description>
        </parameter>
        <parameter>
          <name>webApp</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The location of the war file.</description>
        </parameter>
        <parameter>
          <name>webDefaultXml</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>A webdefault.xml file to use instead
of the default for the webapp. Optional.</description>
        </parameter>
      </parameters>
      <configuration>
        <scanIntervalSeconds implementation="int">0</scanIntervalSeconds>
        <tmpDirectory implementation="java.io.File">${project.build.directory}/work</tmpDirectory>
        <project implementation="org.apache.maven.project.MavenProject">${executedProject}</project>
        <webApp implementation="java.io.File">${project.build.directory}/${project.build.finalName}.war</webApp>
        <contextPath implementation="java.lang.String">/${project.artifactId}</contextPath>
      </configuration>
    </mojo>
    <mojo>
      <goal>run-exploded</goal>
      <description>&lt;p&gt;
This goal is used to assemble your webapp into an exploded war and automatically deploy it to Jetty.
&lt;/p&gt;
&lt;p&gt;
Once invoked, the plugin can be configured to run continuously, scanning for changes in the pom.xml and
to WEB-INF/web.xml, WEB-INF/classes or WEB-INF/lib and hot redeploy when a change is detected.
&lt;/p&gt;
&lt;p&gt;
You may also specify the location of a jetty.xml file whose contents will be applied before any plugin configuration.
This can be used, for example, to deploy a static webapp that is not part of your maven build.
&lt;/p&gt;
&lt;p&gt;
There is a &lt;a href=&quot;run-exploded-mojo.html&quot;&gt;reference guide&lt;/a&gt; to the configuration parameters for this plugin, and more detailed information
with examples in the &lt;a href=&quot;http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin&quot;&gt;Configuration Guide&lt;/a&gt;.
&lt;/p&gt;</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <executePhase>package</executePhase>
      <implementation>org.mortbay.jetty.plugin.Jetty6RunWarExploded</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>connectors</name>
          <type>org.mortbay.jetty.Connector[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of connectors to use. If none are configured
then we use a single SelectChannelConnector at port 8080</description>
        </parameter>
        <parameter>
          <name>contextPath</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The context path for the webapp. Defaults to the
name of the webapp&apos;s artifact.</description>
        </parameter>
        <parameter>
          <name>jettyConfig</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Location of a jetty xml configuration file whose contents
will be applied before any plugin configuration. Optional.</description>
        </parameter>
        <parameter>
          <name>overrideWebXml</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>A web.xml file to be applied AFTER
the webapp&apos;s web.xml file. Useful for
applying different build profiles, eg
test, production etc. Optional.</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>false</editable>
          <description>The maven project.</description>
        </parameter>
        <parameter>
          <name>requestLog</name>
          <type>org.mortbay.jetty.RequestLog</type>
          <required>false</required>
          <editable>true</editable>
          <description>A RequestLog implementation to use for the webapp at runtime.
Optional.</description>
        </parameter>
        <parameter>
          <name>scanIntervalSeconds</name>
          <type>int</type>
          <required>true</required>
          <editable>true</editable>
          <description>The interval in seconds to scan the webapp for changes
and restart the context if necessary. Disabled by default.</description>
        </parameter>
        <parameter>
          <name>systemProperties</name>
          <type>org.mortbay.jetty.plugin.util.SystemProperty[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>System properties to set before execution.
Note that these properties will NOT override System properties
that have been set on the command line or by the JVM. Optional.</description>
        </parameter>
        <parameter>
          <name>tmpDirectory</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The temporary directory to use for the webapp.
Defaults to target/jetty-tmp</description>
        </parameter>
        <parameter>
          <name>userRealms</name>
          <type>org.mortbay.jetty.security.UserRealm[]</type>
          <required>false</required>
          <editable>true</editable>
          <description>List of security realms to set up. Optional.</description>
        </parameter>
        <parameter>
          <name>webApp</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The location of the war file.</description>
        </parameter>
        <parameter>
          <name>webDefaultXml</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>A webdefault.xml file to use instead
of the default for the webapp. Optional.</description>
        </parameter>
      </parameters>
      <configuration>
        <scanIntervalSeconds implementation="int">0</scanIntervalSeconds>
        <tmpDirectory implementation="java.io.File">${project.build.directory}/work</tmpDirectory>
        <project implementation="org.apache.maven.project.MavenProject">${executedProject}</project>
        <webApp implementation="java.io.File">${project.build.directory}/${project.build.finalName}</webApp>
        <contextPath implementation="java.lang.String">/${project.artifactId}</contextPath>
      </configuration>
    </mojo>
  </mojos>
  <dependencies/>
</plugin>
New to GrepCode? Check out our FAQ X