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 <bin...@huawei.com> AuthorDate: Thu May 30 21:06:11 2019 +0800 Support generating fat jar for consumer service Signed-off-by: MabinGo <bin...@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>