From b0f6f636b8f276063453518320f7c100f66f5c56 Mon Sep 17 00:00:00 2001 From: manusa Date: Tue, 22 Jun 2021 12:16:08 +0200 Subject: [PATCH] Replace fabric8-maven-plugin dependency with Eclipse JKube OpenShift Maven Plugin --- cep-fraud-detection-springboot/README.adoc | 2 +- cep-fraud-detection-springboot/pom.xml | 25 ++++++++----------- .../main/{fabric8 => jkube}/deployment.yml | 0 .../src/main/{fabric8 => jkube}/route.yml | 0 .../src/main/{fabric8 => jkube}/svc.yml | 0 5 files changed, 12 insertions(+), 15 deletions(-) rename cep-fraud-detection-springboot/src/main/{fabric8 => jkube}/deployment.yml (100%) rename cep-fraud-detection-springboot/src/main/{fabric8 => jkube}/route.yml (100%) rename cep-fraud-detection-springboot/src/main/{fabric8 => jkube}/svc.yml (100%) diff --git a/cep-fraud-detection-springboot/README.adoc b/cep-fraud-detection-springboot/README.adoc index dac1439..d696583 100644 --- a/cep-fraud-detection-springboot/README.adoc +++ b/cep-fraud-detection-springboot/README.adoc @@ -127,7 +127,7 @@ $ oc new-project rules-service [source, java] .*2. 部署到 OpenShift* ---- -$ mvn package fabric8:deploy -Popenshift +$ mvn package oc:deploy -Popenshift ---- == 测试 diff --git a/cep-fraud-detection-springboot/pom.xml b/cep-fraud-detection-springboot/pom.xml index c07b8b4..5d8e5b9 100644 --- a/cep-fraud-detection-springboot/pom.xml +++ b/cep-fraud-detection-springboot/pom.xml @@ -1,27 +1,24 @@ - - + 4.0.0 - + org.drools.example cep-fraud-detection 0.1.0 - + org.springframework.boot spring-boot-starter-parent 1.5.12.RELEASE - + 7.14.0.Final-redhat-00002 1.8 1.8 UTF-8 UTF-8 - 3.5.40 - + 1.3.0 @@ -30,8 +27,8 @@ org.kie kie-server-spring-boot-starter-drools ${version.org.kie} - - + + org.springframework.boot spring-boot-starter-web @@ -60,13 +57,13 @@ - io.fabric8 - fabric8-maven-plugin - ${fabric8.version} + org.eclipse.jkube + openshift-maven-plugin + ${jkube.version} - fmp-openshift-route + jkube-openshift-route diff --git a/cep-fraud-detection-springboot/src/main/fabric8/deployment.yml b/cep-fraud-detection-springboot/src/main/jkube/deployment.yml similarity index 100% rename from cep-fraud-detection-springboot/src/main/fabric8/deployment.yml rename to cep-fraud-detection-springboot/src/main/jkube/deployment.yml diff --git a/cep-fraud-detection-springboot/src/main/fabric8/route.yml b/cep-fraud-detection-springboot/src/main/jkube/route.yml similarity index 100% rename from cep-fraud-detection-springboot/src/main/fabric8/route.yml rename to cep-fraud-detection-springboot/src/main/jkube/route.yml diff --git a/cep-fraud-detection-springboot/src/main/fabric8/svc.yml b/cep-fraud-detection-springboot/src/main/jkube/svc.yml similarity index 100% rename from cep-fraud-detection-springboot/src/main/fabric8/svc.yml rename to cep-fraud-detection-springboot/src/main/jkube/svc.yml