pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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>cn.keking</groupId>
  7. <artifactId>office-plugin</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <repositories>
  14. <repository>
  15. <!-- required for org.hyperic:sigar -->
  16. <id>jboss-public-repository-group</id>
  17. <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
  18. </repository>
  19. </repositories>
  20. <dependencies>
  21. <dependency>
  22. <groupId>commons-io</groupId>
  23. <artifactId>commons-io</artifactId>
  24. <version>1.4</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.openoffice</groupId>
  28. <artifactId>juh</artifactId>
  29. <version>3.2.1</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.openoffice</groupId>
  33. <artifactId>ridl</artifactId>
  34. <version>3.2.1</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.openoffice</groupId>
  38. <artifactId>unoil</artifactId>
  39. <version>3.2.1</version>
  40. </dependency>
  41. <dependency>
  42. <!-- for the command line tool -->
  43. <groupId>commons-cli</groupId>
  44. <artifactId>commons-cli</artifactId>
  45. <version>1.1</version>
  46. <optional>true</optional>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.hyperic</groupId>
  50. <artifactId>sigar</artifactId>
  51. <version>1.6.5.132</version>
  52. <optional>true</optional>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.json</groupId>
  56. <artifactId>json</artifactId>
  57. <version>20090211</version>
  58. <optional>true</optional>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.testng</groupId>
  62. <artifactId>testng</artifactId>
  63. <version>6.0.1</version>
  64. <scope>test</scope>
  65. </dependency>
  66. </dependencies>
  67. <build>
  68. <plugins>
  69. <!-- 要将源码放上去,需要加入这个插件 -->
  70. <plugin>
  71. <artifactId>maven-source-plugin</artifactId>
  72. <version>2.1</version>
  73. <configuration>
  74. <attach>true</attach>
  75. </configuration>
  76. <executions>
  77. <execution>
  78. <phase>compile</phase>
  79. <goals>
  80. <goal>jar</goal>
  81. </goals>
  82. </execution>
  83. </executions>
  84. </plugin>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-compiler-plugin</artifactId>
  88. <version>2.3.2</version>
  89. <configuration>
  90. <source>1.6</source>
  91. <target>1.6</target>
  92. <encoding>UTF-8</encoding>
  93. </configuration>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-surefire-plugin</artifactId>
  98. <version>2.7.2</version>
  99. <configuration>
  100. <!-- don't run tests in parallel -->
  101. <perCoreThreadCount>false</perCoreThreadCount>
  102. <threadCount>1</threadCount>
  103. </configuration>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-jar-plugin</artifactId>
  108. <version>2.3.1</version>
  109. <configuration>
  110. <archive>
  111. <manifest>
  112. <mainClass>org.artofsolving.jodconverter.cli.Convert</mainClass>
  113. <addClasspath>true</addClasspath>
  114. </manifest>
  115. </archive>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-assembly-plugin</artifactId>
  121. <version>2.2-beta-5</version>
  122. <configuration>
  123. <descriptors>
  124. <descriptor>src/main/assembly/dist.xml</descriptor>
  125. </descriptors>
  126. </configuration>
  127. </plugin>
  128. </plugins>
  129. </build>
  130. <reporting>
  131. <plugins>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-javadoc-plugin</artifactId>
  135. <version>2.7</version>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.codehaus.mojo</groupId>
  139. <artifactId>cobertura-maven-plugin</artifactId>
  140. <version>2.4</version>
  141. </plugin>
  142. </plugins>
  143. </reporting>
  144. <!-- distribute目录 -->
  145. <distributionManagement>
  146. <repository>
  147. <id>repo</id>
  148. <name>User Project Releases</name>
  149. <url>http://192.168.1.204:8081/nexus/content/repositories/releases</url>
  150. </repository>
  151. <snapshotRepository>
  152. <id>repo</id>
  153. <name>User Project SNAPSHOTS</name>
  154. <url>http://192.168.1.204:8081/nexus/content/repositories/snapshots</url>
  155. </snapshotRepository>
  156. </distributionManagement>
  157. </project>