public class RunMojo extends AbstractJetty6Mojo
This only needs the source files to be compiled, so run in the compile phase.
To specify the HTTP port, use -Djetty.port=PORT
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory |
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver |
protected boolean |
consoleForceReload
If true, the context will be restarted after a line feed on
the input console.
|
protected java.lang.String |
defaultPort
Specifies the HTTP port number.
|
protected java.lang.String |
jenkinsCoreId
Optional string that represents "groupId:artifactId" of Jenkins core jar.
|
protected java.lang.String |
jenkinsWarId
Optional string that represents "groupId:artifactId" of Jenkins war.
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository |
protected java.lang.String |
maskClasses
[ws|tab|CR|LF]+ separated list of package prefixes that your plugin doesn't want to see
from the core.
|
protected org.apache.maven.project.MavenProjectBuilder |
projectBuilder |
protected java.io.File |
warSourceDirectory
Single directory for extra files to include in the WAR.
|
PORT_SYSPROPERTY| Constructor and Description |
|---|
RunMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPomConfiguration() |
void |
configureScanner() |
void |
configureWebApplication()
Subclasses should invoke this to setup basic info
on the webapp
|
JettyPluginServer |
createServer()
create a proxy that wraps a particular jetty version Server object
|
void |
execute() |
void |
finishConfigurationBeforeStart() |
protected java.lang.String |
getDefaultHttpPort() |
protected org.apache.maven.artifact.Artifact |
getJenkinsWarArtifact() |
java.util.Set<MavenArtifact> |
getProjectArtfacts() |
protected void |
startScanner()
Run a scanner thread on the given list of files and directories, calling
stop/start on the given list of LifeCycle objects if any of the watched
files change.
|
protected MavenArtifact |
wrap(org.apache.maven.artifact.Artifact a) |
applyJettyXml, getConfiguredConnectors, getConfiguredRequestLog, getConfiguredUserRealmsfindJettyWebXmlFile, getContextPath, getJettyXmlFileName, getProject, getScanIntervalSeconds, getScanList, getScannerListeners, getServer, getSystemProperties, getTmpDirectory, getWebApplication, getWebDefaultXml, setScanList, setScannerListeners, setServer, setWebApplication, startJettyprotected java.io.File warSourceDirectory
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
protected java.lang.String defaultPort
protected boolean consoleForceReload
protected org.apache.maven.project.MavenProjectBuilder projectBuilder
protected java.lang.String jenkinsCoreId
protected java.lang.String jenkinsWarId
protected java.lang.String maskClasses
Tokens in this list is prefix-matched against the fully-qualified class name, so add "." to the end of each package name, like "com.foo. com.bar."
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic void configureWebApplication()
throws java.lang.Exception
AbstractJettyMojoconfigureWebApplication in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionExceptionjava.lang.Exceptionpublic void configureScanner()
throws org.apache.maven.plugin.MojoExecutionException
configureScanner in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected void startScanner()
AbstractJettyMojostartScanner in class AbstractJettyMojopublic void checkPomConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
checkPomConfiguration in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionExceptionpublic void finishConfigurationBeforeStart()
finishConfigurationBeforeStart in class AbstractJettyMojoprotected java.lang.String getDefaultHttpPort()
getDefaultHttpPort in class AbstractJettyMojopublic JettyPluginServer createServer()
throws java.lang.Exception
AbstractJettyMojocreateServer in class AbstractJetty6Mojojava.lang.Exceptionorg.mortbay.jetty.plugin.AbstractJettyMojo#createServer()public java.util.Set<MavenArtifact> getProjectArtfacts()
protected MavenArtifact wrap(org.apache.maven.artifact.Artifact a)
protected org.apache.maven.artifact.Artifact getJenkinsWarArtifact()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2013. All Rights Reserved.