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/servicecomb-saga.git
The following commit(s) were added to refs/heads/master by this push:
new 94d68e8 Clean up the dependencies of tcc-spring-demo
94d68e8 is described below
commit 94d68e84568a44b472e76c17800ba26a6d32f187
Author: Willem Jiang <[email protected]>
AuthorDate: Sun Nov 11 21:18:39 2018 +0800
Clean up the dependencies of tcc-spring-demo
---
saga-demo/tcc-spring-demo/inventory/pom.xml | 32 ++++-------------------------
saga-demo/tcc-spring-demo/ordering/pom.xml | 19 -----------------
saga-demo/tcc-spring-demo/payment/pom.xml | 28 ++++---------------------
saga-demo/tcc-spring-demo/pom.xml | 17 +++++++++++++++
4 files changed, 25 insertions(+), 71 deletions(-)
diff --git a/saga-demo/tcc-spring-demo/inventory/pom.xml
b/saga-demo/tcc-spring-demo/inventory/pom.xml
index 497eeac..bd2f287 100644
--- a/saga-demo/tcc-spring-demo/inventory/pom.xml
+++ b/saga-demo/tcc-spring-demo/inventory/pom.xml
@@ -30,18 +30,7 @@
<name>Saga::Demo::Tcc-Spring-Demo::Tcc-Inventory</name>
<dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicecomb.saga</groupId>
- <artifactId>omega-spring-starter</artifactId>
- </dependency>
+ <!-- Add the JPA starter -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
@@ -56,30 +45,17 @@
</exclusion>
</exclusions>
</dependency>
+ <!-- Added the eclipse link JPA configuration-->
<dependency>
<groupId>org.apache.servicecomb.saga</groupId>
<artifactId>saga-persistence-jpa</artifactId>
</dependency>
- <dependency>
- <groupId>org.apache.servicecomb.saga</groupId>
- <artifactId>omega-transport-resttemplate</artifactId>
- </dependency>
- <dependency>
- <groupId>org.eclipse.persistence</groupId>
- <artifactId>org.eclipse.persistence.jpa</artifactId>
- </dependency>
+ <!-- Added the driver of h2 -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.persistence</groupId>
- <artifactId>javax.persistence-api</artifactId>
- </dependency>
+ <!-- Added the test dependencies -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
diff --git a/saga-demo/tcc-spring-demo/ordering/pom.xml
b/saga-demo/tcc-spring-demo/ordering/pom.xml
index 93a65e3..8158a35 100644
--- a/saga-demo/tcc-spring-demo/ordering/pom.xml
+++ b/saga-demo/tcc-spring-demo/ordering/pom.xml
@@ -29,25 +29,6 @@
<artifactId>tcc-ordering</artifactId>
<name>Saga::Demo::Tcc-Spring-Demo::Tcc-Ordering</name>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicecomb.saga</groupId>
- <artifactId>omega-spring-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicecomb.saga</groupId>
- <artifactId>omega-transport-resttemplate</artifactId>
- </dependency>
- </dependencies>
-
<build>
<plugins>
<!-- mixin plugin configurations declared in another pom,
diff --git a/saga-demo/tcc-spring-demo/payment/pom.xml
b/saga-demo/tcc-spring-demo/payment/pom.xml
index fa871cf..9c07521 100644
--- a/saga-demo/tcc-spring-demo/payment/pom.xml
+++ b/saga-demo/tcc-spring-demo/payment/pom.xml
@@ -28,22 +28,7 @@
<name>Saga::Demo::Tcc-Spring-Demo::Tcc-Payment</name>
<dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicecomb.saga</groupId>
- <artifactId>omega-spring-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicecomb.saga</groupId>
- <artifactId>omega-transport-resttemplate</artifactId>
- </dependency>
+ <!-- Add the JPA starter -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
@@ -58,22 +43,17 @@
</exclusion>
</exclusions>
</dependency>
+ <!-- Added the eclipse link JPA configuration-->
<dependency>
<groupId>org.apache.servicecomb.saga</groupId>
<artifactId>saga-persistence-jpa</artifactId>
</dependency>
+ <!-- Added the driver of h2 -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
- <dependency>
- <groupId>javax.persistence</groupId>
- <artifactId>javax.persistence-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.eclipse.persistence</groupId>
- <artifactId>org.eclipse.persistence.jpa</artifactId>
- </dependency>
+ <!-- Added the test dependencies -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
diff --git a/saga-demo/tcc-spring-demo/pom.xml
b/saga-demo/tcc-spring-demo/pom.xml
index 2883230..76bc069 100644
--- a/saga-demo/tcc-spring-demo/pom.xml
+++ b/saga-demo/tcc-spring-demo/pom.xml
@@ -39,5 +39,22 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-web</artifactId>
+ </dependency>
+ <!-- Added the Omega dependencies -->
+ <dependency>
+ <groupId>org.apache.servicecomb.saga</groupId>
+ <artifactId>omega-spring-starter</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicecomb.saga</groupId>
+ <artifactId>omega-transport-resttemplate</artifactId>
+ </dependency>
</dependencies>
</project>