Commit 56e8b473 authored by yhy's avatar yhy
Browse files

修复插件依赖,及使用环境变量传递jvm参数和java参数

parent 5aeabbc5
...@@ -130,8 +130,15 @@ ...@@ -130,8 +130,15 @@
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.eclipse.jkube</groupId> <groupId>com.google.cloud.tools</groupId>
<artifactId>kubernetes-maven-plugin</artifactId> <artifactId>jib-maven-plugin</artifactId>
<configuration>
<container>
<entrypoint>
sh,-c,java $JVM_OPTS -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file ) $JAVA_ARGS
</entrypoint>
</container>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -135,8 +135,15 @@ ...@@ -135,8 +135,15 @@
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.eclipse.jkube</groupId> <groupId>com.google.cloud.tools</groupId>
<artifactId>kubernetes-maven-plugin</artifactId> <artifactId>jib-maven-plugin</artifactId>
<configuration>
<container>
<entrypoint>
sh,-c,java $JVM_OPTS -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file ) $JAVA_ARGS
</entrypoint>
</container>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -149,6 +149,13 @@ ...@@ -149,6 +149,13 @@
<plugin> <plugin>
<groupId>com.google.cloud.tools</groupId> <groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId> <artifactId>jib-maven-plugin</artifactId>
<configuration>
<container>
<entrypoint>
sh,-c,java $JVM_OPTS -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file ) $JAVA_ARGS
</entrypoint>
</container>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment