I had a problem with the Appfuse 2.0 tutorials to generate a Person POJO with
"mvn compile hibernate3:hbm2ddl"

[INFO] No goals needed for project - skipping
[INFO] Preparing hibernate3:hbm2ddl
[INFO] No goals needed for project - skipping
[WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid.
It w
ill be ignored for artifact resolution. Reason: Parse error reading POM.
Reason:
 TEXT must be immediately followed by END_TAG and not START_TAG (position:
START
_TAG seen ...<licenses>\n\t\t\t<license>... @12:13)
[WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid.
It w
ill be ignored for artifact resolution. Reason: Parse error reading POM.
Reason:
 TEXT must be immediately followed by END_TAG and not START_TAG (position:
START
_TAG seen ...<licenses>\n\t\t\t<license>... @12:13)
[INFO] [hibernate3:hbm2ddl]
[INFO] src/main/resources/hibernate.cfg.xml not found within the project.
Trying
 absolute path.
[INFO] No hibernate configuration file loaded.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] No hibernate.cfg.xml configuration provided. Annotated
classes/packages i
s only configurable via hibernate.cfg.xml
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Feb 01 20:24:04 SGT 2007
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------

D:\source\erp\erpfuse>


however when I run "mvn -e", it works well apparently, the person table is
created in MySQL db and the messages are positive :

[INFO] Installing
D:\source\erp\erpfuse\web\target\erpfuse-webapp-1.0-SNAPSHOT.w
ar to C:\Documents and
Settings\fan\.m2\repository\com\mycompany\erpfuse-webapp\
1.0-SNAPSHOT\erpfuse-webapp-1.0-SNAPSHOT.war
[INFO]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] AppFuse Modular Application ........................... SUCCESS
[1.891s]
[INFO] AppFuse Modular Application - Core .................... SUCCESS
[9.062s]
[INFO] AppFuse Modular Application - Web (Struts 2) .......... SUCCESS
[1:57.281
s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 8 seconds
[INFO] Finished at: Thu Feb 01 20:28:12 SGT 2007
[INFO] Final Memory: 40M/63M
[INFO]
------------------------------------------------------------------------

so my questions are :

1) What's wrong with the "mvn compile hibernate3:hbm2ddl" I run ?

2) What does "mvn -e" do ?
-- 
View this message in context: 
http://www.nabble.com/mvn-compile-hibernate3%3Ahbm2ddl-tf3154567s2369.html#a8747385
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to