类 AbstractPackagerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractPackagerMojo
- 所有已实现的接口:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- 直接已知子类:
BuildImageMojo,RepackageMojo
Abstract base class for classes that work with an
Packager.- 从以下版本开始:
- 2.3.0
- 作者:
- Phillip Webb, Scott Frederick, Moritz Halbritter
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 org.springframework.boot.maven.AbstractDependencyFilterMojo
AbstractDependencyFilterMojo.ExcludeTestScopeArtifactFilter, AbstractDependencyFilterMojo.RuntimeArtifactFilter -
字段概要
字段修饰符和类型字段说明booleanInclude system scoped dependencies.booleanInclude JAR tools.protected org.apache.maven.project.MavenProjectThe Maven project.protected org.apache.maven.project.MavenProjectHelperMaven project helper utils.protected org.apache.maven.execution.MavenSessionThe Maven session.从接口继承的字段 org.apache.maven.plugin.Mojo
ROLE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected <P extends org.springframework.boot.loader.tools.Packager>
PgetConfiguredPackager(Supplier<P> supplier) Return aPackagerconfigured for this MOJO.protected AbstractPackagerMojo.LayoutTypeReturn the type of archive that should be packaged by this MOJO.protected org.springframework.boot.loader.tools.LayoutFactoryReturn the layout factory that will be used to determine theAbstractPackagerMojo.LayoutTypeif no explicit layout is set.protected final org.springframework.boot.loader.tools.LibrariesgetLibraries(Collection<org.apache.maven.model.Dependency> unpacks) ReturnLibrariesthat the packager can use.protected org.springframework.boot.loader.tools.LoaderImplementationReturn the loader implementation that should be used.protected org.apache.maven.artifact.ArtifactgetSourceArtifact(String classifier) Return the sourceArtifactto repackage.protected FilegetTargetFile(String finalName, String classifier, File targetDirectory) 从类继承的方法 org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURL从类继承的方法 org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.maven.plugin.Mojo
execute
-
字段详细资料
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectThe Maven project.- 从以下版本开始:
- 1.0.0
-
session
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession sessionThe Maven session.- 从以下版本开始:
- 2.4.0
-
projectHelper
@Component protected org.apache.maven.project.MavenProjectHelper projectHelperMaven project helper utils.- 从以下版本开始:
- 1.0.0
-
includeSystemScope
@Parameter(defaultValue="false") public boolean includeSystemScopeInclude system scoped dependencies.- 从以下版本开始:
- 1.4.0
-
includeTools
@Parameter(defaultValue="true") public boolean includeToolsInclude JAR tools.- 从以下版本开始:
- 3.3.0
-
-
构造器详细资料
-
AbstractPackagerMojo
public AbstractPackagerMojo()
-
-
方法详细资料
-
getLayout
Return the type of archive that should be packaged by this MOJO.- 返回:
null, indicating a layout type will be chosen based on the original archive type
-
getLoaderImplementation
protected org.springframework.boot.loader.tools.LoaderImplementation getLoaderImplementation()Return the loader implementation that should be used.- 返回:
- the loader implementation or
null - 从以下版本开始:
- 3.2.0
-
getLayoutFactory
protected org.springframework.boot.loader.tools.LayoutFactory getLayoutFactory()Return the layout factory that will be used to determine theAbstractPackagerMojo.LayoutTypeif no explicit layout is set.- 返回:
null, indicating a default layout factory will be chosen
-
getConfiguredPackager
protected <P extends org.springframework.boot.loader.tools.Packager> P getConfiguredPackager(Supplier<P> supplier) Return aPackagerconfigured for this MOJO.- 类型参数:
P- the packager type- 参数:
supplier- a packager supplier- 返回:
- a configured packager
-
getLibraries
protected final org.springframework.boot.loader.tools.Libraries getLibraries(Collection<org.apache.maven.model.Dependency> unpacks) throws org.apache.maven.plugin.MojoExecutionException ReturnLibrariesthat the packager can use.- 参数:
unpacks- any libraries that require unpack- 返回:
- the libraries to use
- 抛出:
org.apache.maven.plugin.MojoExecutionException- on execution error
-
getSourceArtifact
Return the sourceArtifactto repackage. If a classifier is specified and an artifact with that classifier exists, it is used. Otherwise, the main artifact is used.- 参数:
classifier- the artifact classifier- 返回:
- the source artifact to repackage
-
getTargetFile
-