views:

41

answers:

2

I'd like to generate liquibase's dbdoc as part of my maven site build, but I cannot figure out how to do this. My thoughts were to add maven-antrun-plugin to the reporting section of the pom, but I cannot have an node under plugin in the reporting section. Any ideas?

A: 

You can create your own reports plugin, more information here:

http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin

shipmaster
+1  A: 

This is not supported by the Maven LiquiBase Plugin so either create your own report plugin or use the dbDoc Ant Task and the Maven AntRun Plugin to generate the documentation under target/site/.

In the later case, bind the plugin on one of the phases of the Site Lifecycle (this will require some testing but I think that pre-site, site or post-site would be ok) and add an entry in the left menu in the site descriptor.

Pascal Thivent
Thank you. I tried this for all three site phases and the ant task won't run (no errors reported). I am successful in generating the dbDoc when I set the phase to process-resources however.
Duncan DeVore
@Duncan I suspect that you aren't running `mvn site` (`process-resources` is not part of the site lifecycle).
Pascal Thivent
true, my response was confusing. What I meant was that the dbDoc generates when i run mvn clean install and the phase is (process-resources). However when I change it to (pre-site, site or post-site) dbDoc is not generated when I run mvn site. Sorry about the confusion.
Duncan DeVore