Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
7f41dbd6
Commit
7f41dbd6
authored
May 02, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resore code formatting
parent
125ab9f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
RepackageMojo.java
...in/java/org/springframework/boot/maven/RepackageMojo.java
+11
-13
No files found.
spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java
View file @
7f41dbd6
...
@@ -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
* i
nside it). Possible values are JAR, WAR, ZIP, DIR, NONE. Defaults to a
* i
t). 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment