File: pom.xml

package info (click to toggle)
saxonhe 9.5.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,340 kB
  • ctags: 21,096
  • sloc: java: 146,218; xml: 160; sh: 7; makefile: 4
file content (170 lines) | stat: -rw-r--r-- 5,583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<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/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf.saxon</groupId>
  <artifactId>Saxon-HE</artifactId>
  <version>9.5.1.1</version>
  <packaging>jar</packaging>

  <name>Saxon-HE</name>
  <description>The XSLT and XQuery Processor</description>
  <url>http://www.saxonica.com/</url>
  <organization>
    <name>Saxonica</name>
    <url>http://www.saxonica.com</url>
  </organization>

  <licenses>
    <license>
      <name>Mozilla Public License Version 2.0</name>
      <url>http://www.mozilla.org/MPL/2.0/</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <properties>
    <configs.path>target/config</configs.path>
    <edition.properties>target/edition</edition.properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.jdom</groupId>
      <artifactId>jdom</artifactId>
      <version>1.1</version>
      <scope>compile</scope>
    </dependency>

    <dependency>
      <groupId>xom</groupId>
      <artifactId>xom</artifactId>
      <version>1.2.5</version>
      <scope>compile</scope>
    </dependency>

    <dependency>
      <groupId>dom4j</groupId>
      <artifactId>dom4j</artifactId>
      <version>1.6.1</version>
    </dependency>

    <dependency>
      <groupId>xml-resolver</groupId>
      <artifactId>xml-resolver</artifactId>
      <version>1.2</version>
    </dependency>
  </dependencies>
  
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.0.2</version>
          <configuration>
            <encoding>ISO-8859-1</encoding>
            <source>1.6</source>
            <target>1.6</target>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <resources>
	<resource>
		<directory>${configs.path}</directory>
		<targetPath>META-INF</targetPath>
	</resource>
	<resource>
		<directory>${edition.properties}</directory>
		<targetPath>.</targetPath>
	</resource>
    </resources>
    <plugins>
        <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.6</version>
        <executions>
          <execution>
            <id>generate-resources</id>
            <phase>generate-resources</phase>
            <configuration>
              <target>
                <mkdir dir="${configs.path}/services"/>
                <echo file="${configs.path}/services/javax.xml.transform.TransformerFactory"
                      message="net.sf.saxon.TransformerFactoryImpl"/>
                <echo file="${configs.path}/services/javax.xml.xpath.XPathFactory"
                      message="net.sf.saxon.xpath.XPathFactoryImpl"/>
                <mkdir dir="${edition.properties}"/>
                <echo file="${edition.properties}/edition.properties">config=net.sf.saxon.Configuration
platform=net.sf.saxon.java.JavaPlatform
		</echo>
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
          <execution>
            <id>fix-sources</id>
            <phase>generate-sources</phase>
             <configuration>
              <target>
                <taskdef resource="com/igormaznitsa/jcp/ant/tasks.properties" classpath="/usr/share/java/jcp.jar"/>
                <preprocess source="sf" destination="src/main/java/net" verbose="false">
                  <global name="EE" value="false"/>
                  <global name="PE" value="false"/>
                  <global name="DOTNET" value="false"/>
                </preprocess>

                <replaceregexp match="import com\.saxonica(.*)" replace="" flags="g">
                  <fileset dir="src/main/java/net"  includes="**/*.java" />
                </replaceregexp>
                <replaceregexp match="import net\.sf\.saxon\.dotnet(.*)" replace="" flags="g">
                  <fileset dir="src/main/java/net"  includes="**/*.java" />
                </replaceregexp>
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.5</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
            <addClasspath>true</addClasspath>
            <classpathLayoutType>custom</classpathLayoutType>
            <customClasspathLayout>/usr/share/java/$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout>
            <mainClass>net.sf.saxon.Transform</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
          <version>2.5</version>
          <configuration>
          <filesets>
            <fileset>
              <directory>src</directory>
            </fileset>
          </filesets>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>