Skip to content

Commit bacf388

Browse files
committed
Initial commit
0 parents  commit bacf388

15 files changed

+1103
-0
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
open_collective: existdb
2+

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'maven'
4+
directory: '/'
5+
schedule:
6+
interval: 'daily'

.github/opencollective.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Collective
2+
# ----------
3+
4+
# Define the Open Collective you want to link the repository with.
5+
# Please use the Open Collective slug not the Open Collective URL.
6+
7+
collective: existdb
8+
9+
# Examples
10+
11+
# collective: webpack
12+
13+
# Invalid examples
14+
15+
# collective: https://opencollective.com/webpack
16+
# collective: opencollective.com/webpack
17+
# collective: https://opencollective.com/webpack/contribute/backer-266
18+
19+
# Invitation
20+
# ----------
21+
22+
# Post a comment on issues created by non contributors.
23+
24+
invitation: |-
25+
Hey <author> :wave:,
26+
27+
Thank you for opening an issue. We will get back to you as soon as we can. Have you seen our Open Collective page? Please consider contributing financially to our project. This will help us involve more contributors and get to issues like yours faster.
28+
29+
<link>
30+
31+
> We offer `priority` support for all financial contributors. Don't forget to add `priority` label once you become one! :smile:
32+
33+
# To disable that feature, you can use the following syntax
34+
35+
# invitation: false
36+
37+
# Tiers
38+
# -----
39+
40+
# In this section you can define specific behavior for all supported tiers, ie: "backer" "and sponsor".
41+
42+
tiers:
43+
# # Uncomment this block if you want to activate a custom comment for people contributors to the "backer" tier
44+
# - tiers: ['backer']
45+
# labels: ['priority']
46+
# message: |-
47+
# Hey <author> :wave:,
48+
#
49+
# Thank you for being a "backer". We will handle your issue with priority support. To make sure we don't forget how special you are, we added a `priority` label to your issue.
50+
#
51+
# Thank you again for contributing :tada:!
52+
53+
# # Uncomment this block if you want to activate a custom commentfor people contributors to the "sponsor" tier
54+
# - tiers: ['sponsor']
55+
# labels: ['priority']
56+
# message: |-
57+
# Hey <author> :wave:,
58+
#
59+
# Thank you for being a "sponsor". We will handle your issue with priority support. To make sure we don't forget how special you are, we added a `priority` label to your issue.
60+
#
61+
# Thank you again for contributing :tada:!
62+
63+
# This rule will be catching any contributor whatever their tiers (also custom contributions)
64+
- tiers: '*'
65+
labels: ['priority']
66+
message: |-
67+
Hey <author> :wave:,
68+
69+
Thank you for contributing to our project financially. We will handle your issue with priority support. To make sure we don't forget how special you are, we added a `priority` label to your issue.
70+
71+
Thank you again for contributing :tada:!
72+
73+
# To disable that feature, you can use the following syntax
74+
75+
# tiers: []
76+
77+

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
target/
2+
3+
*.iml
4+
.idea/
5+
.DS_Store

LICENSE

Lines changed: 504 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# MySQL JDBC Driver for eXist-db
2+
3+
Loadable JDBC Driver for MySQL within eXist-db.
4+
5+
The version number of this package mirrors the version number
6+
of the actual JDBC jar file and is updated through the dependabot
7+
pull requests. The dependency for the JDBC driver utilizes the
8+
`project.version` POM property. When dependabot creates a pull
9+
request to update the JDBC driver's version number, it updates the
10+
project's version number. When this happens, then a new release
11+
should be created.
12+

pom.xml

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
<?xml version="1.0"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.exist-db</groupId>
9+
<artifactId>exist-apps-parent</artifactId>
10+
<version>1.12.0</version>
11+
<relativePath/>
12+
</parent>
13+
14+
<groupId>org.exist-db</groupId>
15+
<artifactId>exist-mysql-jdbc-driver</artifactId>
16+
<version>8.0.29</version>
17+
18+
<name>MySQL JDBC Driver</name>
19+
<description>MySQL JDBC Driver for eXist-db</description>
20+
<url>https://exist-db.org/exist-db/jdbc/mysql</url>
21+
22+
<organization>
23+
<name>eXist-db</name>
24+
<url>http://exist-db.org</url>
25+
</organization>
26+
27+
<licenses>
28+
<license>
29+
<name>GNU Lesser General Public License, version 2.1</name>
30+
<url>http://opensource.org/licenses/LGPL-2.1</url>
31+
<distribution>repo</distribution>
32+
</license>
33+
</licenses>
34+
35+
<scm>
36+
<url>https://www.github.com/eXist-db/exist-mysql-jdbc-driver.git</url>
37+
<connection>scm:git:https://www.github.com/eXist-db/exist-mysql-jdbc-driver.git</connection>
38+
<developerConnection>scm:git:https://www.github.com/eXist-db/exist-mysql-jdbc-driver.git</developerConnection>
39+
</scm>
40+
41+
<issueManagement>
42+
<system>GitHub</system>
43+
<url>https://www.github.com/eXist-db/exist-mysql-jdbc-driver/issues</url>
44+
</issueManagement>
45+
46+
<properties>
47+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48+
<project.build.source>1.8</project.build.source>
49+
<project.build.target>1.8</project.build.target>
50+
51+
<exist.version>6.0.1</exist.version>
52+
53+
<!-- used in the EXPath Package Descriptor -->
54+
<package-name>https://exist-db.org/exist-db/jdbc/mysql</package-name>
55+
</properties>
56+
57+
<dependencies>
58+
<dependency>
59+
<groupId>org.exist-db</groupId>
60+
<artifactId>exist-core</artifactId>
61+
<version>${exist.version}</version>
62+
</dependency>
63+
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
64+
<dependency>
65+
<groupId>mysql</groupId>
66+
<artifactId>mysql-connector-java</artifactId>
67+
<version>${project.version}</version>
68+
</dependency>
69+
70+
<!-- test dependencies -->
71+
<dependency>
72+
<groupId>junit</groupId>
73+
<artifactId>junit</artifactId>
74+
<scope>test</scope>
75+
</dependency>
76+
<dependency>
77+
<groupId>org.xmlunit</groupId>
78+
<artifactId>xmlunit-core</artifactId>
79+
<version>2.9.0</version>
80+
<scope>test</scope>
81+
</dependency>
82+
83+
</dependencies>
84+
85+
<reporting>
86+
<plugins>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-changes-plugin</artifactId>
90+
<configuration>
91+
<includeOpenIssues>false</includeOpenIssues>
92+
<onlyMilestoneIssues>false</onlyMilestoneIssues>
93+
<columnNames>Type, Summary</columnNames>
94+
<outputDirectory>${project.basedir}</outputDirectory>
95+
</configuration>
96+
<reportSets>
97+
<reportSet>
98+
<reports>
99+
<report>github-report</report>
100+
</reports>
101+
</reportSet>
102+
</reportSets>
103+
</plugin>
104+
</plugins>
105+
</reporting>
106+
107+
<build>
108+
<resources>
109+
<resource>
110+
<directory>src/main/xar-resources</directory>
111+
<filtering>true</filtering>
112+
<includes>
113+
<include>templates/**</include>
114+
</includes>
115+
</resource>
116+
<resource>
117+
<directory>src/main/xar-resources</directory>
118+
<filtering>false</filtering>
119+
<excludes>
120+
<exclude>templates/**</exclude>
121+
</excludes>
122+
</resource>
123+
</resources>
124+
125+
<plugins>
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-jar-plugin</artifactId>
129+
<configuration>
130+
<archive>
131+
<manifest>
132+
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
133+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
134+
</manifest>
135+
<manifestEntries>
136+
<Build-Tag>${build-tag}</Build-Tag>
137+
<Git-Commit>${build-commit}</Git-Commit>
138+
<Git-Commit-Abbrev>${build-commit-abbrev}</Git-Commit-Abbrev>
139+
<Build-Version>${build-version}</Build-Version>
140+
<Build-Timestamp>${build-tstamp}</Build-Timestamp>
141+
<Source-Repository>${project.scm.connection}</Source-Repository>
142+
<Description>${project.description}</Description>
143+
<Implementation-URL>${project.url}</Implementation-URL>
144+
</manifestEntries>
145+
</archive>
146+
</configuration>
147+
</plugin>
148+
<plugin>
149+
<groupId>ro.kuberam.maven.plugins</groupId>
150+
<artifactId>kuberam-expath-plugin</artifactId>
151+
<executions>
152+
<execution>
153+
<id>create-xar</id>
154+
<phase>package</phase>
155+
<goals>
156+
<goal>make-xar</goal>
157+
</goals>
158+
<configuration>
159+
<descriptor>xar-assembly.xml</descriptor>
160+
<finalName>${package-final-name}</finalName>
161+
</configuration>
162+
</execution>
163+
</executions>
164+
</plugin>
165+
<plugin>
166+
<groupId>org.apache.maven.plugins</groupId>
167+
<artifactId>maven-gpg-plugin</artifactId>
168+
<configuration>
169+
<useAgent>true</useAgent>
170+
</configuration>
171+
</plugin>
172+
<plugin>
173+
<groupId>org.apache.maven.plugins</groupId>
174+
<artifactId>maven-release-plugin</artifactId>
175+
<configuration>
176+
<mavenExecutorId>forked-path
177+
</mavenExecutorId> <!-- avoid a bug with GPG plugin hanging http://jira.codehaus.org/browse/MGPG-9 -->
178+
<autoVersionSubmodules>true</autoVersionSubmodules>
179+
<tagNameFormat>@{project.version}</tagNameFormat>
180+
</configuration>
181+
</plugin>
182+
</plugins>
183+
</build>
184+
185+
<repositories>
186+
<repository>
187+
<id>exist-db</id>
188+
<url>https://repo.evolvedbinary.com/repository/exist-db/</url>
189+
<releases>
190+
<enabled>true</enabled>
191+
</releases>
192+
<snapshots>
193+
<enabled>false</enabled>
194+
</snapshots>
195+
</repository>
196+
<repository>
197+
<id>exist-db-snapshots</id>
198+
<url>https://repo.evolvedbinary.com/repository/exist-db-snapshots/</url>
199+
<releases>
200+
<enabled>false</enabled>
201+
</releases>
202+
<snapshots>
203+
<enabled>true</enabled>
204+
</snapshots>
205+
</repository>
206+
</repositories>
207+
208+
<pluginRepositories>
209+
<pluginRepository>
210+
<id>clojars.org</id>
211+
<url>https://clojars.org/repo</url>
212+
</pluginRepository>
213+
</pluginRepositories>
214+
</project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<collection xmlns="http://exist-db.org/collection-config/1.0">
3+
4+
<!-- enable RESTXQ support -->
5+
<triggers>
6+
<trigger class="org.exist.extensions.exquery.restxq.impl.RestXqTrigger"/>
7+
</triggers>
8+
9+
<!-- TODO add any index definitions that your application requires -->
10+
11+
</collection>

src/main/xar-resources/controller.xql

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
xquery version "3.1";
2+
3+
declare namespace exist = "http://exist.sourceforge.net/NS/exist";
4+
5+
declare variable $exist:path external;
6+
declare variable $exist:resource external;
7+
declare variable $exist:controller external;
8+
declare variable $exist:prefix external;
9+
declare variable $exist:root external;
10+
11+
if ($exist:path eq '') then
12+
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
13+
<redirect url="{concat(request:get-uri(), '/')}"/>
14+
</dispatch>
15+
16+
else if ($exist:path eq "/") then
17+
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
18+
<forward url="{$exist:controller}/index.html"/>
19+
</dispatch>
20+
21+
else
22+
<ignore xmlns="http://exist.sourceforge.net/NS/exist">
23+
<cache-control cache="yes"/>
24+
</ignore>

src/main/xar-resources/icon.png

8.19 KB
Loading

src/main/xar-resources/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Example App</title>
6+
</head>
7+
<body>
8+
<h1>Landing page of your Example App</h1>
9+
<p>TODO - it's entirely up to you! :-)</p>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)