Hi

When trying to create a new plugin I get the following error.

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] : org.apache.maven.archetype.old.ArchetypeTemplateProcessingException: Unable to add module to the current project as it is not of packaging type 'pom'
Unable to add module to the current project as it is not of packaging type 'pom'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE

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

[INFO] : org.apache.maven.archetype.old.ArchetypeTemplateProcessingException: Unable to add module to the current project as it is not of packaging type 'pom'

Unable to add module to the current project as it is not of packaging type 'pom'

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

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

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

I have tried with maven 2.2 and 3 but its the same thing.

Any help would be appreciated.

  • No labels

2 Comments

  1. Ok I fixed this by doing the obvious:

    I changed the packaging type of the POM

    <packaging>pom</packaging>

    It might be a good idea to change it on the repository unless theres a good reason why it was set to jar.

  2. AH

    The same issue is occurring in v4.