pom.xml 5.0 KB

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