You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/06/25 23:08:57 UTC

svn commit: r788512 - in /maven/plugins/trunk/maven-pdf-plugin: ./ src/it/ src/it/fop-basic/ src/it/fop-basic/src/ src/it/fop-basic/src/site/ src/it/fop-basic/src/site/apt/

Author: bentmann
Date: Thu Jun 25 21:08:54 2009
New Revision: 788512

URL: http://svn.apache.org/viewvc?rev=788512&view=rev
Log:
o Added basic IT to smoke test against different Maven versions

Added:
    maven/plugins/trunk/maven-pdf-plugin/src/it/
    maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/
    maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/pom.xml   (with props)
    maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/
    maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/
    maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/
    maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/index.apt   (with props)
    maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/usage.apt   (with props)
    maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/site.xml   (with props)
    maven/plugins/trunk/maven-pdf-plugin/src/it/settings.xml   (with props)
Modified:
    maven/plugins/trunk/maven-pdf-plugin/pom.xml

Modified: maven/plugins/trunk/maven-pdf-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/pom.xml?rev=788512&r1=788511&r2=788512&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-pdf-plugin/pom.xml Thu Jun 25 21:08:54 2009
@@ -374,5 +374,40 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>run-its</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-invoker-plugin</artifactId>
+            <version>1.3</version>
+            <configuration>
+              <debug>true</debug>
+              <projectsDirectory>src/it</projectsDirectory>
+              <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+              <pomIncludes>
+                <pomInclude>*/pom.xml</pomInclude>
+              </pomIncludes>
+              <postBuildHookScript>verify</postBuildHookScript>
+              <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+              <settingsFile>src/it/settings.xml</settingsFile>
+              <goals>
+                <goal>clean</goal>
+                <goal>${project.groupId}:${project.artifactId}:${project.version}:pdf</goal>
+              </goals>
+            </configuration>
+            <executions>
+              <execution>
+                <id>integration-test</id>
+                <goals>
+                  <goal>install</goal>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>

Added: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/pom.xml?rev=788512&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/pom.xml (added)
+++ maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/pom.xml Thu Jun 25 21:08:54 2009
@@ -0,0 +1,54 @@
+<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.pdf</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>PDF Test</name>
+  <description>
+    Tests a simple PDF generation.
+  </description>
+
+  <organization>
+    <name>The Apache Software Foundation</name>
+    <url>http://www.apache.org/</url>
+  </organization>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-clean-plugin</artifactId>
+        <version>2.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-pdf-plugin</artifactId>
+        <version>@project.version@</version>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/index.apt?rev=788512&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/index.apt (added)
+++ maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/index.apt Thu Jun 25 21:08:54 2009
@@ -0,0 +1,46 @@
+ ------
+ Maven PDF Plugin
+ ------
+ Lukas Theussl
+ ------
+ 2009-05-31
+ ------
+
+~~ 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/doxia/references/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-mojo.html}pdf:pdf}} Generates a PDF document containing
+  all project documentation.
+
+* Usage
+
+  General instructions on how to use the PDF Plugin can be found on the {{{./usage.html}usage page}}. Some more
+  specific use cases are described in the examples given below. Last but not least, users occasionally contribute
+  additional examples, tips or errata to the
+  {{{http://docs.codehaus.org/display/MAVENUSER/PDF+Plugin}plugin's wiki page}}.

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/index.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/index.apt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/usage.apt?rev=788512&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/usage.apt (added)
+++ maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/usage.apt Thu Jun 25 21:08:54 2009
@@ -0,0 +1,53 @@
+ ------
+ Usage
+ ------
+ Lukas Theussl
+ ------
+ 2009-06-22
+ ------
+
+~~ 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/doxia/references/apt-format.html
+
+Using The PDF Plugin
+
+  The Maven PDF Plugin allows you generate a PDF document of your documentation.
+
+* From The Command-line
+
+  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:
+
++-----
+  mvn pdf:pdf
++-----
+
+  where the first <<<pdf>>> refers to the plugin's alias, and the second
+  <<<pdf>>> refers to a plugin goal.
+
+  By default, the pdf will be generated in <<<target/pdf/>>> directory.
+
+  <<Note 1>>: By default, the PDF plugin generates a PDF document which aggregates all your site documents.
+  If you want to generate each site document individually, you need to add <<<-Daggregate=false>>> in the comand line.
+
+  <<Note 2>>: By default, the PDF plugin uses the {{{http://xmlgraphics.apache.org/fop/}FOP}} implementation.
+  The plugin also supports the {{{http://www.lowagie.com/iText/}iText}} implementation, you just need to add
+  <<<-Dimplementation=itext>>> in the comand line.

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/usage.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/apt/usage.apt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/site.xml?rev=788512&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/site.xml (added)
+++ maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/site.xml Thu Jun 25 21:08:54 2009
@@ -0,0 +1,29 @@
+<?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>
+  <body>
+    <menu name="Overview">
+      <item name="Introduction" href="index.html"/>
+      <item name="Usage" href="usage.html"/>
+    </menu>
+  </body>
+</project>

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/fop-basic/src/site/site.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-pdf-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/it/settings.xml?rev=788512&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/it/settings.xml (added)
+++ maven/plugins/trunk/maven-pdf-plugin/src/it/settings.xml Thu Jun 25 21:08:54 2009
@@ -0,0 +1,55 @@
+<?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.
+-->
+
+<settings>
+  <profiles>
+    <profile>
+      <id>it-repo</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <repositories>
+        <repository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+</settings>

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/settings.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-pdf-plugin/src/it/settings.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision