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
2964e311
Commit
2964e311
authored
Nov 25, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
e81f7d58
6e79521f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
2 deletions
+68
-2
AbstractRunMojo.java
.../java/org/springframework/boot/maven/AbstractRunMojo.java
+1
-1
StopMojo.java
...rc/main/java/org/springframework/boot/maven/StopMojo.java
+1
-1
it-skip.apt.vm
...ng-boot-maven-plugin/src/site/apt/examples/it-skip.apt.vm
+63
-0
index.apt
...oot-tools/spring-boot-maven-plugin/src/site/apt/index.apt
+2
-0
site.xml
spring-boot-tools/spring-boot-maven-plugin/src/site/site.xml
+1
-0
No files found.
spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java
View file @
2964e311
...
...
@@ -167,7 +167,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* Skip the execution.
* @since 1.3.2
*/
@Parameter
(
defaultValue
=
"false"
)
@Parameter
(
property
=
"skip"
,
defaultValue
=
"false"
)
private
boolean
skip
;
@Override
...
...
spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java
View file @
2964e311
...
...
@@ -75,7 +75,7 @@ public class StopMojo extends AbstractMojo {
* Skip the execution.
* @since 1.3.2
*/
@Parameter
(
defaultValue
=
"false"
)
@Parameter
(
property
=
"skip"
,
defaultValue
=
"false"
)
private
boolean
skip
;
@Override
...
...
spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/it-skip.apt.vm
0 → 100644
View file @
2964e311
-----
Skip integration tests
-----
Stephane Nicoll
-----
2016-11-25
-----
The <<<skip>>> property allows to skip the execution of the Spring Boot maven plugin
altogether. This example shows how you can skip integration tests with a command-line
property and still make sure that the <<repackage>> goal runs:
---
<project>
<properties>
<skip.it>false</skip.it>
...
</properties>
...
<build>
...
<plugins>
...
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>pre-integration-test</id>
<goals>
<goal>start</goal>
</goals>
<configuration>
<skip>${skip.it}</skip>
</configuration>
</execution>
<execution>
<id>post-integration-test</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<skip>${skip.it}</skip>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<skip>${skip.it}</skip>
</configuration>
</plugin>
...
</plugins>
...
</build>
---
By default, the integration tests will run but this setup allows you to easily disable
them on the command-line as follows: <<<mvn verify -Dskip.it=true>>>.
spring-boot-tools/spring-boot-maven-plugin/src/site/apt/index.apt
View file @
2964e311
...
...
@@ -54,6 +54,8 @@ Spring Boot Maven Plugin
* {{{./examples/it-random-port.html}Random port for integration tests}}
* {{{./examples/it-skip.html}Skip integration tests}}
* {{{./examples/run-profiles.html}Specify active profiles}}
* {{{./examples/build-info.html}Generate build information}}
...
...
spring-boot-tools/spring-boot-maven-plugin/src/site/site.xml
View file @
2964e311
...
...
@@ -12,6 +12,7 @@
<item
name=
"Exclude a dependency"
href=
"examples/exclude-dependency.html"
/>
<item
name=
"Debug the application"
href=
"examples/run-debug.html"
/>
<item
name=
"Random port for integration tests"
href=
"examples/it-random-port.html"
/>
<item
name=
"Skip integration tests"
href=
"examples/it-skip.html"
/>
<item
name=
"Specify active profiles"
href=
"examples/run-profiles.html"
/>
<item
name=
"Generate build information"
href=
"examples/build-info.html"
/>
</menu>
...
...
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