source: trunk/docx4j/pom.xml @ 1720

Revision 1720, 19.0 KB checked in by jharrop, 2 months ago (diff)

<include>docx4j.properties</include>
<include>XhtmlNamespaceHandler?.css</include>
<include>xhtmlrenderer.conf</include>

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<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/maven-v4_0_0.xsd">
3        <modelVersion>4.0.0</modelVersion>
4         
5  <parent>
6    <groupId>org.sonatype.oss</groupId>
7    <artifactId>oss-parent</artifactId>
8    <version>7</version>
9  </parent>     
10        <groupId>org.docx4j</groupId>
11        <artifactId>docx4j</artifactId>
12        <version>2.8.0-SNAPSHOT</version>
13        <packaging>jar</packaging>
14        <name>docx4j</name>
15        <description>
16                docx4j is a library which helps you to work with the Office Open
17                XML file format as used in docx
18                documents, pptx presentations, and xlsx spreadsheets.
19        </description>
20        <url>http://www.docx4java.org/</url>
21        <licenses>
22          <license>
23            <name>Apache 2</name>
24            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
25            <distribution>repo</distribution>
26            <comments>A business-friendly OSS license</comments>
27          </license>
28        </licenses>
29        <!-- <prerequisites /> -->
30        <scm>
31            <connection>scm:svn:http://www.docx4java.org/svn/docx4j/trunk/docx4j</connection>
32            <developerConnection>scm:svn:http://www.docx4java.org/svn/docx4j/trunk/docx4j</developerConnection>
33            <url>http://www.docx4java.org/svn/docx4j/trunk/docx4j</url>
34    </scm>
35        <inceptionYear>2007</inceptionYear>
36        <developers>
37                <developer>
38                        <id>jharrop</id>
39                        <name>Jason Harrop</name>
40                        <email>jason@plutext.org</email>
41                        <organization>Plutext</organization>
42                        <roles>
43                                <role>Developer</role>
44                        </roles>
45                        <timezone>+10</timezone>
46                </developer>
47        </developers>
48        <contributors>
49                <contributor>
50                        <name>Adam Schmideg</name>
51                </contributor>
52                <contributor>
53                        <name>Albert Aymerich</name>
54                </contributor>
55                <contributor>
56                        <name>alberto</name>
57                </contributor>
58                <contributor>
59                        <name>amdonov</name>
60                </contributor>
61                <contributor>
62                        <name>Antoine</name>
63                </contributor>
64                <contributor>
65                        <name>azeloro</name>
66                </contributor>
67                <contributor>
68                        <name>Dave Brown</name>
69                </contributor>
70                <contributor>
71                        <name>Holger Schlegel</name>
72                </contributor>
73                <contributor>
74                        <name>Jojada Tirtowidjojo</name>
75                </contributor>
76                <contributor>
77                        <name>Leigh</name>
78                </contributor>
79                <contributor>
80                        <name>Manimala Kumar</name>
81                </contributor>
82                <contributor>
83                        <name>Marcel</name>
84                </contributor>
85                <contributor>
86                        <name>Patrick Linskey</name>
87                </contributor>
88                <contributor>
89                        <name>ppa_waw</name>
90                </contributor>
91                <contributor>
92                        <name>Richard</name>
93                </contributor>
94                <contributor>
95                        <name>Serge Grachov</name>
96                </contributor>
97                <contributor>
98                        <name>Tinne</name>
99                </contributor>
100                <contributor>
101                        <name>y.rolland</name>
102                </contributor>
103        </contributors>
104        <build>
105                <sourceDirectory>src/main/java</sourceDirectory>
106                <testSourceDirectory>src/test/java</testSourceDirectory>
107                <outputDirectory>bin</outputDirectory>
108                <testOutputDirectory>bin</testOutputDirectory>
109        <plugins>
110        <!-- 
111      <plugin>
112        <groupId>org.apache.maven.plugins</groupId>
113        <artifactId>maven-gpg-plugin</artifactId>
114        <executions>
115          <execution>
116            <id>sign-artifacts</id>
117            <phase>verify</phase>
118            <goals>
119              <goal>sign</goal>
120            </goals>
121          </execution>
122        </executions>
123      </plugin>
124      -->
125                <plugin>
126                        <groupId>org.codehaus.mojo</groupId>
127                        <artifactId>build-helper-maven-plugin</artifactId>
128                        <version>1.3</version>
129                        <executions>
130                                <execution>
131                                        <id>add-source</id>
132                                        <phase>generate-sources</phase>
133                                        <goals>
134                                                <goal>add-source</goal>
135                                        </goals>
136                                        <configuration>
137                                                <sources>
138                                                        <source>src/diffx</source>
139                                                        <source>src/xslfo</source>
140                                                        <source>src/pptx4j/java</source>
141                                                        <source>src/svg</source>
142                                                        <source>src/xlsx4j/java</source>
143                                                        <source>src/glox4j/java</source>
144                                                        <!--source>src/sun</source-->
145                                                </sources>
146                                        </configuration>
147                                </execution>
148                        </executions>
149                </plugin>
150                <plugin>
151                        <groupId>org.apache.maven.plugins</groupId>
152                        <artifactId>maven-compiler-plugin</artifactId>
153                        <version>2.3.2</version>
154                        <configuration>
155                                <!--
156                                        The objective is to generate a jar which is compatible with Java 1.5,
157                                        whilst at the same time allowing @Override annotations in the source
158                                        code on methods which merely implement an interface
159                                        (Java 6 allows this, but 1.5 gives an error).
160                                       
161                                        When I played around with this, I found that both maven and ant would
162                                        happily compile to target 1.5 with the pesky @Override annotations
163                                        present (irrespective of whether source was set to 1.5 or 1.6).
164                                                                               
165                                        You are not allowed source=1.6, target=1.5; this results in:
166                                       
167                                                Failure executing javac, but could not parse the error
168                                                javac: source release 1.6 requires target release 1.6
169                                               
170                                        So we need source=1.5, target=1.5
171                                       
172                                        The downside is that m2eclipse mirrors this in Eclipse's
173                                        compiler settings, and Eclipse then complains about the
174                                        @Override annotations :-(
175                                       
176                                        So you must manually change the Eclipse compiler setting back to 1.6.
177                                                                                                                                                               
178                                 -->
179                                <source>1.5</source>
180                                <target>1.5</target>
181                               
182                                <verbose>false</verbose>
183                                <!--
184                                        maxmemory>512m</maxmemory On Linux, use: MAVEN_OPTS="-Xmx512m" mvn install -->
185                                <!--
186                                        try to help maven to find package
187                                        com.sun.xml.internal.bind.marshaller:
188                                        <bootclasspath>${java.home}/lib/rt.jar</bootclasspath> but this
189                                        doesn't help
190                                -->
191                        </configuration>
192                </plugin>
193                <plugin>
194                        <groupId>org.apache.maven.plugins</groupId>
195                        <artifactId>maven-dependency-plugin</artifactId>
196                        </plugin>
197                <plugin>
198                        <groupId>org.apache.maven.plugins</groupId>
199                        <artifactId>maven-surefire-plugin</artifactId>
200                        <version>2.6</version>
201                        <configuration>
202                                <excludes>
203                                        <exclude>**/samples/*.java</exclude>
204                                </excludes>
205                        </configuration>
206                </plugin>
207                <plugin>
208                        <artifactId>maven-source-plugin</artifactId>
209                        <executions>
210                                <execution>
211                                        <goals>
212                                                <goal>jar</goal>
213                                        </goals>
214                                </execution>
215                        </executions>
216                </plugin>
217                <!--  maven-javadoc-plugin seems to require large -Xmx 
218                          so comment this out if your  build is failing
219                          because you don't have enough.
220                -->
221                <plugin>
222                        <artifactId>maven-javadoc-plugin</artifactId>
223                        <configuration>
224                        <!--  18 MB without the exclusion; still 15MB with  -->
225                        <!--
226                                <excludePackageNames>org.plutext.jaxb.svg11:org.plutext.jaxb.xslfo</excludePackageNames>
227                                 -->
228                        </configuration>
229                        <executions>
230                                <execution>
231                                        <id>attach-javadocs</id>
232                                        <goals>
233                                                <goal>jar</goal>
234                                        </goals>
235                                </execution>
236                        </executions>
237                </plugin>
238        </plugins>
239        <extensions>
240                <extension>
241                        <groupId>org.jvnet.wagon-svn</groupId>
242                        <artifactId>wagon-svn</artifactId>
243                        <version>1.9</version>
244                </extension>
245        </extensions>
246        <resources>
247                <!-- be sure to get xml,xlst resources in various src trees -->
248                <resource>
249                        <directory>src/main/java</directory>
250                        <includes>
251                                <include>**/*.xslt</include>
252                                <include>**/*.xml</include>
253                        </includes>
254                </resource>
255                <resource>
256                        <directory>src/pptx4j/java</directory>
257                        <includes>
258                                <include>**/*.xslt</include>
259                                <include>**/*.xml</include>
260                        </includes>
261                </resource>
262                <resource>
263                        <directory>src/main/resources</directory>
264                        <includes>
265                                <include>docx4j.properties</include>
266                                <include>XhtmlNamespaceHandler.css</include>
267                                <include>xhtmlrenderer.conf</include>
268                        </includes>
269                </resource>
270        </resources>
271        </build>
272        <reporting>
273                <plugins>
274                        <plugin>
275                                <artifactId>maven-javadoc-plugin</artifactId>
276                                <reportSets>
277                                        <reportSet>
278                                                <id>standard-javadoc</id>
279                                                <inherited>true</inherited>
280                                                <configuration>
281                                                        <description>
282                                                                docx4j Open XML manipulation library
283                                                        </description>
284                                                        <docfilessubdirs>true</docfilessubdirs>
285                                                        <failOnError>false</failOnError>
286                                                        <locale>en_AU</locale>
287                                                        <name>Javadoc report</name>
288                                                        <quiet>true</quiet>
289                                                        <serialwarn>false</serialwarn>
290                                                        <show>private</show>
291                                                        <source>1.6</source>
292                                                        <stylesheet>maven</stylesheet>
293                                                        <version>true</version>
294                                                </configuration>
295                                                <reports>
296                                                        <report>javadoc</report>
297                                                </reports>
298                                        </reportSet>
299                                </reportSets>
300                        </plugin>
301                </plugins>
302        </reporting>
303        <dependencies>
304       
305                  <!--  Uncomment this if you are using Java 5. 
306                               
307                                StAX reference implementation,
308                        required for MLInputFactory.newInstance() in Differencer
309                        iff you are using Java 1.5 
310                        (not necessary for Java 6)
311                        -->
312                                <!--
313                        <dependency>
314                          <groupId>stax</groupId>
315                          <artifactId>stax</artifactId>
316                          <version>1.2.0</version>     
317                                <exclusions>
318                                        <exclusion>
319                                        <groupId>stax</groupId>
320                                        <artifactId>stax-api</artifactId>
321                                        </exclusion>
322                                </exclusions>
323                        </dependency>  -->
324                        <!--  stax 1.2.0 grabs 1.0.1(!); jaxb would grab 1.0.2 (where from?) -->
325
326<!-- Uncomment this for Java 5 
327                        <dependency>
328                                <groupId>javax.xml.bind</groupId>
329                                <artifactId>jaxb-api</artifactId>
330                                <version>2.1</version>
331                        </dependency>
332
333                        <dependency>
334                                <groupId>com.sun.xml.bind</groupId>
335                                <artifactId>jaxb-impl</artifactId>
336                                <version>2.1.3</version>
337                               
338                        </dependency>
339  -->                             
340                        <!--  nothing newer in the repository! -->
341
342                <!--  xhtmlrenderer, below, is new for docx4j 2.8.0;
343                          it supports (x)html import.
344               
345                          It will not be in Maven Central until docx4j 2.8.0 is released.
346               
347                          Currently, you can get it from: 
348                         
349                                        https://github.com/plutext/flyingsaucer
350                                       
351                          and install it to your local repository using:
352                         
353                                        mvn install
354                 -->
355                <dependency>
356                        <groupId>org.docx4j</groupId>
357                        <artifactId>xhtmlrenderer</artifactId>
358                        <version>1.0.0-SNAPSHOT</version>
359                                <exclusions>
360                                        <exclusion>
361                                                <groupId>com.lowagie</groupId>
362                                                <artifactId>itext</artifactId>
363                                        </exclusion>
364                                </exclusions>
365                </dependency>
366       
367                <dependency>
368                        <groupId>log4j</groupId>
369                        <artifactId>log4j</artifactId>
370                        <version>1.2.15</version>
371                                <exclusions>
372                                        <exclusion>
373                                                <groupId>javax.mail</groupId>
374                                                <artifactId>mail</artifactId>
375                                        </exclusion>
376                                        <exclusion>
377                                                <groupId>javax.jms</groupId>
378                                                <artifactId>jms</artifactId>
379                                        </exclusion>
380                                        <exclusion>
381                                                <groupId>com.sun.jdmk</groupId>
382                                                <artifactId>jmxtools</artifactId>
383                                        </exclusion>
384                                        <exclusion>
385                                                <groupId>com.sun.jmx</groupId>
386                                                <artifactId>jmxri</artifactId>
387                                        </exclusion>
388                                </exclusions>                   
389                </dependency>
390                <dependency>
391                        <!--  required for our diffx -->
392                        <groupId>commons-lang</groupId>
393                        <artifactId>commons-lang</artifactId>
394                        <version>2.4</version>
395                </dependency>                           
396                <dependency>
397                        <!-- required for fop, xmlgraphics-commons;
398                             list it explicitly, so dependencies can be excluded. -->
399                        <groupId>commons-logging</groupId>
400                        <artifactId>commons-logging</artifactId>
401                        <version>1.1.1</version>
402                        <!-- These are required for commons-logging 1.1, otherwise these unwanted dependencies are included.
403                                See http://raibledesigns.com/rd/entry/maven_2_hates_commons_logging
404                               
405                                <exclusions>
406                                <exclusion>
407                                <groupId>log4j</groupId>
408                                <artifactId>log4j</artifactId>
409                                </exclusion>
410                                <exclusion>
411                                <groupId>logkit</groupId>
412                                <artifactId>logkit</artifactId>
413                                </exclusion>
414                                <exclusion>
415                                <groupId>avalon-framework</groupId>
416                                <artifactId>avalon-framework</artifactId>
417                                </exclusion>
418                                <exclusion>
419                                <groupId>javax.servlet</groupId>
420                                <artifactId>servlet-api</artifactId>
421                                </exclusion>
422                                </exclusions> -->
423                </dependency>
424                <dependency>
425                        <!--  required for ole introspection -->
426                        <groupId>commons-codec</groupId>
427                        <artifactId>commons-codec</artifactId>
428                        <version>1.3</version>
429                </dependency>
430                               
431                <dependency>
432                        <groupId>org.apache.xmlgraphics</groupId>
433                        <artifactId>xmlgraphics-commons</artifactId>
434                        <version>1.4</version>
435                </dependency>
436
437                <dependency>
438                        <groupId>org.apache.xmlgraphics</groupId>
439                        <artifactId>fop</artifactId>
440                        <version>1.0</version>
441                                <exclusions>
442                                        <exclusion>
443                                                <groupId>org.apache.xmlgraphics</groupId>
444                                                <artifactId>batik-svg-dom</artifactId>
445                                        </exclusion>
446                                        <exclusion>
447                                                <groupId>org.apache.xmlgraphics</groupId>
448                                                <artifactId>batik-bridge</artifactId>
449                                        </exclusion>
450                                        <exclusion>
451                                                <groupId>org.apache.xmlgraphics</groupId>
452                                                <artifactId>batik-awt-util</artifactId>
453                                        </exclusion>
454                                        <exclusion>
455                                                <groupId>org.apache.xmlgraphics</groupId>
456                                                <artifactId>batik-gvt</artifactId>
457                                        </exclusion>
458                                        <exclusion>
459                                                <groupId>org.apache.xmlgraphics</groupId>
460                                                <artifactId>batik-transcoder</artifactId>
461                                        </exclusion>
462                                        <exclusion>
463                                                <groupId>org.apache.xmlgraphics</groupId>
464                                                <artifactId>batik-extension</artifactId>
465                                        </exclusion>
466                                        <exclusion>
467                                                <groupId>org.apache.xmlgraphics</groupId>
468                                                <artifactId>batik-ext</artifactId>
469                                        </exclusion>
470                                </exclusions>                   
471                </dependency>
472               
473<dependency>
474    <groupId>xalan</groupId>
475    <artifactId>xalan</artifactId>
476    <version>2.7.1</version>
477    <!-- may not be needed, but don't exclude
478                                <exclusions>
479                                        <exclusion>
480                                       
481                                                <groupId>xml-apis</groupId>
482                                                <artifactId>xml-apis</artifactId>
483                                        </exclusion>
484                                </exclusions>                   
485     -->
486</dependency>
487
488<!-- These work for basic marshalling/unmarshalling,
489     but not with our XSLT extension functions.         
490<dependency>
491    <groupId>net.sf.saxon</groupId>
492    <artifactId>saxon</artifactId>
493    <version>8.7</version>
494</dependency>
495<dependency>
496    <groupId>net.sf.saxon</groupId>
497    <artifactId>saxon-dom</artifactId>
498    <version>8.7</version>
499</dependency>
500-->
501               
502<dependency>
503    <groupId>net.arnx</groupId>
504    <artifactId>wmf2svg</artifactId>
505    <version>0.9.0</version>
506</dependency>
507
508                <dependency>
509                        <groupId>org.apache.poi</groupId>
510                        <artifactId>poi-scratchpad</artifactId>
511                        <version>3.8-beta4</version>
512                </dependency>
513
514                <!-- Ensure both the Java 6 and RI interfaces are present,
515                     even if the user has just one.
516                     NB: this (or an added source location containing them) is
517                     necessary (at least for Maven 2.2.1) since without this,
518                     Maven doesn't find the Java 6 copy in rt.jar --> 
519                <dependency>
520                    <groupId>com.googlecode.jaxb-namespaceprefixmapper-interfaces</groupId>
521                    <artifactId>JAXBNamespacePrefixMapper</artifactId>
522                    <version>2.2.4</version>
523                        <!-- http://dev.plutext.org/forums/docx-java-f6/dependency-management-improvements-t739.html -->       
524                        <scope>provided</scope>                 
525                </dependency>
526               
527                <dependency>
528                <groupId>org.antlr</groupId>
529                <artifactId>antlr-runtime</artifactId>
530                <version>3.3</version>
531                </dependency>
532                <dependency>
533                    <groupId>org.antlr</groupId>
534                    <artifactId>stringtemplate</artifactId>
535                    <version>3.2.1</version>
536                </dependency>
537
538                <dependency>
539                        <groupId>junit</groupId>
540                        <artifactId>junit</artifactId>
541                        <version>4.8</version>
542                        <scope>test</scope>
543                </dependency>
544               
545<!-- Uncomment for load/save via JCR, which
546                may be found in docx4j-extras.         
547                <dependency>
548                        <groupId>javax.jcr</groupId>
549                        <artifactId>jcr</artifactId>
550                        <version>1.0</version>
551                </dependency>
552                -->
553 
554               
555<!--    Uncomment for the PDF conversion via HTML or iText, which
556                may be found in docx4j-extras.
557               
558                If you are planning to use that, you'll also want to uncomment
559                the BaseFont stuff in PhysicalFonts.   
560               
561                <dependency>
562                        <groupId>com.lowagie</groupId>
563                        <artifactId>itext-unsigned</artifactId>
564                        <version>2.0.8</version>
565                        <exclusions>
566                                <exclusion>
567                                        <artifactId>bouncycastle</artifactId>
568                                        <groupId>bcmail-jdk14</groupId>
569                                </exclusion>
570                                <exclusion>
571                                        <artifactId>bouncycastle</artifactId>
572                                        <groupId>bcprov-jdk14</groupId>
573                                </exclusion>
574                        </exclusions>
575                </dependency>
576        -->     
577
578
579<!-- Uncomment for the PDF conversion via HTML, which
580                may be found in docx4j-extras.
581                 
582                <dependency>
583                        <groupId>pdf-renderer</groupId>
584                        <artifactId>pdf-renderer</artifactId>
585                        <version>0.2009.0324</version>
586                </dependency>
587                <dependency>
588                        <groupId>xhtmlrenderer</groupId>
589                        <artifactId>minium</artifactId>
590                        <version>0.1</version>
591                </dependency>
592
593                <dependency>
594                        <groupId>xhtmlrenderer</groupId>
595                        <artifactId>core-renderer</artifactId>
596                        <version>R8pre2</version>
597                </dependency>
598 -->
599
600
601 
602                <!-- if you want to use the vfs stuff in docx4j-extras, you'll need commons-vfs
603                     (one of the two versions below), and jdom.
604               
605                         required by commons-vfs;
606                         TODO that POM should declare this. 
607                        <dependency>
608                                <groupId>jdom</groupId>
609                                <artifactId>jdom</artifactId>
610                                <version>1.0</version>
611                        </dependency>           
612               
613                        <dependency>
614                            <groupId>commons-vfs</groupId>
615                            <artifactId>commons-vfs</artifactId>
616                            <version>1.0</version>
617                        </dependency>           
618               
619                        This patched version of VFS is required for WebDAV
620               
621                     In the meantime, this may be found in
622                     https://webdavclient4j.svn.sourceforge.net/svnroot/webdavclient4j/trunk/m2/org/apache/commons/commons-vfs-patched/
623                                       
624                        <dependency>
625                                <groupId>org.apache.commons</groupId>
626                                <artifactId>commons-vfs-patched</artifactId>
627                                <version>1.9.1</version>
628                        </dependency>
629                -->
630               
631               
632                <!-- svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2
633                       
634                        (stuff not available in public repositories)
635                                                 
636                        mvn deploy:deploy-file -f wagon-svn-pom.xml -Dfile=dist/docx4j.jar -DpomFile=pom.xml  -Dpackaging=jar -DrepositoryId=docx4j -Durl=svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2
637                       
638                -->
639               
640        </dependencies>
641
642                <!--  comment this out, until the Windows path issues below are fixed in m2eclipse
643       
644   <profiles>
645        <profile>
646                <id>jdk15</id>
647                <activation>
648                        <jdk>1.5</jdk>
649                </activation>
650                <dependencies>
651                        <dependency>
652                                <groupId>javax.xml.bind</groupId>
653                                <artifactId>jaxb-api</artifactId>
654                                <version>2.1</version>
655                        </dependency>
656
657                        <dependency>
658                                <groupId>com.sun.xml.bind</groupId>
659                                <artifactId>jaxb-impl</artifactId>
660                                <version>2.1.3</version>
661                        </dependency>
662                </dependencies>
663        </profile>
664        <profile>
665                <id>jdk16</id>
666                <activation>
667                        <jdk>1.6</jdk>
668                </activation>
669                <dependencies>
670                        <dependency>
671                                <groupId>com.sun.xml.bind</groupId>
672                                <artifactId>jaxb-impl</artifactId>
673                                <version>2.0</version>
674                                <scope>system</scope>
675                <systemPath>${env.JAVA_HOME}/jre/lib/rt.jar</systemPath>
676                        </dependency>
677                </dependencies>
678        </profile>
679   </profiles>
680                 -->
681
682                                <!--
683                <systemPath>
684                    /usr/lib/jvm/java-6-sun/jre/lib/rt.jar
685                </systemPath>
686                                        Note for Windows users: Maven won't find rt.jar if systemPath
687                                        contains a space (eg "Program Files"). Either copy rt.jar
688                                        to a path that doesn't contain spaces, or use:
689                                       
690                                            <systemPath>${env.JAVA_HOME}/jre/lib/rt.jar</systemPath>
691                                       
692                                        which works on the command line, but not in m2eclipse 0.9.x.
693                                        See http://jira.codehaus.org/browse/MNGECLIPSE-581
694                                       
695                                        <systemPath>${java.home}/lib/rt.jar</systemPath>
696                                        broken (mvn 2.0.9) even though java.home is supposed to point to JRE_HOME:
697                                       
698                                -->
699       
700</project>
Note: See TracBrowser for help on using the repository browser.