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

Generating Reports with Maven

We’ve built a project; now let’s generate some simple reports. One report that might be useful is an HTML page that displays the results of the unit tests. Did they succeed or fail? Which tests failed? You’ll also want JavaDoc for your code, and maybe annotated source to use during code reviews. All of these are generated when you run mvn site:

$ mvn site [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------- --- [INFO] Building Harnessing Hibernate: Chapter Twelve: Maven [INFO] task-segment: [site] [INFO] ------------------------------------------------------------------------- --- [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus .velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ************************************************************** [INFO] Starting Jakarta Velocity v1.4 [INFO] [site:site] Constructing Javadoc information... Standard Doclet version 1.6.0_02 Building tree for all the packages and classes... Generating ~/examples/ch12/target/site/apidocs\index.html... [INFO] Generate "Source Xref" report. [INFO] Generate "Continuous Integration" report. [INFO] Generate "Dependencies" report. [INFO] Generate "Issue Tracking" report. [INFO] Generate "Project License" report. ...

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