1
0
-1

I am following "Guideline for developing a plugin " this link to create a new plugin. but I am getting error as shown below. Can someone explain what should I do? Also, when I run the command it prompts to enter something which I have shown in bold color below. I am not sure if I have given the right values which are in bold color below.

C:\Users\ManjeetKaur\joget_src\jw-community\wflow-plugin-archetype>create-plugin.bat org.joget.sample sample-plugins 7.0-SNAPSHOT
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.joget:wflow-plugin-archetype >------------------
[INFO] Building wflow-plugin-archetype 7.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.2.0:generate (default-cli) > generate-sources @ wflow-plugin-archetype >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.2.0:generate (default-cli) < generate-sources @ wflow-plugin-archetype <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.2.0:generate (default-cli) @ wflow-plugin-archetype ---
[INFO] Generating project in Interactive mode
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repository with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
[INFO] Using property: groupId = org.joget.sample
[INFO] Using property: artifactId = sample-plugins
Define value for property 'version' 1.0-SNAPSHOT: : 1.0.0
[INFO] Using property: package = org.joget.sample
Confirm properties configuration:
groupId: org.joget.sample
artifactId: sample-plugins
version: 1.0.0
package: org.joget.sample
Y: : y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: wflow-plugin-archetype:7.0-SNAPSHOT
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: basedir, Value: C:\Users\ManjeetKaur\joget_src\jw-community\wflow-plugin-archetype
[INFO] Parameter: package, Value: org.joget.sample
[INFO] Parameter: groupId, Value: org.joget.sample
[INFO] Parameter: artifactId, Value: sample-plugins
[INFO] Parameter: packageName, Value: org.joget.sample
[INFO] Parameter: version, Value: 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:24 min
[INFO] Finished at: 2021-03-31T08:09:57+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate (default-cli) on project wflow-plugin-archetype: 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

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi Manjeet,

      Please run the command "create-plugin.bat" in a new empty folder. If not, it will create redundant/conflicting files.

      You can check out completed plugin source code from Plugin Tutorials too to expedite the process of learning.

      Thanks.

      Hugo

      1. Manjeet

        It works. Thanks @Hugo

      CommentAdd your comment...