diff --git a/pdf/maven.xml b/pdf/maven.xml index 75288364..1aa10890 100644 --- a/pdf/maven.xml +++ b/pdf/maven.xml @@ -16,9 +16,6 @@ * limitations under the License. */ --> - - - - + diff --git a/pdf/plugin.jelly b/pdf/plugin.jelly index c8f8a2c6..0844b02d 100644 --- a/pdf/plugin.jelly +++ b/pdf/plugin.jelly @@ -16,7 +16,22 @@ * limitations under the License. */ --> - + + + + + + + + + + + + + @@ -167,7 +182,7 @@ internal_pdf_workingDir = [${internal_pdf_workingDir}] - + diff --git a/pdf/project.xml b/pdf/project.xml index 71e3ef49..bc3dac0e 100644 --- a/pdf/project.xml +++ b/pdf/project.xml @@ -119,4 +119,20 @@ http://avalon.apache.org/framework/ + + maven-changes-plugin + maven-changelog-plugin + maven-file-activity-plugin + maven-developer-activity-plugin + maven-tasklist-plugin + maven-javadoc-plugin + maven-jxr-plugin + maven-jdepend-plugin + maven-checkstyle-plugin + maven-junit-report-plugin + maven-pdf-plugin + maven-pmd-plugin + maven-simian-plugin + maven-faq-plugin + diff --git a/pdf/src/plugin-test/maven.xml b/pdf/src/plugin-test/maven.xml index c14ecc06..eac0a90e 100644 --- a/pdf/src/plugin-test/maven.xml +++ b/pdf/src/plugin-test/maven.xml @@ -41,7 +41,6 @@ - diff --git a/pdf/xdocs/changes.xml b/pdf/xdocs/changes.xml index 87c5bb99..c0d31cff 100644 --- a/pdf/xdocs/changes.xml +++ b/pdf/xdocs/changes.xml @@ -33,7 +33,8 @@ Cannot use SVG images. batik: java.lang.NoSuchMethodError. Can't insert the logo image described in the POM if its path begins with a slash (as it works for the xdoc plugin). Allow copy and paste from pdf to text editor. - Add support for external imaging libraries like jimi and jai to use PNG images in generated pdf files. + Allow the pdf plugin to be added as a project's report. + Add support for external imaging libraries like jimi and jai to use PNG images in generated pdf files. Use the ant task for the xsl transformation and remove xerces and xalan dependencies. People using java 5 will have to use this release with maven 1.1 or maven 1.0 with at the most the PDF plugin 2.2.X. diff --git a/pdf/xdocs/faq.fml b/pdf/xdocs/faq.fml index 5d720a8f..245f71fb 100644 --- a/pdf/xdocs/faq.fml +++ b/pdf/xdocs/faq.fml @@ -165,13 +165,4 @@ maven.jar.jaicodec=${maven.repo.local}/jai/jars/jai_codec-X.Y.Z.jar - - Technical questions - - Why isn't there a pdf report ? - -

Because reports are generated before the site copies resources like images and the order of reports depends of several parameters. We need that images and generated files are created before we launch the pdf creation. Thus it is not possible to create a pdf report because we can't call it at the end of the site generation process.

-
-
-
diff --git a/pdf/xdocs/goals.xml b/pdf/xdocs/goals.xml index cf9dd294..3f587982 100644 --- a/pdf/xdocs/goals.xml +++ b/pdf/xdocs/goals.xml @@ -31,32 +31,31 @@ fo - - This simply pre-requisites the fo:fo goal. - + This simply pre-requisites the fo:fo goal. fo:fo - - Generates an fo xml document from the navigation.xml - file supplied as part of the documentation. Please note that as - yet, no sanity check is done to make sure this file exists. - + Generates an fo xml document from the navigation.xml file supplied as part of the documentation. Please note that as yet, no sanity check is done to make sure this file exists. pdf - - This is the default goal of the plugin and simply pre-requisites - the pdf:pdf goal. - + This is the default goal of the plugin and simply pre-requisites the pdf:pdf goal. pdf:pdf - - Generates a PDF document containing all project documentation. - The PDF is generated from the .fo file generated in the fo:fo - goal. - + Generates a PDF document containing all project documentation. The PDF is generated from the .fo file generated in the fo:fo goal. + + + maven-pdf-plugin:register + Register the pdf generation after the site goal. + + + maven-pdf-plugin:deregister + Deregister the pdf generation. + + + maven-pdf-plugin:report + Called by xdoc to execute the pdf goal. diff --git a/pdf/xdocs/index.xml b/pdf/xdocs/index.xml index cd8c8691..8399b68e 100644 --- a/pdf/xdocs/index.xml +++ b/pdf/xdocs/index.xml @@ -26,7 +26,19 @@

This plug-in allows you to generate a PDF version of your project's documentation.

-

Take a look at goals, the properties and the FAQ to see how to use it.

+

To enable PDF generation add the following to your maven.xml

+ + + +]]> +

You can also add the PDF generation to your project.xml like this :

+ + maven-pdf-plugin + +]]> +

Take a look at goals, properties and the FAQ to see how to customize it.