Commit 7f41dbd6 authored by Phillip Webb's avatar Phillip Webb

Resore code formatting

parent 125ab9f7
...@@ -37,18 +37,15 @@ import org.springframework.boot.loader.tools.Libraries; ...@@ -37,18 +37,15 @@ import org.springframework.boot.loader.tools.Libraries;
import org.springframework.boot.loader.tools.Repackager; import org.springframework.boot.loader.tools.Repackager;
/** /**
* Repackages existing JAR and WAR archives so that they can be executed from * Repackages existing JAR and WAR archives so that they can be executed from the command
* the command line using {@literal java -jar}. With <code>layout=NONE</code> * line using {@literal java -jar}. With <code>layout=NONE</code> can also be used simply
* can also be used simply to package a JAR with nested dependencies (and * to package a JAR with nested dependencies (and no main class, so not executable).
* no main class, so not executable).
* *
* @author Phillip Webb * @author Phillip Webb
* @author Dave Syer * @author Dave Syer
* @author Stephane Nicoll * @author Stephane Nicoll
*/ */
@Mojo(name = "repackage", defaultPhase = LifecyclePhase.PACKAGE, requiresProject = true, @Mojo(name = "repackage", defaultPhase = LifecyclePhase.PACKAGE, requiresProject = true, threadSafe = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, requiresDependencyCollection = ResolutionScope.COMPILE_PLUS_RUNTIME)
threadSafe = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME,
requiresDependencyCollection = ResolutionScope.COMPILE_PLUS_RUNTIME)
public class RepackageMojo extends AbstractMojo { public class RepackageMojo extends AbstractMojo {
private static final long FIND_WARNING_TIMEOUT = TimeUnit.SECONDS.toMillis(10); private static final long FIND_WARNING_TIMEOUT = TimeUnit.SECONDS.toMillis(10);
...@@ -84,9 +81,10 @@ public class RepackageMojo extends AbstractMojo { ...@@ -84,9 +81,10 @@ public class RepackageMojo extends AbstractMojo {
/** /**
* Classifier to add to the artifact generated. If given, the artifact will be * Classifier to add to the artifact generated. If given, the artifact will be
* attached. If this is not given, it will merely be written to the output directory * attached. If this is not given, it will merely be written to the output directory
* according to the finalName. Attaching the artifact allows to deploy it alongside * according to the finalName. Attaching the artifact allows to deploy it alongside to
* to the original one, see <a href="http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html"> * the original one, see <a href=
* the maven documentation for more details</a>. * "http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html"
* > the maven documentation for more details</a>.
* @since 1.0 * @since 1.0
*/ */
@Parameter @Parameter
...@@ -101,9 +99,9 @@ public class RepackageMojo extends AbstractMojo { ...@@ -101,9 +99,9 @@ public class RepackageMojo extends AbstractMojo {
private String mainClass; private String mainClass;
/** /**
* The type of archive (which corresponds to how the dependencies are laid out * The type of archive (which corresponds to how the dependencies are laid out inside
* inside it). Possible values are JAR, WAR, ZIP, DIR, NONE. Defaults to a * it). Possible values are JAR, WAR, ZIP, DIR, NONE. Defaults to a guess based on the
* guess based on the archive type. * archive type.
* @since 1.0 * @since 1.0
*/ */
@Parameter @Parameter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment