pom.xml 5.6 KB

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