This example shows how to deploy a Java Action which has external dependency. This example uses Maven as the dependency manager.
./mvnw clean install
wsk -i action create md5hasher target/maven-java.jar --main org.apache.openwhisk.example.maven.App
wsk -i action invoke md5hasher --result -p text openwhisk
Invoking the above action will return an JSON output which will have original plain text and MD5 hash of the same.
{
"md5": "803cd3a8fe96ceab1dc654dc6e41be5c",
"text": "openwhisk"
}