ddragosd commented on a change in pull request #97: Added maven archetype for 
Java Action
URL: 
https://github.com/apache/incubator-openwhisk-devtools/pull/97#discussion_r170398377
 
 

 ##########
 File path: java-action-archetype/README.md
 ##########
 @@ -0,0 +1,39 @@
+# Maven Archetype for Java Action
+
+This archetype helps to generate the Java Action template project.
+
+## Pre-requisite
+
+The following softwares are required to build and deploy a Java Action to 
OpenWhisk:
+
+* (Maven v3.3.x)[https://maven.apache.org] or above
+* Java 8 or above
+
+[WSK 
CLI](https://github.com/apache/incubator-openwhisk/blob/master/docs/cli.md) is 
configured 
+
+## Generate project 
+
+```sh
+mvn archetype:generate \
+  -DarchetypeGroupId=org.apache.openwhisk.java \
+  -DarchetypeArtifactId=java-action-archetype \
+  -DarchetypeVersion=1.0-SNAPSHOT \
+  -DgroupId=com.example \
+  -DartifactId=demo-function
+```
+
+## Deploying function to OpenWhisk
+
+The following step shows how to deploy the function to OpenWhisk
+
+```sh
+cd demo-function
+mvn clean install
+wsk action create demo target/demo-function.jar 
 
 Review comment:
   I think we missed the `--main` here ?
   ```
   $ wsk action update demo target/demo-function.jar --main 
com.example.FunctionApp
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to