[add] first commit
This commit is contained in:
commit
9b5ea3546a
5 changed files with 219 additions and 0 deletions
23
maven.xqm
Normal file
23
maven.xqm
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
(:~ 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/",
|
||||
replace($dep/groupId,'.',"/"),
|
||||
"/",$dep/artifactId, "-", $dep/version, ".",$ext
|
||||
))
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue