redhat-developer-demos / faas-tutorial

Java FaaS demos with OpenWhisk and OpenShift
Apache License 2.0
43 stars 29 forks source link

second mvn archetype build results in errors, but the following steps seem to work #4

Closed JimTyrrell closed 6 years ago

JimTyrrell commented 6 years ago

mvn archetype:generate -DarchetypeGroupId=org.apache.openwhisk.java -DarchetypeArtifactId=java-action-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=com.example -DartifactId=hello-web [INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building hello-openwhisk 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ hello-openwhisk >>> [INFO] [INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ hello-openwhisk <<< [INFO] [INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ hello-openwhisk --- [INFO] Generating project in Interactive mode [INFO] Archetype repository not defined. Using the one from [org.apache.openwhisk.java:java-action-archetype:1.0-SNAPSHOT] found in catalog local [INFO] Using property: groupId = com.example [INFO] Using property: artifactId = hello-web Define value for property 'version' 1.0-SNAPSHOT: : [INFO] Using property: package = com.example Confirm properties configuration: groupId: com.example artifactId: hello-web version: 1.0-SNAPSHOT package: com.example Y: : [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Old (1.x) Archetype: java-action-archetype:1.0-SNAPSHOT [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: basedir, Value: /Users/jimtyrrell/OpenWhisk/faas-java-tutorial/hello-openwhisk [INFO] Parameter: package, Value: com.example [INFO] Parameter: groupId, Value: com.example [INFO] Parameter: artifactId, Value: hello-web [INFO] Parameter: packageName, Value: com.example [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.696 s [INFO] Finished at: 2018-04-05T09:48:27-06:00 [INFO] Final Memory: 17M/314M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project hello-openwhisk: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

JimTyrrell commented 6 years ago

Should be fixed in PR 2.