| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 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 | <modelVersion>4.0.0</modelVersion> |
|---|
| 6 | <groupId>org.docx4j</groupId> |
|---|
| 7 | <artifactId>docx4j</artifactId> |
|---|
| 8 | <name>docx4j</name> |
|---|
| 9 | <version>2.1.0</version> |
|---|
| 10 | <description> |
|---|
| 11 | docx4j is a library which helps you to work with the Office Open |
|---|
| 12 | XML file format, specifically WordprocessingML as used in docx |
|---|
| 13 | documents. |
|---|
| 14 | </description> |
|---|
| 15 | <url>http://dev.plutext.org/</url> |
|---|
| 16 | <prerequisites /> |
|---|
| 17 | <inceptionYear>2007</inceptionYear> |
|---|
| 18 | <developers> |
|---|
| 19 | <developer> |
|---|
| 20 | <id>jharrop</id> |
|---|
| 21 | <name>Jason Harrop</name> |
|---|
| 22 | <email>jason@plutext.org</email> |
|---|
| 23 | <organization>Plutext</organization> |
|---|
| 24 | <roles> |
|---|
| 25 | <role>Developer</role> |
|---|
| 26 | </roles> |
|---|
| 27 | <timezone>+10</timezone> |
|---|
| 28 | </developer> |
|---|
| 29 | </developers> |
|---|
| 30 | <build> |
|---|
| 31 | <sourceDirectory>src/main/java</sourceDirectory> |
|---|
| 32 | <testSourceDirectory>src/test/java</testSourceDirectory> |
|---|
| 33 | <outputDirectory>bin</outputDirectory> |
|---|
| 34 | <testOutputDirectory>bin</testOutputDirectory> |
|---|
| 35 | <plugins> |
|---|
| 36 | <plugin> |
|---|
| 37 | <artifactId>maven-compiler-plugin</artifactId> |
|---|
| 38 | <configuration> |
|---|
| 39 | <source>1.6</source> |
|---|
| 40 | <target>1.6</target> |
|---|
| 41 | <verbose>false</verbose> |
|---|
| 42 | </configuration> |
|---|
| 43 | </plugin> |
|---|
| 44 | <plugin> |
|---|
| 45 | <groupId>org.apache.maven.plugins</groupId> |
|---|
| 46 | <artifactId>maven-dependency-plugin</artifactId> |
|---|
| 47 | <version>2.0</version> |
|---|
| 48 | </plugin> |
|---|
| 49 | </plugins> |
|---|
| 50 | <extensions> |
|---|
| 51 | <extension> |
|---|
| 52 | <groupId>org.jvnet.wagon-svn</groupId> |
|---|
| 53 | <artifactId>wagon-svn</artifactId> |
|---|
| 54 | <version>1.8</version> |
|---|
| 55 | </extension> |
|---|
| 56 | </extensions> |
|---|
| 57 | </build> |
|---|
| 58 | <repositories> |
|---|
| 59 | <repository> |
|---|
| 60 | <id>Maven Snapshots</id> |
|---|
| 61 | <url> |
|---|
| 62 | http://people.apache.org/repo/m2-snapshot-repository |
|---|
| 63 | </url> |
|---|
| 64 | <snapshots> |
|---|
| 65 | <enabled>true</enabled> |
|---|
| 66 | </snapshots> |
|---|
| 67 | <releases> |
|---|
| 68 | <enabled>false</enabled> |
|---|
| 69 | </releases> |
|---|
| 70 | </repository> |
|---|
| 71 | <repository> |
|---|
| 72 | <id>docx4j</id> |
|---|
| 73 | <name>docx4j Maven 2 repository</name> |
|---|
| 74 | <url>http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2</url> |
|---|
| 75 | </repository> |
|---|
| 76 | <repository> |
|---|
| 77 | <id>webdavclient4j</id> |
|---|
| 78 | <name>webdavclient4j Maven 2 repository</name> |
|---|
| 79 | <url>https://webdavclient4j.svn.sourceforge.net/svnroot/webdavclient4j/trunk/m2</url> |
|---|
| 80 | </repository> |
|---|
| 81 | |
|---|
| 82 | <repository> |
|---|
| 83 | <id>maven2-repository.dev.java.net</id> |
|---|
| 84 | <name>Java.net Repository for Maven</name> |
|---|
| 85 | <url>http://download.java.net/maven/2/</url> |
|---|
| 86 | </repository> |
|---|
| 87 | </repositories> |
|---|
| 88 | <dependencies> |
|---|
| 89 | <dependency> |
|---|
| 90 | <groupId>javax.xml.bind</groupId> |
|---|
| 91 | <artifactId>jaxb-api</artifactId> |
|---|
| 92 | <version>2.1</version> |
|---|
| 93 | </dependency> |
|---|
| 94 | |
|---|
| 95 | <dependency> |
|---|
| 96 | <groupId>com.sun.xml.bind</groupId> |
|---|
| 97 | <artifactId>jaxb-impl</artifactId> |
|---|
| 98 | <version>2.1.3</version> <!-- nothing newer in the repository! --> |
|---|
| 99 | </dependency> |
|---|
| 100 | |
|---|
| 101 | <dependency> |
|---|
| 102 | <groupId>junit</groupId> |
|---|
| 103 | <artifactId>junit</artifactId> |
|---|
| 104 | <version>4.4</version> |
|---|
| 105 | </dependency> |
|---|
| 106 | <dependency> |
|---|
| 107 | <groupId>javax.jcr</groupId> |
|---|
| 108 | <artifactId>jcr</artifactId> |
|---|
| 109 | <version>1.0</version> |
|---|
| 110 | </dependency> |
|---|
| 111 | <dependency> |
|---|
| 112 | <groupId>log4j</groupId> |
|---|
| 113 | <artifactId>log4j</artifactId> |
|---|
| 114 | <version>1.2.13</version> |
|---|
| 115 | </dependency> |
|---|
| 116 | <dependency> |
|---|
| 117 | <groupId>dom4j</groupId> |
|---|
| 118 | <artifactId>dom4j</artifactId> |
|---|
| 119 | <version>1.6.1</version> |
|---|
| 120 | </dependency> |
|---|
| 121 | <dependency> |
|---|
| 122 | <!-- required for fop fonts --> |
|---|
| 123 | <groupId>commons-logging</groupId> |
|---|
| 124 | <artifactId>commons-logging</artifactId> |
|---|
| 125 | <version>1.1.1</version> |
|---|
| 126 | <!-- These are required for commons-logging 1.1, otherwise these unwanted dependencies are included. |
|---|
| 127 | See http://raibledesigns.com/rd/entry/maven_2_hates_commons_logging |
|---|
| 128 | |
|---|
| 129 | <exclusions> |
|---|
| 130 | <exclusion> |
|---|
| 131 | <groupId>log4j</groupId> |
|---|
| 132 | <artifactId>log4j</artifactId> |
|---|
| 133 | </exclusion> |
|---|
| 134 | <exclusion> |
|---|
| 135 | <groupId>logkit</groupId> |
|---|
| 136 | <artifactId>logkit</artifactId> |
|---|
| 137 | </exclusion> |
|---|
| 138 | <exclusion> |
|---|
| 139 | <groupId>avalon-framework</groupId> |
|---|
| 140 | <artifactId>avalon-framework</artifactId> |
|---|
| 141 | </exclusion> |
|---|
| 142 | <exclusion> |
|---|
| 143 | <groupId>javax.servlet</groupId> |
|---|
| 144 | <artifactId>servlet-api</artifactId> |
|---|
| 145 | </exclusion> |
|---|
| 146 | </exclusions> --> |
|---|
| 147 | </dependency> |
|---|
| 148 | <dependency> |
|---|
| 149 | <!-- required for fop fonts --> |
|---|
| 150 | <groupId>commons-io</groupId> |
|---|
| 151 | <artifactId>commons-io</artifactId> |
|---|
| 152 | <version>1.3.1</version> |
|---|
| 153 | </dependency> |
|---|
| 154 | |
|---|
| 155 | <dependency> |
|---|
| 156 | <!-- required by commons-vfs |
|---|
| 157 | TODO that POM should declare this. --> |
|---|
| 158 | <groupId>jdom</groupId> |
|---|
| 159 | <artifactId>jdom</artifactId> |
|---|
| 160 | <version>1.0</version> |
|---|
| 161 | </dependency> |
|---|
| 162 | |
|---|
| 163 | |
|---|
| 164 | <dependency> |
|---|
| 165 | <groupId>org.apache.xmlgraphics</groupId> |
|---|
| 166 | <artifactId>xmlgraphics-commons</artifactId> |
|---|
| 167 | <version>1.3</version> |
|---|
| 168 | </dependency> |
|---|
| 169 | |
|---|
| 170 | <!-- svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2 |
|---|
| 171 | |
|---|
| 172 | (stuff not available in public repositories) |
|---|
| 173 | |
|---|
| 174 | mvn deploy:deploy-file -f wagon-svn-pom.xml -Dfile=lib/xalan-2.7.0-patched-6396599-stripped.jar -DgroupId=xalan -DartifactId=xalan-patched -Dversion=2.7.0 -Dpackaging=jar -DrepositoryId=docx4j -Durl=svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2 |
|---|
| 175 | |
|---|
| 176 | |
|---|
| 177 | --> |
|---|
| 178 | |
|---|
| 179 | <dependency> |
|---|
| 180 | <groupId>org.apache.poi</groupId> |
|---|
| 181 | <artifactId>hwpf</artifactId> |
|---|
| 182 | <version>3.1.0</version> |
|---|
| 183 | </dependency> |
|---|
| 184 | |
|---|
| 185 | <dependency> |
|---|
| 186 | <groupId>com.topologi</groupId> |
|---|
| 187 | <artifactId>diffx</artifactId> |
|---|
| 188 | <version>0.61</version> |
|---|
| 189 | </dependency> |
|---|
| 190 | |
|---|
| 191 | <dependency> |
|---|
| 192 | <groupId>com.lowagie</groupId> |
|---|
| 193 | <artifactId>itext-unsigned</artifactId> |
|---|
| 194 | <version>2.0.8</version> |
|---|
| 195 | <exclusions> |
|---|
| 196 | <!-- not that these are in our pom, |
|---|
| 197 | but they are in the official one --> |
|---|
| 198 | <exclusion> |
|---|
| 199 | <artifactId>bouncycastle</artifactId> |
|---|
| 200 | <groupId>bcmail-jdk14</groupId> |
|---|
| 201 | </exclusion> |
|---|
| 202 | <exclusion> |
|---|
| 203 | <artifactId>bouncycastle</artifactId> |
|---|
| 204 | <groupId>bcprov-jdk14</groupId> |
|---|
| 205 | </exclusion> |
|---|
| 206 | </exclusions> |
|---|
| 207 | </dependency> |
|---|
| 208 | |
|---|
| 209 | <dependency> |
|---|
| 210 | <groupId>xalan</groupId> |
|---|
| 211 | <artifactId>xalan-patched</artifactId> |
|---|
| 212 | <version>2.7.0</version> |
|---|
| 213 | <!-- required for transforming to xhtml |
|---|
| 214 | |
|---|
| 215 | But we use a patched copy as a workaround |
|---|
| 216 | for http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6396599 |
|---|
| 217 | |
|---|
| 218 | remove META-INF/services from the xalan jar to prevent xalan |
|---|
| 219 | being picked up as the default provider for jaxp transform. |
|---|
| 220 | |
|---|
| 221 | 6396599 has been fixed in the on-going release JDK7. |
|---|
| 222 | 6396599 has also been committed to backport to 6u release 6u10 --> |
|---|
| 223 | </dependency> |
|---|
| 224 | |
|---|
| 225 | <dependency> |
|---|
| 226 | <groupId>pdf-renderer</groupId> |
|---|
| 227 | <artifactId>pdf-renderer</artifactId> |
|---|
| 228 | <version>0.2007</version> |
|---|
| 229 | </dependency> |
|---|
| 230 | |
|---|
| 231 | <dependency> |
|---|
| 232 | <groupId>org.jvnet.jaxb2_commons.ppp</groupId> |
|---|
| 233 | <artifactId>parent-pointer-plugin</artifactId> |
|---|
| 234 | <version>1.0</version> |
|---|
| 235 | </dependency> |
|---|
| 236 | |
|---|
| 237 | <dependency> |
|---|
| 238 | <groupId>xhtmlrenderer</groupId> |
|---|
| 239 | <artifactId>minium</artifactId> |
|---|
| 240 | <version>0.1</version> |
|---|
| 241 | </dependency> |
|---|
| 242 | |
|---|
| 243 | <dependency> |
|---|
| 244 | <groupId>xhtmlrenderer</groupId> |
|---|
| 245 | <artifactId>core-renderer</artifactId> |
|---|
| 246 | <version>R8pre2</version> |
|---|
| 247 | </dependency> |
|---|
| 248 | |
|---|
| 249 | <dependency> |
|---|
| 250 | <groupId>docx4j</groupId> |
|---|
| 251 | <artifactId>fop-fonts</artifactId> |
|---|
| 252 | <version>0.2.0</version> |
|---|
| 253 | </dependency> |
|---|
| 254 | |
|---|
| 255 | <!-- end of svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2 --> |
|---|
| 256 | |
|---|
| 257 | <!-- https://webdavclient4j.svn.sourceforge.net/svnroot/webdavclient4j/trunk/m2 |
|---|
| 258 | |
|---|
| 259 | (stuff not available in public repositories) |
|---|
| 260 | --> |
|---|
| 261 | |
|---|
| 262 | <dependency> |
|---|
| 263 | <groupId>org.apache.commons</groupId> |
|---|
| 264 | <artifactId>commons-vfs-patched</artifactId> |
|---|
| 265 | <version>1.9.1</version> |
|---|
| 266 | </dependency> |
|---|
| 267 | |
|---|
| 268 | </dependencies> |
|---|
| 269 | <distributionManagement> |
|---|
| 270 | <repository> |
|---|
| 271 | <uniqueVersion>false</uniqueVersion> |
|---|
| 272 | <id>docx4j</id> |
|---|
| 273 | <url>svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2</url> |
|---|
| 274 | </repository> |
|---|
| 275 | </distributionManagement> |
|---|
| 276 | |
|---|
| 277 | <!-- NB as at 20080521, docx4j can't be built using 1.5. There are 2 issues: |
|---|
| 278 | |
|---|
| 279 | 1. fop-fonts-0.1.jar was built targeting 1.6 |
|---|
| 280 | |
|---|
| 281 | 2. NamespacePrefixMapper.java imports com.sun.xml.internal.bind.marshaller |
|---|
| 282 | |
|---|
| 283 | so comment this out, until: |
|---|
| 284 | (a) above issues are addressed |
|---|
| 285 | (b) the Windows path issues below are fixed in m2eclipse |
|---|
| 286 | |
|---|
| 287 | <profiles> |
|---|
| 288 | <profile> |
|---|
| 289 | <id>jdk15</id> |
|---|
| 290 | <activation> |
|---|
| 291 | <jdk>1.5</jdk> |
|---|
| 292 | </activation> |
|---|
| 293 | <dependencies> |
|---|
| 294 | <dependency> |
|---|
| 295 | <groupId>javax.xml.bind</groupId> |
|---|
| 296 | <artifactId>jaxb-api</artifactId> |
|---|
| 297 | <version>2.1</version> |
|---|
| 298 | </dependency> |
|---|
| 299 | |
|---|
| 300 | <dependency> |
|---|
| 301 | <groupId>com.sun.xml.bind</groupId> |
|---|
| 302 | <artifactId>jaxb-impl</artifactId> |
|---|
| 303 | <version>2.1.3</version> |
|---|
| 304 | </dependency> |
|---|
| 305 | </dependencies> |
|---|
| 306 | </profile> |
|---|
| 307 | <profile> |
|---|
| 308 | <id>jdk16</id> |
|---|
| 309 | <activation> |
|---|
| 310 | <jdk>1.6</jdk> |
|---|
| 311 | </activation> |
|---|
| 312 | <dependencies> |
|---|
| 313 | <dependency> |
|---|
| 314 | <groupId>com.sun.xml.bind</groupId> |
|---|
| 315 | <artifactId>jaxb-impl</artifactId> |
|---|
| 316 | <version>2.0</version> |
|---|
| 317 | <scope>system</scope> |
|---|
| 318 | <systemPath>${env.JAVA_HOME}/jre/lib/rt.jar</systemPath>
|
|---|
| 319 | </dependency> |
|---|
| 320 | </dependencies> |
|---|
| 321 | </profile> |
|---|
| 322 | </profiles> |
|---|
| 323 | --> |
|---|
| 324 | |
|---|
| 325 | <!-- |
|---|
| 326 | <systemPath> |
|---|
| 327 | /usr/lib/jvm/java-6-sun/jre/lib/rt.jar |
|---|
| 328 | </systemPath> |
|---|
| 329 | Note for Windows users: Maven won't find rt.jar if systemPath |
|---|
| 330 | contains a space (eg "Program Files"). Either copy rt.jar |
|---|
| 331 | to a path that doesn't contain spaces, or use: |
|---|
| 332 | |
|---|
| 333 | <systemPath>${env.JAVA_HOME}/jre/lib/rt.jar</systemPath> |
|---|
| 334 | |
|---|
| 335 | which works on the command line, but not in m2eclipse 0.9.x. |
|---|
| 336 | See http://jira.codehaus.org/browse/MNGECLIPSE-581 |
|---|
| 337 | |
|---|
| 338 | <systemPath>${java.home}/lib/rt.jar</systemPath> |
|---|
| 339 | broken (mvn 2.0.9) even though java.home is supposed to point to JRE_HOME: |
|---|
| 340 | |
|---|
| 341 | --> |
|---|
| 342 | |
|---|
| 343 | </project> |
|---|