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 2019/06/21 07:09:48 UTC

[servicecomb-toolkit] 32/49: Support generating fat jar for consumer service

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-toolkit.git

commit 483d6994e19dd64dd11715902c625171253ef444
Author: MabinGo <bi...@huawei.com>
AuthorDate: Thu May 30 21:06:11 2019 +0800

    Support generating fat jar for consumer service
    
    Signed-off-by: MabinGo <bi...@huawei.com>
---
 .../resources/ServiceComb/consumer/pom.mustache    | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/code-generator/src/main/resources/ServiceComb/consumer/pom.mustache b/code-generator/src/main/resources/ServiceComb/consumer/pom.mustache
index 7d1333a..9a1e531 100755
--- a/code-generator/src/main/resources/ServiceComb/consumer/pom.mustache
+++ b/code-generator/src/main/resources/ServiceComb/consumer/pom.mustache
@@ -94,6 +94,33 @@
           <target>1.8</target>
         </configuration>
       </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>3.0.0</version>
+        <configuration>
+          <encoding>UTF-8</encoding>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-maven-plugin</artifactId>
+        <version>1.5.12.RELEASE</version>
+        <configuration>
+          <fork>true</fork>
+          <mainClass>{{mainClassPackage}}.Application</mainClass>
+          <outputDirectory>target/bin</outputDirectory>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>repackage</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>