|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jenkinsci.maven.plugins.hpi.AbstractJettyMojo
org.jenkinsci.maven.plugins.hpi.AbstractJetty6Mojo
org.jenkinsci.maven.plugins.hpi.RunMojo
public class RunMojo
Runs Jenkins 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
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
|
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 String |
defaultPort
Specifies the HTTP port number. |
protected String |
jenkinsCoreId
Optional string that represents "groupId:artifactId" of Jenkins core jar. |
protected String |
jenkinsWarId
Optional string that represents "groupId:artifactId" of Jenkins war. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected org.apache.maven.project.MavenProjectBuilder |
projectBuilder
|
protected File |
warSourceDirectory
Single directory for extra files to include in the WAR. |
| Fields inherited from class org.jenkinsci.maven.plugins.hpi.AbstractJettyMojo |
|---|
PORT_SYSPROPERTY |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
RunMojo()
|
|
| Method Summary | |
|---|---|
void |
checkPomConfiguration()
|
void |
configureScanner()
|
void |
configureWebApplication()
Subclasses should invoke this to setup basic info on the webapp |
void |
execute()
|
void |
finishConfigurationBeforeStart()
|
protected String |
getDefaultHttpPort()
|
protected org.apache.maven.artifact.Artifact |
getJenkinsWarArtifact()
|
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)
|
| Methods inherited from class org.jenkinsci.maven.plugins.hpi.AbstractJetty6Mojo |
|---|
applyJettyXml, createServer, getConfiguredConnectors, getConfiguredRequestLog, getConfiguredUserRealms |
| Methods inherited from class org.jenkinsci.maven.plugins.hpi.AbstractJettyMojo |
|---|
findJettyWebXmlFile, getContextPath, getJettyXmlFileName, getProject, getScanIntervalSeconds, getScanList, getScannerListeners, getServer, getSystemProperties, getTmpDirectory, getWebApplication, getWebDefaultXml, setScanList, setScannerListeners, setServer, setWebApplication, startJetty |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected 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 String defaultPort
protected boolean consoleForceReload
protected org.apache.maven.project.MavenProjectBuilder projectBuilder
protected String jenkinsCoreId
protected String jenkinsWarId
| Constructor Detail |
|---|
public RunMojo()
| Method Detail |
|---|
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.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void configureWebApplication()
throws Exception
AbstractJettyMojo
configureWebApplication in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionException
Exception
public void configureScanner()
throws org.apache.maven.plugin.MojoExecutionException
configureScanner in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected void startScanner()
AbstractJettyMojo
startScanner in class AbstractJettyMojo
public void checkPomConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
checkPomConfiguration in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionExceptionpublic void finishConfigurationBeforeStart()
finishConfigurationBeforeStart in class AbstractJettyMojoprotected String getDefaultHttpPort()
getDefaultHttpPort in class AbstractJettyMojopublic 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.MojoExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||