diff options
author | Dominik Stadler <centic@apache.org> | 2015-08-16 20:51:40 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2015-08-16 20:51:40 +0000 |
commit | b49c01c35595a4b51af8e70fbd57d0b78167f61a (patch) | |
tree | 5d118662f55a82fae6c50409cbe454a4ac75db5b /sonar/ooxml-schema-security/pom.xml | |
parent | f39dc1387ffc611aac0f093bdbf212e77baa9661 (diff) | |
download | poi-b49c01c35595a4b51af8e70fbd57d0b78167f61a.tar.gz poi-b49c01c35595a4b51af8e70fbd57d0b78167f61a.zip |
Try to make Sonar builds run again: add missing dependency, add ooxml-schema-security, don't depend on dir test-data and build-directory directly, don't override a POILogger that is set via System Properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696165 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sonar/ooxml-schema-security/pom.xml')
-rw-r--r-- | sonar/ooxml-schema-security/pom.xml | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/sonar/ooxml-schema-security/pom.xml b/sonar/ooxml-schema-security/pom.xml new file mode 100644 index 0000000000..7debcf290e --- /dev/null +++ b/sonar/ooxml-schema-security/pom.xml @@ -0,0 +1,84 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 + http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.poi</groupId> + <artifactId>poi-parent</artifactId> + <version>3.12-SNAPSHOT</version> + </parent> + <artifactId>poi-ooxml-schema-security</artifactId> + <packaging>jar</packaging> + + <name>Apach POI - Openxmlformats Security-Schema package</name> + + <properties> + <!-- see http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus for details of this property --> + <sonar.exclusions>target/generated-sources/*</sonar.exclusions> + </properties> + + <build> + <plugins> + <!-- reuse Ant build here instead of trying to tweak Maven to do this as we got stuck + because we cannot provide "-noupa -nopvr" using the xmlbeans-maven-plugin --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.6</version> + <executions> + <execution> + <id>build-jar</id> + <phase>generate-sources</phase> + <configuration> + <target> + <echo message="build jar-file for ooxml-security" /> + <ant dir="../.." target="compile-ooxml-xsds" useNativeBasedir="true"/> + <unzip src="../../ooxml-lib/ooxml-security-1.0.jar" dest="target/jar"/> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- copy resulting files from the jar-file as "resources" as otherwise Sonar does not pick them up --> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>2.6</version> + <executions> + <execution> + <id>copy-sources</id> + <phase>generate-sources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/src/main/resources</outputDirectory> + <resources> + <resource> + <directory>target/jar</directory> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>poi-main</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>poi-scratchpad</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> +</project> |