This is a simple skeleton xqDoc App for eXist-db which will be built as an EXPath Package using Maven.
You can use this as a base for your own eXist-db Apps or Libraries.
- Java:
8
- Maven:
3.3+
- Git
exist-db: 5.0.0+
If you want to create an EXPath Package for the app, you can run:
$ mvn package
There will be a .xar
file in the target/
sub-folder.
You can use the Maven Release plugin to publish your applications publicly to Maven Central.
-
You need to register to manage the
groupId
of your organisation on Maven Central, see: create-a-ticket-with-sonatype -
Assuming your Git repo is in-sync, you can simply run the following to upload to Sonatype OSS:
$ mvn release:prepare
$ mvn release:perform
- You need to release the artifacts on the Sonatype OSS web portal, see: releasing-to-central
The App contains:
-
An example XQuery Library Module of user defined functions written in Java.
-
A example XQuery Library Module of user defined functions written in XQuery.
-
A simple Web landing page for the app itself.
-
By default the project is setup for an LGPL 2.1 licensing scheme. You should decide if that is appropriate and if not, make the following modifications:
-
Modify the
licenses
section inpom.xml
. -
Override the
configuration
of thelicense-maven-plugin
inpom.xml
. See: http://code.mycila.com/license-maven-plugin/ -
Potentially remove or replace
LGPL2.1-template.txt
. -
Run
mvn license:check
andmvn license:format
appropriately. -
You should modify the
pom.xml
changing at least thegroupId
andartifactId
to coordinates that are suitable for your organisation. -
You should modify, remove, or append to, the files in:
-
src/main/java
for any XQuery library modules written in Java. -
src/main/xquery
for any XQUery library modules written in Java. -
src/main/xar-resources
for any static files or XQuery modules that are shipped as part of your app.
NOTE: You will also need to modify xar-assembly.xml
to reflect any changes you make to user defined XQuery library modules (whether written in Java or XQuery).