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
7dc8ada1
Commit
7dc8ada1
authored
Jan 07, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix full build contributing instructions
Closes gh-11374
parent
f750c13d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
30 deletions
+13
-30
CONTRIBUTING.adoc
CONTRIBUTING.adoc
+13
-30
No files found.
CONTRIBUTING.adoc
View file @
7dc8ada1
...
@@ -99,46 +99,29 @@ checkstyle until you are ready to submit a pull request:
...
@@ -99,46 +99,29 @@ checkstyle until you are ready to submit a pull request:
==== Full Build
==== Full Build
Multi-module Maven builds cannot directly include maven plugins that are part of the
You can run a full build using the following command:
reactor unless they have previously been built. Unfortunately this restriction causes
some compilations for Spring Boot as we include a maven plugin and use it within the
samples. The standard build works around this restriction by launching the samples via
the `maven-invoker-plugin` so that they are not part of the reactor. This works fine
most of the time, however, sometimes it's useful to run a build that includes all modules
(for example when using `maven-versions-plugin`). We use the full build on our CI servers
and during the release process.
Running a full build is a two phase process.
1) Prepare the build
Preparing the build will compile and install the `spring-boot-maven-plugin` so that it
can be referenced during the full build. It also generates a `settings.xml` file that
enables a `snapshot`, `milestone` or `release` profiles based on the version being
built. To prepare the build, from the root directory use:
[indent=0]
[indent=0]
----
----
$ ./mvnw -P
snapshot,prepare install -DskipTests
$ ./mvnw -P
full clean install
----
----
NOTE: You may notice that preparing the build also changes the
NOTE: As for the standard build, you may need to increase the amount of memory available
`spring-boot-starter-parent` POM. This is required for our release process to work
to Maven by setting a `MAVEN_OPTS` environment variable with the value `-Xmx512m`. We
correctly.
generate more artifacts when running the full build (such as Javadoc jars), so you may
find the process a little slower than the standard build.
2) Run the full build
Once the build has been prepared, you can run a full build using the following commands:
[TIP]
====
If you want to run a build without the samples and integration tests, building the
`spring-boot-project` module is enough. You can cd there and run the same command, or you
can run this from the top-level directory:
[indent=0]
[indent=0]
----
----
$ ./mvnw -
s ./settings.xml -f spring-boot-full-build -P
full clean install
$ ./mvnw -
f spring-boot-project -P
full clean install
----
----
====
NOTE: As for the standard build, you may need to increase the amount of memory available
to Maven by setting a `MAVEN_OPTS` environment variable with the value
`-Xmx512m`. We generate more artifacts when running the full build
(such as Javadoc jars), so you may find the process a little slower than the standard build.
...
...
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