| 1 | Descriptionscip-debian debian saxonhe 9.9.1.5+dfsg-1 saxonhe/patches/`pom_added.patch`#Description.: Add pom.xml for building and packaging |
| 2 | |
| 3 | --- /dev/nullscip-debian debian saxonhe 9.9.1.5+dfsg-1 saxonhe/upstream/`/dev/null`: |
| 4 | +++ b/pom.xmlscip-debian debian saxonhe 9.9.1.5+dfsg-1 saxonhe/upstream/`pom.xml`: |
| 5 | @@ -0,0 +1,176 @@ |
| 6 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 7 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 8 | + <modelVersion>4.0.0</modelVersion> |
| 9 | + <groupId>net.sf.saxon</groupId> |
| 10 | + <artifactId>Saxon-HE</artifactId> |
| 11 | + <version>9.9.1.5</version> |
| 12 | + <packaging>jar</packaging> |
| 13 | + <name>Saxon-HE</name> |
| 14 | + <description>The XSLT and XQuery Processor</description> |
| 15 | + <url>http://www.saxonica.com/</url> |
| 16 | + <organization> |
| 17 | + <name>Saxonica</name> |
| 18 | + <url>http://www.saxonica.com</url> |
| 19 | + </organization> |
| 20 | + <licenses> |
| 21 | + <license> |
| 22 | + <name>Mozilla Public License Version 2.0</name> |
| 23 | + <url>http://www.mozilla.org/MPL/2.0/</url> |
| 24 | + <distribution>repo</distribution> |
| 25 | + </license> |
| 26 | + </licenses> |
| 27 | + <properties> |
| 28 | + <configs.path>target/config</configs.path> |
| 29 | + <edition.properties>target/edition</edition.properties> |
| 30 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 31 | + </properties> |
| 32 | + <dependencies> |
| 33 | + <dependency> |
| 34 | + <groupId>org.jdom</groupId> |
| 35 | + <artifactId>jdom</artifactId> |
| 36 | + <version>1.1</version> |
| 37 | + <scope>compile</scope> |
| 38 | + </dependency> |
| 39 | + <dependency> |
| 40 | + <groupId>xom</groupId> |
| 41 | + <artifactId>xom</artifactId> |
| 42 | + <version>1.2.5</version> |
| 43 | + <scope>compile</scope> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>org.dom4j</groupId> |
| 47 | + <artifactId>dom4j</artifactId> |
| 48 | + <version>1.6.1</version> |
| 49 | + </dependency> |
| 50 | + <dependency> |
| 51 | + <groupId>xml-resolver</groupId> |
| 52 | + <artifactId>xml-resolver</artifactId> |
| 53 | + <version>1.2</version> |
| 54 | + </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>com.intellij</groupId> |
| 57 | + <artifactId>annotations</artifactId> |
| 58 | + <version>12.0</version> |
| 59 | + </dependency> |
| 60 | + <dependency> |
| 61 | + <groupId>com.ibm.icu</groupId> |
| 62 | + <artifactId>icu4j</artifactId> |
| 63 | + <version>57.1</version> |
| 64 | + </dependency> |
| 65 | + </dependencies> |
| 66 | + <build> |
| 67 | + <pluginManagement> |
| 68 | + <plugins> |
| 69 | + <plugin> |
| 70 | + <groupId>org.apache.maven.plugins</groupId> |
| 71 | + <artifactId>maven-compiler-plugin</artifactId> |
| 72 | + <configuration> |
| 73 | + <encoding>ISO-8859-1</encoding> |
| 74 | + <source>1.8</source> |
| 75 | + <target>1.8</target> |
| 76 | + </configuration> |
| 77 | + </plugin> |
| 78 | + </plugins> |
| 79 | + </pluginManagement> |
| 80 | + <resources> |
| 81 | + <resource> |
| 82 | + <directory>${configs.path}</directory> |
| 83 | + <targetPath>META-INF</targetPath> |
| 84 | + </resource> |
| 85 | + <resource> |
| 86 | + <directory>${edition.properties}</directory> |
| 87 | + <targetPath>.</targetPath> |
| 88 | + </resource> |
| 89 | + <resource> |
| 90 | + <directory>net/sf/saxon/data</directory> |
| 91 | + <targetPath>net/sf/saxon/data</targetPath> |
| 92 | + </resource> |
| 93 | + </resources> |
| 94 | + <plugins> |
| 95 | + <plugin> |
| 96 | + <artifactId>maven-antrun-plugin</artifactId> |
| 97 | + <version>1.6</version> |
| 98 | + <executions> |
| 99 | + <execution> |
| 100 | + <id>generate-resources</id> |
| 101 | + <phase>generate-resources</phase> |
| 102 | + <configuration> |
| 103 | + <target> |
| 104 | + <mkdir dir="${configs.path}/services"/> |
| 105 | + <echo file="${configs.path}/services/javax.xml.transform.TransformerFactory" |
| 106 | + message="net.sf.saxon.TransformerFactoryImpl"/> |
| 107 | + <echo file="${configs.path}/services/javax.xml.xpath.XPathFactory" |
| 108 | + message="net.sf.saxon.xpath.XPathFactoryImpl"/> |
| 109 | + <mkdir dir="${edition.properties}"/> |
| 110 | + <echo file="${edition.properties}/edition.properties">config=net.sf.saxon.Configuration |
| 111 | +platform=net.sf.saxon.java.JavaPlatform |
| 112 | + </echo> |
| 113 | + </target> |
| 114 | + </configuration> |
| 115 | + <goals> |
| 116 | + <goal>run</goal> |
| 117 | + </goals> |
| 118 | + </execution> |
| 119 | + <execution> |
| 120 | + <id>fix-sources</id> |
| 121 | + <phase>generate-sources</phase> |
| 122 | + <configuration> |
| 123 | + <target> |
| 124 | + <taskdef resource="com/igormaznitsa/jcp/ant/tasks.properties" classpath="/usr/share/java/jcp.jar"/> |
| 125 | + <preprocess source="net" destination="src/main/java/net" verbose="false"> |
| 126 | + <global name="EE" value="false"/> |
| 127 | + <global name="PE" value="false"/> |
| 128 | + <global name="DOTNET" value="false"/> |
| 129 | + <global name="OPT" value="false"/> |
| 130 | + <global name="SAXONC" value="false"/> |
| 131 | + <global name="BYTECODE" value="false"/> |
| 132 | + </preprocess> |
| 133 | + |
| 134 | + <replaceregexp match="import com\.saxonica(.*)" replace="" flags="g"> |
| 135 | + <fileset dir="src/main/java/net" includes="**/*.java" /> |
| 136 | + </replaceregexp> |
| 137 | + <replaceregexp match="import net\.sf\.saxon\.dotnet(.*)" replace="" flags="g"> |
| 138 | + <fileset dir="src/main/java/net" includes="**/*.java" /> |
| 139 | + </replaceregexp> |
| 140 | + </target> |
| 141 | + </configuration> |
| 142 | + <goals> |
| 143 | + <goal>run</goal> |
| 144 | + </goals> |
| 145 | + </execution> |
| 146 | + </executions> |
| 147 | + <dependencies> |
| 148 | + <dependency> |
| 149 | + <groupId>commons-io</groupId> |
| 150 | + <artifactId>commons-io</artifactId> |
| 151 | + <version>2.5</version> |
| 152 | + </dependency> |
| 153 | + </dependencies> |
| 154 | + </plugin> |
| 155 | + <plugin> |
| 156 | + <groupId>org.apache.maven.plugins</groupId> |
| 157 | + <artifactId>maven-jar-plugin</artifactId> |
| 158 | + <configuration> |
| 159 | + <archive> |
| 160 | + <manifest> |
| 161 | + <addClasspath>true</addClasspath> |
| 162 | + <classpathLayoutType>custom</classpathLayoutType> |
| 163 | + <customClasspathLayout>/usr/share/java/$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout> |
| 164 | + <mainClass>net.sf.saxon.Transform</mainClass> |
| 165 | + </manifest> |
| 166 | + </archive> |
| 167 | + </configuration> |
| 168 | + </plugin> |
| 169 | + <plugin> |
| 170 | + <artifactId>maven-clean-plugin</artifactId> |
| 171 | + <configuration> |
| 172 | + <filesets> |
| 173 | + <fileset> |
| 174 | + <directory>src</directory> |
| 175 | + </fileset> |
| 176 | + </filesets> |
| 177 | + </configuration> |
| 178 | + </plugin> |
| 179 | + </plugins> |
| 180 | + </build> |
| 181 | +</project> |