• Added by [Kapil Garg], last edited by [Kapil Garg] on Mar 21, 2011  ([view change|../../../../../../../../../pages/diffpages.action?pageId=2687533&originalId=2687538])
    [|../../../../../../../../../display/KB/Getting+Error+while+running+creatplugin.bat#page-metadata-start]

C:\jogetSourceCode\jogetworkflow.git\wflow-plugin-archetype>create-plugin.bat  com.a
rtisol.plugin.test MyPlugin
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building wflow-plugin-archetype
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [archetype:create

Unknown macro:

Unknown macro: {execution}

]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: com.artisol.plugin.test
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: wfl
ow-plugin-archetype:2.0-SNAPSHOT
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.artisol.plugin.test
[INFO] Parameter: packageName, Value: com.artisol.plugin.test
[INFO] Parameter: package, Value: com.artisol.plugin.test
[INFO] Parameter: artifactId, Value: MyPlugin
[INFO] Parameter: basedir, Value: C:\jogetSourceCode\jogetworkflow.git\wflow-plugin-
archetype
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype
Embedded error: Unable to add module to the current project as it is not of packagin
g type 'pom'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Mar 21 02:44:39 CET 2011
[INFO] Final Memory: 11M/109M
[INFO] ------------------------------------------------------------------------
C:\jogetSourceCode\jogetworkflow.git\wflow-plugin-archetype>create-plugin.bat  com.a

rtisol.plugin.test MyPlugin

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] ------------------------------------------------------------------------

[INFO] Building wflow-plugin-archetype

[INFO]    task-segment: [archetype:create] (aggregator-style)

[INFO] ------------------------------------------------------------------------

[INFO] [archetype:create

Unknown macro:

]

[WARNING] This goal is deprecated. Please use mvn archetype:generate instead

[INFO] Defaulting package to group ID: com.artisol.plugin.test

[INFO] ----------------------------------------------------------------------------

[INFO] Using following parameters for creating project from Old (1.x) Archetype: wfl

ow-plugin-archetype:2.0-SNAPSHOT

[INFO] ----------------------------------------------------------------------------

[INFO] Parameter: groupId, Value: com.artisol.plugin.test

[INFO] Parameter: packageName, Value: com.artisol.plugin.test

[INFO] Parameter: package, Value: com.artisol.plugin.test

[INFO] Parameter: artifactId, Value: MyPlugin

[INFO] Parameter: basedir, Value: C:\jogetSourceCode\jogetworkflow.git\wflow-plugin-

archetype

[INFO] Parameter: version, Value: 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Error creating from archetype

Embedded error: Unable to add module to the current project as it is not of packagin

g type 'pom'

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2 seconds

[INFO] Finished at: Mon Mar 21 02:44:39 CET 2011

[INFO] Final Memory: 11M/109M

[INFO] ------------------------------------------------------------------------

When I use mvn:generate:archtype as below, I get following errror

C:\jogetSourceCode\jogetworkflow.git\wflow-plugin-archetype>mvn archtype:generate
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archtype'.
[INFO] artifact org.apache.maven.plugins:maven-archtype-plugin: checking for updates
 from central
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archtype-plugin' does not exist or
 no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Mar 21 03:05:46 CET 2011
C:\jogetSourceCode\jogetworkflow.git\wflow-plugin-archetype>mvn archtype:generate

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'archtype'.

[INFO] artifact org.apache.maven.plugins:maven-archtype-plugin: checking for updates

 from central

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] The plugin 'org.apache.maven.plugins:maven-archtype-plugin' does not exist or

 no valid version could be found

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1 second

[INFO] Finished at: Mon Mar 21 03:05:46 CET 2011

  • No labels

3 Comments

  1. Hey there,

    I have noticed that you have problem building wflow-app. You may want to set up your Joget development first by following Building from Source first. After then, you can proceed to Developing Plugins.

    Good luck!

    Hugo

  2. its all good, i got it fixed by using non-deprecated goal generate. Man the source4 code needs to be updated with latest non deprecated poms. Wondering why there are not many developers checking on this trunk?

    1. Hi Kapil,

      I am also facing the same issue while building the source, Could you please give the detail on what change did you make in the POM?

      Thanks,

      Vignesh