如何在OpenShift3中通知用于S2I构build的Maven / JVM选项

OpenShift3允许使用“S2I – 源到图像”的概念从Github存储库构build容器。

例如:

oc new-app codecentric/springboot-maven3-centos~https://github.com/cbelleza/spring-boot-samples.git --context-dir=spring-boot-basewebapp 

有什么方法可以告诉Maven在这个build筑中应该执行什么目标?

如何设置我的应用程序需要启动的JVM参数,如-DXbootclasspath :, -Dfile.encoding等?

这取决于您使用的具体S2I构build器是如何实现的。 您需要find该S2I构build器的提供者的代码和文档。

似乎你可以find它的文件在:

他们的回购是在: