pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-source-plugin</artifactId>
  62. <version>2.1</version>
  63. <configuration>
  64. <attach>true</attach>
  65. </configuration>
  66. <executions>
  67. <execution>
  68. <phase>compile</phase>
  69. <goals>
  70. <goal>jar</goal>
  71. </goals>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-surefire-plugin</artifactId>
  78. <version>2.7.2</version>
  79. <configuration>
  80. <!-- don't run tests in parallel -->
  81. <perCoreThreadCount>false</perCoreThreadCount>
  82. <threadCount>1</threadCount>
  83. </configuration>
  84. </plugin>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-jar-plugin</artifactId>
  88. <version>2.3.1</version>
  89. <configuration>
  90. <archive>
  91. <manifest>
  92. <mainClass>org.artofsolving.jodconverter.cli.Convert</mainClass>
  93. <addClasspath>true</addClasspath>
  94. </manifest>
  95. </archive>
  96. </configuration>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-assembly-plugin</artifactId>
  101. <version>2.2-beta-5</version>
  102. <configuration>
  103. <descriptors>
  104. <descriptor>src/main/assembly/dist.xml</descriptor>
  105. </descriptors>
  106. </configuration>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. <reporting>
  111. <plugins>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-javadoc-plugin</artifactId>
  115. <version>2.7</version>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.codehaus.mojo</groupId>
  119. <artifactId>cobertura-maven-plugin</artifactId>
  120. <version>2.7</version>
  121. </plugin>
  122. </plugins>
  123. </reporting>
  124. </project>