diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-08-18 01:16:26 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-08-18 01:16:26 +0000 |
commit | cb309c20a1c92d2d1c640b1bd2aec763b7afbe13 (patch) | |
tree | 824c1ebf8ed0629d63c816084483e766bd5b8b51 /sonar/ooxml-schema-security | |
parent | 74c8ca4e5e87bbaa075a0dcc1acd0bdcb999d115 (diff) | |
download | poi-cb309c20a1c92d2d1c640b1bd2aec763b7afbe13.tar.gz poi-cb309c20a1c92d2d1c640b1bd2aec763b7afbe13.zip |
sonar xmlbeans fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696355 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sonar/ooxml-schema-security')
-rw-r--r-- | sonar/ooxml-schema-security/pom.xml | 56 |
1 files changed, 19 insertions, 37 deletions
diff --git a/sonar/ooxml-schema-security/pom.xml b/sonar/ooxml-schema-security/pom.xml index 8c1b3d1c79..49cb861732 100644 --- a/sonar/ooxml-schema-security/pom.xml +++ b/sonar/ooxml-schema-security/pom.xml @@ -20,56 +20,38 @@ <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> + <groupId>org.codehaus.mojo</groupId> + <artifactId>xmlbeans-maven-plugin</artifactId> + <version>2.3.3</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> + <goal>xmlbeans</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> + <configuration> + <schemaDirectory>../../src/ooxml/resources/org/apache/poi/poifs/crypt</schemaDirectory> + <sourceSchemas> + <sourceSchema>signatureInfo.xsd</sourceSchema> + </sourceSchemas> + <noUpa>true</noUpa> + <noPvr>true</noPvr> + <javaSource>1.5</javaSource> + <optimize>yes</optimize> + </configuration> </plugin> </plugins> </build> <dependencies> + <dependency> + <groupId>org.apache.xmlbeans</groupId> + <artifactId>xmlbeans</artifactId> + <version>2.6.0</version> + </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>poi-main</artifactId> |