类 RepackageMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractPackagerMojo
org.springframework.boot.maven.RepackageMojo
- 所有已实现的接口:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="repackage",
defaultPhase=PACKAGE,
requiresProject=true,
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
public class RepackageMojo
extends AbstractPackagerMojo
Repackage existing JAR and WAR archives so that they can be executed from the command
line using java -jar. With
layout=NONE
can also be used simply
to package a JAR with nested dependencies (and no main class, so not executable).- 从以下版本开始:
- 1.0.0
- 作者:
- Phillip Webb, Dave Syer, Stephane Nicoll, Björn Lindström, Scott Frederick
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.maven.AbstractPackagerMojo
AbstractPackagerMojo.LayoutType
从类继承的嵌套类/接口 org.springframework.boot.maven.AbstractDependencyFilterMojo
AbstractDependencyFilterMojo.ExcludeTestScopeArtifactFilter, AbstractDependencyFilterMojo.RuntimeArtifactFilter
-
字段概要
从类继承的字段 org.springframework.boot.maven.AbstractPackagerMojo
includeSystemScope, includeTools, project, projectHelper, session
从接口继承的字段 org.apache.maven.plugin.Mojo
ROLE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
execute()
protected AbstractPackagerMojo.LayoutType
Return the type of archive that should be packaged by this MOJO.protected org.springframework.boot.loader.tools.LayoutFactory
Return the layout factory that will be used to determine theAbstractPackagerMojo.LayoutType
if no explicit layout is set.protected org.springframework.boot.loader.tools.LoaderImplementation
Return the loader implementation that should be used.从类继承的方法 org.springframework.boot.maven.AbstractPackagerMojo
getConfiguredPackager, getLibraries, getSourceArtifact, getTargetFile
从类继承的方法 org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURL
从类继承的方法 org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
构造器详细资料
-
RepackageMojo
public RepackageMojo()
-
-
方法详细资料
-
getLayout
Return the type of archive that should be packaged by this MOJO.- 覆盖:
getLayout
在类中AbstractPackagerMojo
- 返回:
- the value of the
layout
parameter, ornull
if the parameter is not provided
-
getLoaderImplementation
protected org.springframework.boot.loader.tools.LoaderImplementation getLoaderImplementation()从类复制的说明:AbstractPackagerMojo
Return the loader implementation that should be used.- 覆盖:
getLoaderImplementation
在类中AbstractPackagerMojo
- 返回:
- the loader implementation or
null
-
getLayoutFactory
protected org.springframework.boot.loader.tools.LayoutFactory getLayoutFactory()Return the layout factory that will be used to determine theAbstractPackagerMojo.LayoutType
if no explicit layout is set.- 覆盖:
getLayoutFactory
在类中AbstractPackagerMojo
- 返回:
- the value of the
layoutFactory
parameter, ornull
if the parameter is not provided
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- 抛出:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-