Next try for Sonar Maven build: Specify the src-pathes in the various pom.xml files

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1697758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2015-08-25 19:04:11 +00:00
parent 5a867f39e9
commit fd02230c1d
6 changed files with 28 additions and 4 deletions

View File

@ -13,6 +13,12 @@
<name>Apache POI Examples package</name> <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> <build>
<plugins> <plugins>
<!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! --> <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->

View File

@ -13,6 +13,12 @@
<name>Apache POI ExcelAnt package</name> <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> <build>
<plugins> <plugins>
<!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! --> <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->

View File

@ -13,6 +13,12 @@
<name>Apache POI Main package</name> <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> <build>
<plugins> <plugins>
<!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! --> <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->

View File

@ -12,6 +12,12 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Apache POI OOXML package</name> <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> <build>
<plugins> <plugins>

View File

@ -65,9 +65,7 @@
<properties> <properties>
<project.build.sourceEncoding>ASCII</project.build.sourceEncoding> <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> </properties>
<!-- tests are automatically found in Maven ../src/integrationtest,../src/contrib/testcases,../src/excelant/testcases,../src/ooxml/testcases,../src/scratchpad/testcases,../src/testcases -->
</properties>
<build> <build>
<pluginManagement> <pluginManagement>

View File

@ -14,10 +14,12 @@
<name>Apache POI Scratchpad package</name> <name>Apache POI Scratchpad package</name>
<properties> <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 --> <!-- 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> <sonar.exclusions>src/main/java/org/apache/poi/hwpf/model/types/*,src/main/java/org/apache/poi/hdf/model/hdftypes/definitions/*</sonar.exclusions>
</properties> </properties>
<build> <build>
<plugins> <plugins>