From b6bcb9cb01960324144ba393388268476d664ebc Mon Sep 17 00:00:00 2001 From: David Delabassee Date: Tue, 29 Aug 2017 17:59:53 +0200 Subject: [PATCH] Set runtime to 'java' to have the pom.xml created (#217) When the runtime is ['assumed'](https://github.com/fnproject/fn/blob/11b5c4ce673e1524731f064de6ec6300d5b2c49a/cli/init.go#L182-L188) (i.e. not explicitly set to 'java'), the [pom.xml isn't created(https://github.com/fnproject/fn/blob/85ae711447b593b4c5be1247d2090b058fc64011/cli/langs/java.go#L38-L45) and [init fail](https://github.com/fnproject/fn/blob/85ae711447b593b4c5be1247d2090b058fc64011/cli/langs/java.go#L99-L101). --- examples/tutorial/hello/java/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tutorial/hello/java/README.md b/examples/tutorial/hello/java/README.md index ba9eb2048..8373fc01b 100644 --- a/examples/tutorial/hello/java/README.md +++ b/examples/tutorial/hello/java/README.md @@ -5,7 +5,7 @@ This example will show you how to test and deploy Java code to Oracle Functions. ```sh # Initialize your function creating a func.yaml file -fn init /hello-java +fn init /hello-java --runtime java # Test your function. This will run inside a container exactly how it will on the server fn run