<name>Apache POI Examples package</name>
+ <properties>
+ <!-- specify actual source directory as otherwise Sonar-plugin will fail during SVN checks -->
+ <sonar.sources>${basedir}/../../src/examples/src</sonar.sources>
+ <!-- tests are automatically found in Maven -->
+ </properties>
+
<build>
<plugins>
<!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
<name>Apache POI ExcelAnt package</name>
+ <properties>
+ <!-- specify actual source directory as otherwise Sonar-plugin will fail during SVN checks -->
+ <sonar.sources>${basedir}/../../src/excelant/java</sonar.sources>
+ <!-- tests are automatically found in Maven -->
+ </properties>
+
<build>
<plugins>
<!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
<name>Apache POI Main package</name>
+ <properties>
+ <!-- specify actual source directory as otherwise Sonar-plugin will fail during SVN checks -->
+ <sonar.sources>${basedir}/../../src/java</sonar.sources>
+ <!-- tests are automatically found in Maven -->
+ </properties>
+
<build>
<plugins>
<!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
<packaging>jar</packaging>
<name>Apache POI OOXML package</name>
+
+ <properties>
+ <!-- specify actual source directory as otherwise Sonar-plugin will fail during SVN checks -->
+ <sonar.sources>${basedir}/../../src/ooxml/java</sonar.sources>
+ <!-- tests are automatically found in Maven -->
+ </properties>
<build>
<plugins>
<properties>
<project.build.sourceEncoding>ASCII</project.build.sourceEncoding>
- <sonar.sources>${basedir}/../src/contrib/src,${basedir}/../src/examples/src,${basedir}/../src/excelant/java,${basedir}/../src/java,${basedir}/../src/ooxml/java,${basedir}/../src/scratchpad/examples,${basedir}/../src/,${basedir}/../src/scratchpad/src</sonar.sources>
- <!-- tests are automatically found in Maven ../src/integrationtest,../src/contrib/testcases,../src/excelant/testcases,../src/ooxml/testcases,../src/scratchpad/testcases,../src/testcases -->
- </properties>
+ </properties>
<build>
<pluginManagement>
<name>Apache POI Scratchpad package</name>
<properties>
+ <!-- specify actual source directory as otherwise Sonar-plugin will fail during SVN checks -->
+ <sonar.sources>${basedir}/../../src/scratchpad/examples,${basedir}/../../src/scratchpad/src</sonar.sources>
+ <!-- tests are automatically found in Maven -->
<!-- Exclude some generated code from Sonar analysis -->
<sonar.exclusions>src/main/java/org/apache/poi/hwpf/model/types/*,src/main/java/org/apache/poi/hdf/model/hdftypes/definitions/*</sonar.exclusions>
</properties>
-
<build>
<plugins>