You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2018/05/05 09:17:32 UTC
[incubator-servicecomb-saga] branch master updated: SCB-20 Added
documents to build Saga with JDK9+
This is an automated email from the ASF dual-hosted git repository.
ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git
The following commit(s) were added to refs/heads/master by this push:
new 9cb8f22 SCB-20 Added documents to build Saga with JDK9+
9cb8f22 is described below
commit 9cb8f227efe113bb46f492a7a7e9094de41dd217
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Sat May 5 16:45:33 2018 +0800
SCB-20 Added documents to build Saga with JDK9+
---
README.md | 11 +++++++++++
acceptance-tests/acceptance-pack/pom.xml | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 49e2964..d76d2b8 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,17 @@ See [Saga Pack Design](docs/design.md) for details.
## Get Started
See [Booking Demo](saga-demo/booking/README.md) for details.
+## Build and Run the tests from source
+* Build the source demo docker image and run all tests
+ ```bash
+ $ mvn clean install -Pdemo,docker
+ ```
+* Current Saga code supports Spring Boot 1.x and Spring Boot 2.x at the same time, saga uses Spring Boot 1.x by default, you can use *-Pspring-boot-2* to switch Spring Boot version to 2.x.
+Since Spring Boot supports JDK9 since 2.x, if you want to build and run test the Saga with JDK9 or JDK10, you need to use the spring-boot-2 profile.
+ ```bash
+ $ mvn clean install -Pdemo,docker,spring-boot-2
+ ```
+
## User Guide
How to build and use can refer to [User Guide](docs/user_guide.md).
diff --git a/acceptance-tests/acceptance-pack/pom.xml b/acceptance-tests/acceptance-pack/pom.xml
index f79213e..d99d476 100644
--- a/acceptance-tests/acceptance-pack/pom.xml
+++ b/acceptance-tests/acceptance-pack/pom.xml
@@ -51,7 +51,7 @@
<profile>
<id>jdk9</id>
<activation>
- <jdk>9</jdk>
+ <jdk>[9,)</jdk>
</activation>
<!-- TODO using jdk argLine to get rid of the jaxb dependencies -->
<properties>
--
To stop receiving notification emails like this one, please contact
ningjiang@apache.org.