guopengfeiheze / happyfacescrud

Automatically exported from code.google.com/p/happyfacescrud
0 stars 1 forks source link

pom type packaging error on maven 3.0.4 #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the archetype.
2. Run mvn install in command prompt.
3. Run mvn archetype:generate -DarchetypeCatalog=local in command prompt.

What is the expected output? What do you see instead?
-It should generate the project successfully but I have:
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on 
project happyfaces-archetype: 
org.apache.maven.archetype.exception.InvalidPackaging: Unable to add module to 
the current project as it is not of packaging type 'pom'

What version of the product are you using? On what operating system?
Product version 1.0.0-beta. I've tried it on Windows 7, jdk7, maven3.0.4.

Also is the product tested on jboss7.1.1?

Original issue reported on code.google.com by czets...@gmail.com on 25 Mar 2013 at 2:09

GoogleCodeExporter commented 9 years ago
Hi.

Do not run "mvn archetype:generate -DarchetypeCatalog=local" in your archetype 
directory. Run it where you need your project to be created (probably in 
eclipse workspace). Sorry this was not clear in documentation I will add it. 
You need to be in archetype dir only when you do mvn install, which in effect 
puts happyfaces archetype to you local repo. This step wont be necessary in the 
future when I upload archetype to global repo.

About jboss, unfortunately its not tested, but already quite few people asked 
about jboss, so I will probably create another archetype for it. Right now 
happyfaces just creates startup application for spring/tomcat stack. But its 
not that hard to port it to jboss since its not a product per se its just some 
code to get programmer started quickly and effectively especially if he is 
facing a lot of crud pages. You still have full control over that code and can 
improve it however you like. I welcome any improvements if you think others 
also would benefit from it :)

Original comment by ignas.le...@gmail.com on 26 Mar 2013 at 12:35