1
0
-1

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

 

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi, I believe the version there depends on what version you already have built in your machine. If you have 5.0-SNAPSHOT then you can change the version accordingly.

      1. Roberto Larcher

        Thanks, I changed the wiki, given that the jwcommunit github master branch is pointing to 5.0-SNAPSHOT and not to 5.0.0.

      CommentAdd your comment...