You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  4. http://maven.apache.org/maven-v4_0_0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.apache.poi</groupId>
  8. <artifactId>poi-parent</artifactId>
  9. <version>5.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>poi-scratchpad</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Apache POI Scratchpad package</name>
  14. <properties>
  15. <!-- Exclude some generated code from Sonar analysis -->
  16. <sonar.exclusions>src/main/java/org/apache/poi/hwpf/model/types/*,src/main/java/org/apache/poi/hdf/model/hdftypes/definitions/*</sonar.exclusions>
  17. </properties>
  18. <build>
  19. <plugins>
  20. <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
  21. <plugin>
  22. <artifactId>maven-resources-plugin</artifactId>
  23. <version>${maven.plugin.resources.version}</version>
  24. <executions>
  25. <execution>
  26. <id>copy-sources</id>
  27. <!-- here the phase you need -->
  28. <phase>generate-sources</phase>
  29. <goals>
  30. <goal>copy-resources</goal>
  31. </goals>
  32. <configuration>
  33. <outputDirectory>${basedir}/src/main/java</outputDirectory>
  34. <resources>
  35. <resource>
  36. <directory>../../poi-scratchpad/src/main/java</directory>
  37. </resource>
  38. </resources>
  39. </configuration>
  40. </execution>
  41. <execution>
  42. <id>copy-resources</id>
  43. <!-- here the phase you need -->
  44. <phase>generate-resources</phase>
  45. <goals>
  46. <goal>copy-resources</goal>
  47. </goals>
  48. <configuration>
  49. <outputDirectory>${basedir}/src/main/resources</outputDirectory>
  50. <resources>
  51. <resource>
  52. <directory>../../poi-scratchpad/src/main/resources</directory>
  53. </resource>
  54. </resources>
  55. </configuration>
  56. </execution>
  57. <execution>
  58. <id>copy-tests</id>
  59. <!-- here the phase you need -->
  60. <phase>generate-test-sources</phase>
  61. <goals>
  62. <goal>copy-resources</goal>
  63. </goals>
  64. <configuration>
  65. <outputDirectory>${basedir}/src/test/java</outputDirectory>
  66. <resources>
  67. <resource>
  68. <directory>../../poi-scratchpad/src/test/java</directory>
  69. </resource>
  70. <resource>
  71. <directory>../../poi-scratchpad/src/test/resources</directory>
  72. </resource>
  73. </resources>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <!-- clean copied sources afterwards -->
  79. <plugin>
  80. <artifactId>maven-clean-plugin</artifactId>
  81. <version>${maven.plugin.clean.version}</version>
  82. <configuration>
  83. <filesets>
  84. <fileset>
  85. <directory>src</directory>
  86. <followSymlinks>false</followSymlinks>
  87. </fileset>
  88. </filesets>
  89. </configuration>
  90. </plugin>
  91. </plugins>
  92. </build>
  93. <dependencies>
  94. <dependency>
  95. <groupId>${project.groupId}</groupId>
  96. <artifactId>poi-main</artifactId>
  97. <version>${project.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>${project.groupId}</groupId>
  101. <artifactId>poi-main</artifactId>
  102. <version>${project.version}</version>
  103. <type>test-jar</type>
  104. <scope>test</scope>
  105. </dependency>
  106. </dependencies>
  107. </project>