Browse Source

Provide XAdES schemas locally, because of connection timeouts

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871111 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_4_1_2
Andreas Beeker 4 years ago
parent
commit
cd38079247
2 changed files with 15 additions and 51 deletions
  1. 14
    50
      sonar/ooxml-schema-security/pom.xml
  2. 1
    1
      sonar/pom.xml

+ 14
- 50
sonar/ooxml-schema-security/pom.xml View File

@@ -46,52 +46,7 @@
<goals><goal>wget</goal></goals>
<configuration>
<outputDirectory>target/schemas</outputDirectory>
<url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd</url>
</configuration>
</execution>
<execution>
<id>install-xsds-part-3</id>
<phase>generate-sources</phase>
<goals><goal>wget</goal></goals>
<configuration>
<outputDirectory>target/schemas</outputDirectory>
<url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd</url>
</configuration>
</execution>
<execution>
<id>install-xsds-part-4</id>
<phase>generate-sources</phase>
<goals><goal>wget</goal></goals>
<configuration>
<outputDirectory>target/schemas</outputDirectory>
<url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd</url>
</configuration>
</execution>
<execution>
<id>install-xsds-part-5</id>
<phase>generate-sources</phase>
<goals><goal>wget</goal></goals>
<configuration>
<outputDirectory>target/schemas</outputDirectory>
<url>http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd</url>
</configuration>
</execution>
<execution>
<id>install-xsds-part-6</id>
<phase>generate-sources</phase>
<goals><goal>wget</goal></goals>
<configuration>
<outputDirectory>target/schemas</outputDirectory>
<url>https://uri.etsi.org/01903/v1.3.2/XAdES.xsd</url>
</configuration>
</execution>
<execution>
<id>install-xsds-part-7</id>
<phase>generate-sources</phase>
<goals><goal>wget</goal></goals>
<configuration>
<outputDirectory>target/schemas</outputDirectory>
<url>https://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd</url>
<url>https://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd</url>
</configuration>
</execution>
</executions>
@@ -112,9 +67,18 @@
<configuration>
<target>
<echo message="unzip schemas" />
<unzip src="target/OpenPackagingConventions-XMLSchema.zip" dest="target/schemas/" />
<copy file="../../src/ooxml/resources/org/apache/poi/poifs/crypt/signatureInfo.xsd"
todir="target/schemas"/>
<unzip src="target/OpenPackagingConventions-XMLSchema.zip" dest="target/schemas/">
<patternset>
<include name="opc-digSig.xsd"/>
<include name="opc-relationships.xsd"/>
</patternset>
</unzip>
<copy todir="target/schemas">
<fileset dir="../../src/ooxml/resources/org/apache/poi">
<include name="poifs/crypt/signatureInfo.xsd"/>
<include name="schemas/XAdES*.xsd"/>
</fileset>
</copy>
</target>
</configuration>
</execution>
@@ -129,7 +93,7 @@
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>${xmlbeans.version}</version>
</dependency>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>poi-main</artifactId>

+ 1
- 1
sonar/pom.xml View File

@@ -269,7 +269,7 @@
<configuration>
<target>
<copy todir="${basedir}/target/schemas">
<fileset dir="${basedir}/../../src/ooxml/resources/org/apache/poi/schemas"/>
<fileset dir="${basedir}/../../src/ooxml/resources/org/apache/poi/schemas" excludes="XAdES*.xsd"/>
</copy>
</target>
</configuration>

Loading…
Cancel
Save