Author: ltheussl Date: Tue Sep 18 13:07:20 2007 New Revision: 577036 URL: http://svn.apache.org/viewvc?rev=577036&view=rev Log: Add first test case
Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/pdf/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/pdf/PdfMojoTest.java (with props) maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml (with props) maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/index.apt (with props) maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/limitations.apt (with props) maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ref/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ref/links.apt (with props) maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/pdf.xml (with props) maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/site.xml (with props) maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/xdoc/ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/xdoc/usage.xml (with props) Modified: maven/sandbox/trunk/plugins/maven-pdf-plugin/pom.xml maven/sandbox/trunk/plugins/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/renderer/DefaultPdfRenderer.java Modified: maven/sandbox/trunk/plugins/maven-pdf-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/pom.xml?rev=577036&r1=577035&r2=577036&view=diff ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/pom.xml (original) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/pom.xml Tue Sep 18 13:07:20 2007 @@ -8,7 +8,6 @@ </parent> <modelVersion>4.0.0</modelVersion> - <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pdf-plugin</artifactId> <packaging>maven-plugin</packaging> <name>Maven PDF Plugin</name> @@ -52,6 +51,16 @@ <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-doc-renderer</artifactId> <version>1.0-alpha-9</version> + <exclusions> + <exclusion> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-component-api</artifactId> + </exclusion> + <exclusion> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-container-default</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> <groupId>org.apache.maven.doxia</groupId> @@ -60,9 +69,9 @@ </dependency> <!-- test dependencies --> <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> + <groupId>org.apache.maven.shared</groupId> + <artifactId>maven-plugin-testing-harness</artifactId> + <version>1.1</version> <scope>test</scope> </dependency> </dependencies> Modified: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/renderer/DefaultPdfRenderer.java URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/renderer/DefaultPdfRenderer.java?rev=577036&r1=577035&r2=577036&view=diff ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/renderer/DefaultPdfRenderer.java (original) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/renderer/DefaultPdfRenderer.java Tue Sep 18 13:07:20 2007 @@ -50,7 +50,6 @@ * * @author ltheussl * @version $Id$ - * @plexus.component role="org.apache.maven.plugins.pdf.renderer.PdfRenderer" */ public class DefaultPdfRenderer implements PdfRenderer @@ -163,7 +162,7 @@ render( baseDirectory, outputDirectory ); return; } - + DocumentModel documentModel; try { Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/pdf/PdfMojoTest.java URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/pdf/PdfMojoTest.java?rev=577036&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/pdf/PdfMojoTest.java (added) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/pdf/PdfMojoTest.java Tue Sep 18 13:07:20 2007 @@ -0,0 +1,68 @@ +package org.apache.maven.plugins.pdf; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.apache.maven.plugin.testing.AbstractMojoTestCase; + +import java.io.File; + +/** + * @author ltheussl + * @version $Id$ + */ +public class PdfMojoTest + extends AbstractMojoTestCase +{ + /** [EMAIL PROTECTED] */ + protected void setUp() throws Exception + { + // required for mojo lookups to work + super.setUp(); + } + + /** + * Tests the basic functioning of the pdf generation. + * + * @throws Exception if any. + */ + public void testPdfMojo() throws Exception + { + File testPom = new File( getBasedir(), "/target/test-classes/unit/pdf/pom.xml" ); + + assertTrue( "testPom does not exist!", testPom.exists() ); + + PdfMojo mojo = (PdfMojo) lookupMojo( "pdf", testPom ); + + assertNotNull( "pdf mojo not found!", mojo ); + + File pdfFile = new File( getBasedir(), "/target/test-output/pdf/maven-pdf-plugin-doc.pdf" ); + + if ( pdfFile.exists() ) + { + pdfFile.delete(); + } + + mojo.execute(); + + assertTrue( "Pdf file not created!", pdfFile.exists() ); + + assertTrue( "Pdf file has no content!", pdfFile.length() > 0 ); + } +} \ No newline at end of file Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/pdf/PdfMojoTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugin/pdf/PdfMojoTest.java ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml?rev=577036&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml (added) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml Tue Sep 18 13:07:20 2007 @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pdf-plugin</artifactId> + <configuration> + <docDescriptor>${basedir}/target/test-classes/unit/pdf/src/site/pdf.xml</docDescriptor> + <siteDirectory>${basedir}/target/test-classes/unit/pdf/src/site/</siteDirectory> + <outputDirectory>${basedir}/target/test-output/pdf</outputDirectory> + </configuration> + </plugin> + </plugins> + </build> +</project> Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/index.apt URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/index.apt?rev=577036&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/index.apt (added) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/index.apt Tue Sep 18 13:07:20 2007 @@ -0,0 +1,45 @@ + ------ + Maven PDF Plugin + ------ + Lukas Theussl + ------ + 12 September 2007 + ------ + +~~ Licensed to the Apache Software Foundation (ASF) under one +~~ or more contributor license agreements. See the NOTICE file +~~ distributed with this work for additional information +~~ regarding copyright ownership. The ASF licenses this file +~~ to you under the Apache License, Version 2.0 (the +~~ "License"); you may not use this file except in compliance +~~ with the License. You may obtain a copy of the License at +~~ +~~ http://www.apache.org/licenses/LICENSE-2.0 +~~ +~~ Unless required by applicable law or agreed to in writing, +~~ software distributed under the License is distributed on an +~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +~~ KIND, either express or implied. See the License for the +~~ specific language governing permissions and limitations +~~ under the License. + +~~ NOTE: For help with the syntax of this file, see: +~~ http://maven.apache.org/guides/mini/guide-apt-format.html + +Overview + + This plug-in allows you to generate a PDF version of your project's documentation. + +* Goals Overview + + The PDF Plugin only has one goal. + + * pdf:pdf Generates a PDF document containing all project documentation. + +* Usage + + Instructions on the basic usage of the PDF Plugin can be found {{{./usage.html}here}}. + +* Links + + Some useful links can be found {{{./ref/links.html}here}}. \ No newline at end of file Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/index.apt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/index.apt ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/limitations.apt URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/limitations.apt?rev=577036&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/limitations.apt (added) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/limitations.apt Tue Sep 18 13:07:20 2007 @@ -0,0 +1,47 @@ + ------ + Known Bugs and Limitations + ------ + Lukas Theussl + ------ + 14 September 2007 + ------ + +~~ Licensed to the Apache Software Foundation (ASF) under one +~~ or more contributor license agreements. See the NOTICE file +~~ distributed with this work for additional information +~~ regarding copyright ownership. The ASF licenses this file +~~ to you under the Apache License, Version 2.0 (the +~~ "License"); you may not use this file except in compliance +~~ with the License. You may obtain a copy of the License at +~~ +~~ http://www.apache.org/licenses/LICENSE-2.0 +~~ +~~ Unless required by applicable law or agreed to in writing, +~~ software distributed under the License is distributed on an +~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +~~ KIND, either express or implied. See the License for the +~~ specific language governing permissions and limitations +~~ under the License. + +~~ NOTE: For help with the syntax of this file, see: +~~ http://maven.apache.org/guides/mini/guide-apt-format.html + +Known Bugs and Limitations + + Just a brief selection... + +* Current limitations + + * FML parsing doesn't work due to {{{http://jira.codehaus.org/browse/DOXIA-148}DOXIA-148}}. + + * Xdoc tables don't work due to a bug in the xdoc parser. + + * Links to other source documents have to start with "./" or "../". + +* Missing features + + * Only .png graphics format is supported (currently a FO sink limitation) + +* Known bugs + + None. Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/limitations.apt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/limitations.apt ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ref/links.apt URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ref/links.apt?rev=577036&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ref/links.apt (added) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ref/links.apt Tue Sep 18 13:07:20 2007 @@ -0,0 +1,39 @@ + ------ + Links + ------ + Lukas Theussl + ------ + 14 September 2007 + ------ + +~~ Licensed to the Apache Software Foundation (ASF) under one +~~ or more contributor license agreements. See the NOTICE file +~~ distributed with this work for additional information +~~ regarding copyright ownership. The ASF licenses this file +~~ to you under the Apache License, Version 2.0 (the +~~ "License"); you may not use this file except in compliance +~~ with the License. You may obtain a copy of the License at +~~ +~~ http://www.apache.org/licenses/LICENSE-2.0 +~~ +~~ Unless required by applicable law or agreed to in writing, +~~ software distributed under the License is distributed on an +~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +~~ KIND, either express or implied. See the License for the +~~ specific language governing permissions and limitations +~~ under the License. + +~~ NOTE: For help with the syntax of this file, see: +~~ http://maven.apache.org/guides/mini/guide-apt-format.html + +Useful links + + Just a brief selection... + +* Internal links + + * Link back to to {{{../index.html}index}}. + +Another chapter + + ... with nothing in it. \ No newline at end of file Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ref/links.apt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/apt/ref/links.apt ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/pdf.xml URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/pdf.xml?rev=577036&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/pdf.xml (added) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/pdf.xml Tue Sep 18 13:07:20 2007 @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + --> + +<document outputName="maven-pdf-plugin-doc"> + + <meta> + <title>Maven PDF Plugin</title> + <author>The Apache Maven Project</author> + </meta> + + <toc name="Table of Contents"> + <item name="Introduction" ref="index.apt"/> + <item name="Usage" ref="usage.apt"/> + <item name="Limitations" ref="limitations.apt"/> + <item name="Links" ref="ref/links.apt"/> + </toc> + +</document> Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/pdf.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/pdf.xml ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/site.xml URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/site.xml?rev=577036&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/site.xml (added) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/site.xml Tue Sep 18 13:07:20 2007 @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project name="Pdf Mojo Test"> + + <bannerLeft> + <name>Pdf Mojo Test</name> + <src>http://maven.apache.org/images/apache-maven-project.png</src> + <href>http://maven.apache.org/</href> + </bannerLeft> + + <bannerRight> + <src>http://maven.apache.org/images/maven-small.gif</src> + </bannerRight> + + <body> + + <menu name="Overview"> + <item name="Introduction" href="index.html"/> + <item name="Goals" href="goals.html"/> + <item name="Usage" href="usage.html"/> + <item name="Limitations" href="limitations.html"/> + </menu> + + </body> +</project> Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/site.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/site.xml ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Added: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/xdoc/usage.xml URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/xdoc/usage.xml?rev=577036&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/xdoc/usage.xml (added) +++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/xdoc/usage.xml Tue Sep 18 13:07:20 2007 @@ -0,0 +1,82 @@ +<?xml version="1.0"?> + +<!-- +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + --> + +<document> + + <properties> + <title>Usage - Test</title> + <author email="ltheussl_AT_apache_DOT_org">Lukas Theussl</author> + </properties> + + <body> + + <section name="Using the PDF plugin"> + + <p> + The Maven PDF Plugin allows you generate a PDF document of your documentation. + </p> + + <subsection name="Using the PDF plugin from the command-line"> + <p> + The PDF plugin can be called to execute from the command-line without any + additional configurations. Like the other plugins, to run the PDF plugin, + you use: + </p> + <source>mvn pdf:pdf</source> + <p> + where the first <tt>pdf</tt> refers to the plugin's alias, and the second + <tt>pdf</tt> refers to a plugin goal. + </p> + </subsection> + + <subsection name="Running the PDF plugin automatically during a build"> + <p> + The PDF plugin can be put into a project's pom.xml so that it gets executed + everytime the project is built. Below is a sample pom.xml for running the + PDF plugin in the <tt>site</tt> phase everytime the project is built: + </p> + <source><![CDATA[<project> + [...] + <build> + <plugins> + <plugin> + <artifactId>maven-pdf-plugin</artifactId> + <executions> + <execution> + <id>site-pdf</id> + <phase>site</phase> + <goals> + <goal>pdf</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + [...] +</project>]]></source> + </subsection> + + </section> + + </body> + +</document> Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/xdoc/usage.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/resources/unit/pdf/src/site/xdoc/usage.xml ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision"