This is an automated email from the ASF dual-hosted git repository.
jooks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new bd72325c0 [ISSUE 3513] [Part 1] Change dockerfile-maven-plugin to
docker-maven-plugin (#3685)
bd72325c0 is described below
commit bd72325c01aa3d22cd5cdb19dec9869fdf281808
Author: Jiageng <[email protected]>
AuthorDate: Sun Jul 10 00:42:13 2022 +0800
[ISSUE 3513] [Part 1] Change dockerfile-maven-plugin to docker-maven-plugin
(#3685)
* refact: change packaging plugin to docker-maven-plugin in examples
* refact: change plugin to docker-maven-plugin for shenyu-dist & remove
dockerfile-maven-plugin
---
pom.xml | 1 -
shenyu-dist/shenyu-admin-dist/pom.xml | 45 +++++++++++-----------
shenyu-dist/shenyu-bootstrap-dist/pom.xml | 45 +++++++++++-----------
shenyu-examples/pom.xml | 2 +-
.../shenyu-examples-alibaba-dubbo-service/pom.xml | 30 +++++++++------
.../pom.xml | 30 +++++++++------
.../shenyu-examples-apache-dubbo-service/pom.xml | 30 +++++++++------
shenyu-examples/shenyu-examples-eureka/pom.xml | 30 +++++++++------
shenyu-examples/shenyu-examples-grpc/pom.xml | 30 +++++++++------
shenyu-examples/shenyu-examples-http/pom.xml | 30 +++++++++------
shenyu-examples/shenyu-examples-https/pom.xml | 30 +++++++++------
.../shenyu-examples-motan-service/pom.xml | 30 +++++++++------
.../shenyu-examples-sofa-service/pom.xml | 30 +++++++++------
.../shenyu-examples-springcloud/pom.xml | 30 +++++++++------
shenyu-examples/shenyu-examples-springmvc/pom.xml | 30 +++++++++------
.../shenyu-example-spring-native-websocket/pom.xml | 30 +++++++++------
16 files changed, 275 insertions(+), 178 deletions(-)
diff --git a/pom.xml b/pom.xml
index 43f31c57e..ff322d85f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -152,7 +152,6 @@
<spring-ldap.version>2.3.4.RELEASE</spring-ldap.version>
<jaxb.api.version>2.3.1</jaxb.api.version>
<mail.version>1.6.2</mail.version>
-
<dockerfile-maven-plugin.version>1.4.6</dockerfile-maven-plugin.version>
<docker-maven-plugin.version>0.40.1</docker-maven-plugin.version>
<ojdbc8.version>19.3.0.0</ojdbc8.version>
<spring-cloud-alibaba.version>2021.0.1.0</spring-cloud-alibaba.version>
diff --git a/shenyu-dist/shenyu-admin-dist/pom.xml
b/shenyu-dist/shenyu-admin-dist/pom.xml
index 1cdfedf57..dc8394dce 100644
--- a/shenyu-dist/shenyu-admin-dist/pom.xml
+++ b/shenyu-dist/shenyu-admin-dist/pom.xml
@@ -92,41 +92,42 @@
<profile>
<id>docker</id>
+ <properties>
+
<docker.buildArg.APP_NAME>apache-shenyu-incubating-${project.version}-admin-bin</docker.buildArg.APP_NAME>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>apache/shenyu-admin:latest</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ <image>
+
<name>apache/shenyu-admin:${project.version}</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>tag-latest</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
- <configuration>
- <tag>latest</tag>
- </configuration>
- </execution>
- <execution>
- <id>tag-version</id>
- <goals>
- <goal>build</goal>
- </goals>
- <configuration>
- <tag>${project.version}</tag>
- </configuration>
</execution>
</executions>
- <configuration>
- <repository>apache/shenyu-admin</repository>
- <buildArgs>
-
<APP_NAME>apache-shenyu-incubating-${project.version}-admin-bin</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git a/shenyu-dist/shenyu-bootstrap-dist/pom.xml
b/shenyu-dist/shenyu-bootstrap-dist/pom.xml
index f8bf980de..739b58910 100644
--- a/shenyu-dist/shenyu-bootstrap-dist/pom.xml
+++ b/shenyu-dist/shenyu-bootstrap-dist/pom.xml
@@ -80,41 +80,42 @@
<profile>
<id>docker</id>
+ <properties>
+
<docker.buildArg.APP_NAME>apache-shenyu-incubating-${project.version}-bootstrap-bin</docker.buildArg.APP_NAME>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>apache/shenyu-bootstrap:latest</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ <image>
+
<name>apache/shenyu-bootstrap:${project.version}</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>tag-latest</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
- <configuration>
- <tag>latest</tag>
- </configuration>
- </execution>
- <execution>
- <id>tag-version</id>
- <goals>
- <goal>build</goal>
- </goals>
- <configuration>
- <tag>${project.version}</tag>
- </configuration>
</execution>
</executions>
- <configuration>
- <repository>apache/shenyu-bootstrap</repository>
- <buildArgs>
-
<APP_NAME>apache-shenyu-incubating-${project.version}-bootstrap-bin</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git a/shenyu-examples/pom.xml b/shenyu-examples/pom.xml
index bfb6d9da5..19e9af6b2 100644
--- a/shenyu-examples/pom.xml
+++ b/shenyu-examples/pom.xml
@@ -36,7 +36,7 @@
<properties>
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
<versions-maven-plugin.version>2.5</versions-maven-plugin.version>
-
<dockerfile-maven-plugin.version>1.4.6</dockerfile-maven-plugin.version>
+ <docker-maven-plugin.version>0.40.1</docker-maven-plugin.version>
</properties>
<modules>
diff --git
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-alibaba-dubbo-service/pom.xml
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-alibaba-dubbo-service/pom.xml
index a643b807a..5b28162d4 100644
---
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-alibaba-dubbo-service/pom.xml
+++
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-alibaba-dubbo-service/pom.xml
@@ -133,30 +133,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-alibaba-dubbo-service</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-alibaba-dubbo-service</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+
<name>shenyu-examples-alibaba-dubbo-service</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-alibaba-dubbo-service</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
-
<repository>shenyu-examples-alibaba-dubbo-service</repository>
- <tag>latest</tag>
- <buildArgs>
-
<APP_NAME>shenyu-examples-alibaba-dubbo-service</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-xml/pom.xml
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-xml/pom.xml
index b5af26a65..8890bf9e5 100644
---
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-xml/pom.xml
+++
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-xml/pom.xml
@@ -147,30 +147,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-apache-dubbo-service-xml</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-apache-dubbo-service-xml</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+
<name>shenyu-examples-apache-dubbo-service-xml</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
-
<id>shenyu-examples-apache-dubbo-service-xml</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
-
<repository>shenyu-examples-apache-dubbo-service-xml</repository>
- <tag>latest</tag>
- <buildArgs>
-
<APP_NAME>shenyu-examples-apache-dubbo-service-xml</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service/pom.xml
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service/pom.xml
index aff2c78da..434aa0f18 100644
---
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service/pom.xml
+++
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service/pom.xml
@@ -148,30 +148,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-apache-dubbo-service</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-apache-dubbo-service</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+
<name>shenyu-examples-apache-dubbo-service</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-apache-dubbo-service</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
-
<repository>shenyu-examples-apache-dubbo-service</repository>
- <tag>latest</tag>
- <buildArgs>
-
<APP_NAME>shenyu-examples-apache-dubbo-service</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git a/shenyu-examples/shenyu-examples-eureka/pom.xml
b/shenyu-examples/shenyu-examples-eureka/pom.xml
index 7ee756ce1..33f84a312 100644
--- a/shenyu-examples/shenyu-examples-eureka/pom.xml
+++ b/shenyu-examples/shenyu-examples-eureka/pom.xml
@@ -132,30 +132,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-eureka</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-eureka</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>shenyu-examples-eureka</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-eureka</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
- <repository>shenyu-examples-eureka</repository>
- <tag>latest</tag>
- <buildArgs>
- <APP_NAME>shenyu-examples-eureka</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git a/shenyu-examples/shenyu-examples-grpc/pom.xml
b/shenyu-examples/shenyu-examples-grpc/pom.xml
index b775600dd..d4b2b3f05 100644
--- a/shenyu-examples/shenyu-examples-grpc/pom.xml
+++ b/shenyu-examples/shenyu-examples-grpc/pom.xml
@@ -120,30 +120,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-grpc</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-grpc</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>shenyu-examples-grpc</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-grpc</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
- <repository>shenyu-examples-grpc</repository>
- <tag>latest</tag>
- <buildArgs>
- <APP_NAME>shenyu-examples-grpc</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git a/shenyu-examples/shenyu-examples-http/pom.xml
b/shenyu-examples/shenyu-examples-http/pom.xml
index 62b4bb124..4cf2b07b1 100644
--- a/shenyu-examples/shenyu-examples-http/pom.xml
+++ b/shenyu-examples/shenyu-examples-http/pom.xml
@@ -88,30 +88,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-http</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-http</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>shenyu-examples-http</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-http</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
- <repository>shenyu-examples-http</repository>
- <tag>latest</tag>
- <buildArgs>
- <APP_NAME>shenyu-examples-http</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git a/shenyu-examples/shenyu-examples-https/pom.xml
b/shenyu-examples/shenyu-examples-https/pom.xml
index 4789e523f..6ed81807e 100644
--- a/shenyu-examples/shenyu-examples-https/pom.xml
+++ b/shenyu-examples/shenyu-examples-https/pom.xml
@@ -74,30 +74,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-https</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-https</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>shenyu-examples-https</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-https</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
- <repository>shenyu-examples-https</repository>
- <tag>latest</tag>
- <buildArgs>
- <APP_NAME>shenyu-examples-https</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git
a/shenyu-examples/shenyu-examples-motan/shenyu-examples-motan-service/pom.xml
b/shenyu-examples/shenyu-examples-motan/shenyu-examples-motan-service/pom.xml
index acd5db3c0..1d7263c8b 100644
---
a/shenyu-examples/shenyu-examples-motan/shenyu-examples-motan-service/pom.xml
+++
b/shenyu-examples/shenyu-examples-motan/shenyu-examples-motan-service/pom.xml
@@ -77,30 +77,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-motan</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-motan</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>shenyu-examples-motan</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-motan</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
- <repository>shenyu-examples-motan</repository>
- <tag>latest</tag>
- <buildArgs>
- <APP_NAME>shenyu-examples-motan</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git
a/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/pom.xml
b/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/pom.xml
index 6664a203f..7622572fa 100644
--- a/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/pom.xml
+++ b/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/pom.xml
@@ -132,30 +132,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-sofa</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-sofa</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>shenyu-examples-sofa</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-sofa</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
- <repository>shenyu-examples-sofa</repository>
- <tag>latest</tag>
- <buildArgs>
- <APP_NAME>shenyu-examples-sofa</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git a/shenyu-examples/shenyu-examples-springcloud/pom.xml
b/shenyu-examples/shenyu-examples-springcloud/pom.xml
index d3cad4cf3..f254822e1 100644
--- a/shenyu-examples/shenyu-examples-springcloud/pom.xml
+++ b/shenyu-examples/shenyu-examples-springcloud/pom.xml
@@ -112,30 +112,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-springcloud</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-springcloud</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>1.4.6</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>shenyu-examples-springcloud</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-springcloud</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
-
<repository>shenyu-examples-springcloud</repository>
- <tag>latest</tag>
- <buildArgs>
-
<APP_NAME>shenyu-examples-springcloud</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git a/shenyu-examples/shenyu-examples-springmvc/pom.xml
b/shenyu-examples/shenyu-examples-springmvc/pom.xml
index d16d488c6..718fb81dc 100644
--- a/shenyu-examples/shenyu-examples-springmvc/pom.xml
+++ b/shenyu-examples/shenyu-examples-springmvc/pom.xml
@@ -69,30 +69,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-examples-springmvc</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-examples-springmvc</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+ <name>shenyu-examples-springmvc</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-examples-springmvc</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
- <repository>shenyu-examples-springmvc</repository>
- <tag>latest</tag>
- <buildArgs>
- <APP_NAME>shenyu-examples-springmvc</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>
diff --git
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/pom.xml
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/pom.xml
index 4ad34e74e..aa5f0ab79 100644
---
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/pom.xml
+++
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/pom.xml
@@ -93,30 +93,38 @@
<profiles>
<profile>
<id>example</id>
+ <properties>
+
<docker.buildArg.APP_NAME>shenyu-example-spring-native-websocket</docker.buildArg.APP_NAME>
+
<docker.image.tag.repo>shenyu-example-spring-native-websocket</docker.image.tag.repo>
+ <docker.image.tag.tagName>latest</docker.image.tag.tagName>
+ </properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-plugin.version}</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <configuration>
+ <images>
+ <image>
+
<name>shenyu-example-spring-native-websocket</name>
+ <build>
+
<contextDir>${project.basedir}</contextDir>
+ </build>
+ </image>
+ </images>
+ </configuration>
<executions>
<execution>
- <id>shenyu-example-spring-native-websocket</id>
+ <id>start</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
- <configuration>
-
<repository>shenyu-example-spring-native-websocket</repository>
- <tag>latest</tag>
- <buildArgs>
-
<APP_NAME>shenyu-example-spring-native-websocket</APP_NAME>
- </buildArgs>
- </configuration>
</plugin>
</plugins>
</build>