[mod] lost

This commit is contained in:
Andy Bunce 2025-02-04 20:45:45 +00:00
parent 38d12d91c1
commit d37f923d09
8 changed files with 106 additions and 41 deletions

22
scripts/maven.xqm Normal file
View file

@ -0,0 +1,22 @@
(:~ maven access
:
::)
module namespace mvn = 'urn:quodatum:maven:1';
declare variable $mvn:example := <dependency>
<groupId>org.ccil.cowan.tagsoup</groupId>
<artifactId>tagsoup</artifactId>
<version>1.2.1</version>
</dependency>;
declare function mvn:url($dep as element(dependency),$ext as xs:string)
as xs:string {
string-join(
("https://repo.maven.apache.org/maven2/",
string-join($dep/*/string(), "/"),
"/",$dep/artifactId, "-", $dep/version, ".",$ext
))
};