Reputation: 766
I am beginner to Maven , i am using it in Net-bean while creating first project i got following error
Archetype defined by properties
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 5.128s
Finished at: Wed Sep 11 22:45:58 IST 2013
Final Memory: 14M/133M
------------------------------------------------------------------------
**Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: null: MojoFailureException: NullPointerException -> [Help 1]**
when using command-line maven i can create project but only in netbean i am having problem.
Upvotes: 3
Views: 2063
Reputation: 344
I just found the answer to this myself, after struggling all day. Here's what you do to find more about the problem cause:
In my case, the extra logging told me:
org.apache.maven.archetype.exception.UnknownArchetype java.util.zip.ZipException: error in opening zip file.
Which meant it couldn't read the jar file (as Windows programs seem to treat jars like zip folders). So the fix was simple:
NetBeans should then run to completion and create the project for you. The default storage location for windows users is C:\Users\\.
Hope this helps.
Upvotes: 2