~todd-deshane/openstack-manuals/working

« back to all changes in this revision

Viewing changes to doc/buildpdf/rc-maven-cloud-docs/pomforproject.xml

  • Committer: Anne Gentle
  • Date: 2011-04-04 17:54:52 UTC
  • Revision ID: anne@openstack.org-20110404175452-gtth3hfrniqhpp5o
Switching from Ant builds to Maven, still working out kinks but should be functional

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
<project xmlns="http://maven.apache.org/POM/4.0.0"
3
 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
 
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5
 
 
6
 
    <modelVersion>4.0.0</modelVersion>
7
 
 
8
 
    <groupId>com.rackspace.cloud.api</groupId>
9
 
    <artifactId>clouddocs-maven-plugin</artifactId>
10
 
 
11
 
    <name>Cloud API Docs Plugin</name>
12
 
 
13
 
    <version>1.0.2-SNAPSHOT</version>
14
 
    <packaging>maven-plugin</packaging>
15
 
 
16
 
    <description>
17
 
        Generates a XHTML and API documents.
18
 
    </description>
19
 
 
20
 
    <dependencies>
21
 
        <dependency>
22
 
            <groupId>com.agilejava.docbkx</groupId>
23
 
            <artifactId>docbkx-maven-plugin</artifactId>
24
 
            <version>2.0.11</version>
25
 
        </dependency>
26
 
 
27
 
        <dependency>
28
 
            <groupId>commons-io</groupId>
29
 
            <artifactId>commons-io</artifactId>
30
 
            <version>2.0</version>
31
 
        </dependency>
32
 
 
33
 
        <dependency>
34
 
            <groupId>net.sf.docbook</groupId>
35
 
            <artifactId>docbook-xsl</artifactId>
36
 
            <version>1.75.2</version>
37
 
            <type>zip</type>
38
 
            <classifier>ns-resources</classifier>
39
 
        </dependency>
40
 
 
41
 
        <dependency>
42
 
            <groupId>xerces</groupId>
43
 
            <artifactId>xercesImpl</artifactId>
44
 
            <version>2.8.0</version>
45
 
            <scope>runtime</scope>
46
 
        </dependency>
47
 
 
48
 
        <dependency>
49
 
            <groupId>xerces</groupId>
50
 
            <artifactId>xmlParserAPIs</artifactId>
51
 
            <version>2.6.2</version>
52
 
            <scope>runtime</scope>
53
 
        </dependency>
54
 
 
55
 
        <dependency>
56
 
            <groupId>org.apache.avalon.framework</groupId>
57
 
            <artifactId>avalon-framework-impl</artifactId>
58
 
            <version>4.3.1</version>
59
 
        </dependency>
60
 
 
61
 
        <dependency>
62
 
            <groupId>xalan</groupId>
63
 
            <artifactId>xalan</artifactId>
64
 
            <version>2.7.0</version>
65
 
        </dependency>
66
 
 
67
 
        <dependency>
68
 
            <groupId>org.apache.maven</groupId>
69
 
            <artifactId>maven-plugin-api</artifactId>
70
 
            <version>2.0</version>
71
 
        </dependency>
72
 
 
73
 
        <dependency>
74
 
            <groupId>com.agilejava.docbkx</groupId>
75
 
            <artifactId>docbkx-maven-base</artifactId>
76
 
            <version>2.0.11</version>
77
 
        </dependency>
78
 
 
79
 
        <dependency>
80
 
            <groupId>net.sf.xslthl</groupId>
81
 
            <artifactId>xslthl</artifactId>
82
 
            <version>2.0.1</version>
83
 
        </dependency>
84
 
 
85
 
        <dependency>
86
 
            <groupId>net.sf.docbook</groupId>
87
 
            <artifactId>docbook-xsl-saxon</artifactId>
88
 
            <version>1.0.0</version>
89
 
        </dependency>
90
 
 
91
 
        <dependency>
92
 
            <groupId>org.apache.xmlgraphics</groupId>
93
 
            <artifactId>fop</artifactId>
94
 
            <version>1.0</version>
95
 
        </dependency>
96
 
 
97
 
        <dependency>
98
 
            <groupId>org.apache.maven.shared</groupId>
99
 
            <artifactId>maven-plugin-testing-harness</artifactId>
100
 
            <version>1.0-beta-1</version>
101
 
            <scope>test</scope>
102
 
        </dependency>
103
 
    </dependencies>
104
 
 
105
 
    <scm>
106
 
        <connection>scm:git:ssh://git@repo-n01.cloudarch/rc-maven-cloud-docs.git</connection>
107
 
    </scm>
108
 
 
109
 
    <distributionManagement>
110
 
        <repository>
111
 
            <id>repos.research.rackspace.cloud.releases</id>
112
 
            
113
 
            <name>Rackspace Cloud Research Releases</name>
114
 
            <url>http://maven.research.rackspacecloud.com/content/repositories/releases/</url>
115
 
        </repository>
116
 
    </distributionManagement>
117
 
 
118
 
    <build>
119
 
        <resources>
120
 
            <resource>
121
 
                <directory>src/main/resources</directory>
122
 
            </resource>
123
 
 
124
 
            <resource>
125
 
                <directory>target/generated-resources</directory>
126
 
            </resource>
127
 
        </resources>
128
 
 
129
 
        <plugins>
130
 
            <plugin>
131
 
                <groupId>org.apache.maven.plugins</groupId>
132
 
                <artifactId>maven-dependency-plugin</artifactId>
133
 
 
134
 
                <executions>
135
 
                    <execution>
136
 
                        <id>copy</id>
137
 
 
138
 
                        <phase>generate-sources</phase>
139
 
 
140
 
                        <goals>
141
 
                            <goal>unpack</goal>
142
 
                        </goals>
143
 
 
144
 
                        <configuration>
145
 
                            <artifactItems>
146
 
                                <artifactItem>
147
 
                                    <groupId>net.sf.docbook</groupId>
148
 
                                    <artifactId>docbook-xsl</artifactId>
149
 
                                    <version>1.75.2</version>
150
 
                                    <type>zip</type>
151
 
                                    <classifier>ns-resources</classifier>
152
 
                                    <outputDirectory>target</outputDirectory>
153
 
                                    <includes>docbook/template/*</includes>
154
 
                                </artifactItem>
155
 
                            </artifactItems>
156
 
                        </configuration>
157
 
                    </execution>
158
 
                </executions>
159
 
            </plugin>
160
 
 
161
 
            <plugin>
162
 
                <groupId>org.codehaus.mojo</groupId>
163
 
                <artifactId>xml-maven-plugin</artifactId>
164
 
 
165
 
                <executions>
166
 
                    <execution>
167
 
                        <goals>
168
 
                            <goal>transform</goal>
169
 
                        </goals>
170
 
                    </execution>
171
 
                </executions>
172
 
 
173
 
                <configuration>
174
 
                    <transformationSets>
175
 
                        <transformationSet>
176
 
                            <dir>src/main/resources/cloud/fo/titlepage</dir>
177
 
                            <stylesheet>target/docbook/template/titlepage.xsl</stylesheet>
178
 
                            <outputDir>target/generated-resources/cloud/fo</outputDir>
179
 
                            <fileMappers>
180
 
                                <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
181
 
                                    <targetExtension>.xsl</targetExtension>
182
 
                                </fileMapper>
183
 
                            </fileMappers>
184
 
                        </transformationSet>
185
 
                    </transformationSets>
186
 
                </configuration>
187
 
            </plugin>
188
 
            <plugin>
189
 
                <groupId>com.agilejava.docbkx</groupId>
190
 
                <artifactId>docbkx-builder-maven-plugin</artifactId>
191
 
 
192
 
                <executions>
193
 
                    <execution>
194
 
                        <id>generate-xhtml</id>
195
 
 
196
 
                        <goals>
197
 
                            <goal>build</goal>
198
 
                        </goals>
199
 
 
200
 
                        <configuration>
201
 
                            <type>xhtml</type>
202
 
                            <superClassName>com.rackspace.cloud.api.docs.HTMLMojo</superClassName>
203
 
                            <excludedProperties>${excluded.properties},root.filename,base.dir</excludedProperties>
204
 
                        </configuration>
205
 
                    </execution>
206
 
 
207
 
                    <execution>
208
 
                        <id>generate-pdf</id>
209
 
 
210
 
                        <goals>
211
 
                            <goal>build</goal>
212
 
                        </goals>
213
 
 
214
 
                        <configuration>
215
 
                            <type>fo</type>
216
 
                            <superClassName>com.rackspace.cloud.api.docs.PDFMojo</superClassName>
217
 
                            <className>DocbkxPdfMojo</className>
218
 
                            <pluginSuffix>pdf</pluginSuffix>
219
 
                            <excludedProperties>${excluded.properties}</excludedProperties>
220
 
                        </configuration>
221
 
                    </execution>
222
 
                </executions>
223
 
 
224
 
                <configuration>
225
 
                    <packageName>com.agilejava.docbkx.maven</packageName>
226
 
                </configuration>
227
 
            </plugin>
228
 
 
229
 
            <plugin>
230
 
                <groupId>org.apache.maven.plugins</groupId>
231
 
                <artifactId>maven-compiler-plugin</artifactId>
232
 
                
233
 
                <configuration>
234
 
                    <source>1.6</source>
235
 
                    <target>1.6</target>
236
 
                </configuration>
237
 
            </plugin>
238
 
        </plugins>
239
 
    </build>
240
 
</project>