aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/maven.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-02-25 16:22:49 +0100
committerJulien Lepiller <julien@lepiller.eu>2018-03-06 23:06:19 +0100
commitf70666c9ce4f463d47c4d1694ed608bfadb56cd7 (patch)
treeb8981592ed1cbe1b79c06aef9bcdb6b9903a8710 /gnu/packages/maven.scm
parentbca6cf54f46692290aa759e3e741f812a82366ff (diff)
downloadguix-f70666c9ce4f463d47c4d1694ed608bfadb56cd7.tar
guix-f70666c9ce4f463d47c4d1694ed608bfadb56cd7.tar.gz
gnu: Add maven-resolver-connector-basic.
* gnu/packages/maven.scm (maven-resolver-connector-basic): New variable.
Diffstat (limited to 'gnu/packages/maven.scm')
-rw-r--r--gnu/packages/maven.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 6c8f4b9319..81021f6461 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -98,3 +98,33 @@ ease testing of the repository system.")))
(synopsis "Utility classes for the maven repository system")
(description "This package contains a collection of utility classes to
ease usage of the repository system.")))
+
+(define-public maven-resolver-connector-basic
+ (package
+ (inherit maven-resolver-api)
+ (name "maven-resolver-connector-basic")
+ (arguments
+ `(#:jar-name "maven-resolver-connector-basic.jar"
+ #:source-dir "maven-resolver-connector-basic/src/main/java"
+ #:test-dir "maven-resolver-connector-basic/src/test"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'generate-sisu
+ (lambda _
+ (mkdir-p "build/classes/META-INF/sisu")
+ (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
+ (lambda _
+ (display "org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory\n"))))))))
+ (inputs
+ `(("maven-resolver-api" ,maven-resolver-api)
+ ("maven-resolver-spi" ,maven-resolver-spi)
+ ("maven-resolver-util" ,maven-resolver-util)
+ ("java-javax-inject" ,java-javax-inject)))
+ (native-inputs
+ `(("java-junit" ,java-junit)
+ ("java-hamcrest-core" ,java-hamcrest-core)
+ ("maven-resolver-test-util" ,maven-resolver-test-util)))
+ (synopsis "Maven repository connector implementation")
+ (description "This package contains a repository connector implementation
+for repositories using URI-based layouts.")))