plugin template creation via archetype not working
Confluence User - 15 Dec, 2017
Hi,
I'm following this tutorial: How to develop a Download PDF Datalist Action
When I create the plugin template using the maven archtype:
../jw-community/5.0.0/wflow-plugin-archetype/create-plugin.sh org.joget.tutorial myplugin 5.0.0
I get the following maven output:
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO] [INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [WARNING] Archetype not found in any catalog. Falling back to central repository. [WARNING] Add a repsoitory with id 'archetype' in your settings.xml if archetype's repository is elsewhere. [WARNING] The POM for org.joget:wflow-plugin-archetype:jar:5.0.0 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.216 s [INFO] Finished at: 2017-12-14T18:27:29+01:00 [INFO] Final Memory: 18M/195M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.joget:wflow-plugin-archetype:5.0.0) -> [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
Instead, if I replace 5.0.0 with 5.0-SNAPSHOT everything works fine:
../jw-community/5.0.0/wflow-plugin-archetype/create-plugin.sh org.joget.tutorial myplugin 5.0-SNAPSHOT
Should be the documentation corrected or am I missing something
build;plugins;maven