Skip to content

Commit 66688ef

Browse files
joewizclaude
andcommitted
Remove all Java code — monex is now pure XQuery
eXist-db 7.0 provides WebSocket infrastructure in exist-core (WebSocketModule, ConsoleCompatModule), making monex's Java WebSocket code unnecessary. JMXToken reimplemented in pure XQuery. Removed (all Java source — src/main/java entirely): - org.exist.remoteconsole.RemoteConsoleEndpoint - org.exist.remoteconsole.RemoteConsoleAdapter - org.exist.console.ConsoleAdapter - org.exist.console.xquery.ConsoleModule - org.exist.console.xquery.Log - org.exist.console.xquery.JMXToken - All Java dependencies (exist-core, javax.websocket, jackson, slf4j, etc.) - Java build plugins (maven-javadoc, maven-source) Added: - modules/monex.xqm — pure XQuery monex:jmx-token() using file:read() Updated: - JS clients: /rconsole → /ws (exist-core WebSocket endpoint) - app.xql: console:jmx-token → monex:jmx-token (XQuery module) - exist.processor.version → 7.0.0 (requires WebSocket support) - xar-assembly.xml: removed Java JAR/dependency packaging Follow-up: full de-mavenization (Maven → Node.js/Gulp) per semver.xq model Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d08c81f commit 66688ef

File tree

13 files changed

+44
-675
lines changed

13 files changed

+44
-675
lines changed

pom.xml

Lines changed: 4 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@
5555
<project.build.source>1.8</project.build.source>
5656
<project.build.target>1.8</project.build.target>
5757

58-
<exist.java-api.version>5.4.0</exist.java-api.version> <!-- The eXist-db XQuery Java Module API version -->
59-
<exist.processor.version>6.1.0</exist.processor.version> <!-- The version of eXist-db needed by this EXPath Module -->
58+
<exist.processor.version>7.0.0</exist.processor.version> <!-- The version of eXist-db needed by this EXPath Module (requires WebSocket support) -->
6059

61-
<jackson.version>2.19.1</jackson.version>
62-
<websocket.api.version>1.1</websocket.api.version>
6360
<templating.version>1.0.2</templating.version>
6461

6562
<node.version>v24.11.1</node.version>
@@ -68,50 +65,14 @@
6865
<!-- used in the EXPath Package Descriptor -->
6966
<package-name>http://exist-db.org/apps/monex</package-name>
7067

71-
<console.module.namespace>http://exist-db.org/xquery/console</console.module.namespace>
72-
<console.module.java.classname>org.exist.console.xquery.ConsoleModule</console.module.java.classname>
68+
<!-- No Java module — monex is now pure XQuery -->
7369

7470
<!-- NOTE(AR) Needed just for the license-maven-plugin in this module! -->
7571
<project.copyright.name>The eXist-db Authors</project.copyright.name>
7672
<contact.email>info@exist-db.org</contact.email>
7773
</properties>
7874

79-
<dependencies>
80-
<dependency>
81-
<groupId>org.exist-db</groupId>
82-
<artifactId>exist-core</artifactId>
83-
<version>${exist.java-api.version}</version>
84-
<scope>provided</scope>
85-
</dependency>
86-
<dependency>
87-
<groupId>org.slf4j</groupId>
88-
<artifactId>slf4j-api</artifactId>
89-
<version>2.0.17</version><!-- maven will use 2.x.x when provided -->
90-
<scope>provided</scope>
91-
</dependency>
92-
<dependency>
93-
<groupId>com.google.code.findbugs</groupId>
94-
<artifactId>jsr305</artifactId>
95-
<version>3.0.2</version>
96-
<scope>provided</scope>
97-
</dependency>
98-
<dependency>
99-
<groupId>xml-apis</groupId>
100-
<artifactId>xml-apis</artifactId>
101-
<version>1.4.01</version>
102-
<scope>provided</scope>
103-
</dependency>
104-
<dependency>
105-
<groupId>com.fasterxml.jackson.core</groupId>
106-
<artifactId>jackson-databind</artifactId>
107-
<version>${jackson.version}</version>
108-
</dependency>
109-
<dependency>
110-
<groupId>javax.websocket</groupId>
111-
<artifactId>javax.websocket-api</artifactId>
112-
<version>${websocket.api.version}</version>
113-
</dependency>
114-
</dependencies>
75+
<!-- No Java dependencies — monex is pure XQuery -->
11576

11677
<reporting>
11778
<plugins>
@@ -395,20 +356,7 @@
395356
</execution>
396357
</executions>
397358
</plugin>
398-
<plugin>
399-
<groupId>org.apache.maven.plugins</groupId>
400-
<artifactId>maven-javadoc-plugin</artifactId>
401-
</plugin>
402-
<plugin>
403-
<groupId>org.apache.maven.plugins</groupId>
404-
<artifactId>maven-source-plugin</artifactId>
405-
<executions>
406-
<execution>
407-
<id>attach-sources</id>
408-
<phase>package</phase>
409-
</execution>
410-
</executions>
411-
</plugin>
359+
<!-- No Java source — javadoc and sources plugins removed -->
412360
<plugin>
413361
<groupId>org.apache.maven.plugins</groupId>
414362
<artifactId>maven-gpg-plugin</artifactId>

src/main/java/org/exist/console/ConsoleAdapter.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/main/java/org/exist/console/xquery/ConsoleModule.java

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/main/java/org/exist/console/xquery/JMXToken.java

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)