-
Notifications
You must be signed in to change notification settings - Fork 1
/
xar-assembly.xml
122 lines (111 loc) · 4.49 KB
/
xar-assembly.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://expath.org/ns/pkg" name="${package-name}" abbrev="${package-abbrev}" version="${project.version}"
spec="1.0">
<title>${package-title}</title>
<author id="xqdoc">xqDoc</author>
<website>${project.url}</website>
<license>GNU Lesser General Public License, version 2.1</license>
<copyright>true</copyright>
<!-- should be either "application" or "library" -->
<type>application</type>
<!-- type>library</type -->
<status>stable</status>
<tag>${project.artifactId}</tag>
<tag>application</tag>
<category id="apps">Applications</category>
<dependency processor="http://exist-db.org" semver-min="${exist.version}" />
<!-- Collection inside /db/apps where xar-resources will be copied to -->
<target>${package-abbrev}</target>
<prepare>pre-install.xq</prepare>
<finish>post-install.xq</finish>
<permissions user="xqdoc" group="xqdoc" mode="rw-rw-r--"/>
<!-- includes everything in src/main/xar-resources, README.md, and LICENSE -->
<fileSets>
<fileSet>
<directory>${basedir}</directory>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
<fileSet>
<directory>${basedir}/src/main/xar-resources</directory>
</fileSet>
<fileSet>
<directory>${basedir}/src/main/js/frontend/build</directory>
</fileSet>
</fileSets>
<!-- include the XQuery Library modules written in XQuery from this project -->
<xquerySets>
<xquerySet>
<namespace>https://xqdoc.org/exist-db/ns/lib/xqdoc/util</namespace>
<directory>${basedir}/src/main/xquery</directory>
<includes>
<include>xqdoc-module.xqm</include>
</includes>
<outputDirectory>content</outputDirectory>
</xquerySet>
<xquerySet>
<namespace>http://xqdoc.org/resource/xqdoc/docbook</namespace>
<directory>${basedir}/src/main/xquery</directory>
<includes>
<include>xqdoc-docbook-lib.xqm</include>
</includes>
<outputDirectory>content</outputDirectory>
</xquerySet>
<xquerySet>
<namespace>http://xqdoc.org/library/xqdoc/openapi</namespace>
<directory>${basedir}/src/main/xquery</directory>
<includes>
<include>xqdoc2openapi-lib.xqm</include>
</includes>
<outputDirectory>content</outputDirectory>
</xquerySet>
<xquerySet>
<namespace>http://exist-db.org/xquery/dbutil</namespace>
<directory>${basedir}/src/main/xquery</directory>
<includes>
<include>dbutil.xqm</include>
</includes>
<outputDirectory>content</outputDirectory>
</xquerySet>
</xquerySets>
<!-- include the XQuery Library Module written in Java (JAR output) from this project -->
<dependencySets>
<dependencySet>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
</dependencySet>
<!-- https://mvnrepository.com/artifact/org.xqdoc/xqdoc -->
<dependencySet>
<groupId>org.xqdoc</groupId>
<artifactId>xqdoc</artifactId>
<version>${xqdoc.version}</version>
</dependencySet>
<!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
<dependencySet>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>${commons-cli.version}</version>
</dependencySet>
<dependencySet>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr4-version}</version>
</dependencySet>
<!-- https://mvnrepository.com/artifact/joda-time/joda-time -->
<dependencySet>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>${joda-time.version}</version>
</dependencySet>
</dependencySets>
<!-- register the Java module to eXist-db -->
<components>
<resource>
<public-uri>${xqdoc.module.namespace}</public-uri>
<file>urn:java:class:org.xqdoc.exist.${xqdoc.module.java.classname}</file>
</resource>
</components>
</package>