O'Reilly logo

Harnessing Hibernate by James Elliott, Ryan Fowler, Timothy M. O'Brien

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building, Testing, and Running a Project

Assuming that you’ve downloaded the examples from this book’s site, you should change directories into the ch12 example, and run the mvn test. You’ll see results like Example 12-2.

Example 12-2. Telling Maven to test our project

$ mvn test
[INFO] Scanning for projects... 1
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Harnessing Hibernate: Chapter Twelve: Maven
[INFO]    task-segment: [test]
[INFO] -------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile] 2
[INFO] Compiling 9 source files to ~\examples\ch12\target\classes
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocati
on.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hibernate3:hbm2ddl {execution: generate-ddl}] 3 [INFO] Configuration XML file loaded: ~/examples/ch12/src/main/resources/hibernate.cfg.xml 20:16:05,580 INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.2.0.GA 20:16:05,595 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required