[mod] lost
This commit is contained in:
parent
38d12d91c1
commit
d37f923d09
8 changed files with 106 additions and 41 deletions
22
scripts/maven.xqm
Normal file
22
scripts/maven.xqm
Normal 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
|
||||
))
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue