[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
69/110: gnu: Add maven-3.0-model.
From: |
guix-commits |
Subject: |
69/110: gnu: Add maven-3.0-model. |
Date: |
Thu, 16 Jul 2020 22:23:30 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit b909d584445fc41096b76a570fa9a0b6e1875177
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Sat Jun 27 16:08:22 2020 +0200
gnu: Add maven-3.0-model.
* gnu/packages/maven.scm (maven-3.0-model): New variable.
---
gnu/packages/maven.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index eb2a0b3..3a3e7cf 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2098,3 +2098,55 @@ reporting or the build process.")))
`("maven-pom" ,maven-3.0-pom)
input))
(package-propagated-inputs maven-artifact)))))
+
+(define-public maven-3.0-model
+ (package
+ (inherit maven-model)
+ (version (package-version maven-3.0-pom))
+ (source (package-source maven-3.0-pom))
+ (propagated-inputs
+ (map
+ (lambda (input)
+ (if (equal? (car input) "maven-pom")
+ `("maven-pom" ,maven-3.0-pom)
+ input))
+ (package-propagated-inputs maven-artifact)))
+ (arguments
+ `(#:jar-name "maven-model.jar"
+ #:source-dir "maven-model/src/main/java"
+ #:test-dir "maven-model/src/test"
+ #:modules
+ ((guix build ant-build-system)
+ (guix build java-utils)
+ (guix build syscalls)
+ (guix build utils))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'use-newer-model
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; The model has almost not changed, but the newer version is
+ ;; needed to prevent an error in the newer modello we have
+ (let ((source (assoc-ref inputs "maven-source"))
+ (dir (mkdtemp! "maven-source-XXXXXXXX")))
+ (with-directory-excursion dir
+ (invoke "tar" "xf" source)
+ (copy-file (car (find-files "." "maven.mdo"))
+ "../maven-model/src/main/mdo/maven.mdo")))
+ #t))
+ (add-before 'build 'generate-models
+ (lambda* (#:key inputs #:allow-other-keys)
+ (define (modello-single-mode file version mode)
+ (invoke "java" "org.codehaus.modello.ModelloCli"
+ file mode "maven-model/src/main/java" version
+ "false" "true" "UTF-8"))
+ (let ((file "maven-model/src/main/mdo/maven.mdo"))
+ (modello-single-mode file "4.0.0" "java")
+ (modello-single-mode file "4.0.0" "xpp3-reader")
+ (modello-single-mode file "4.0.0" "xpp3-writer")
+ (modello-single-mode file "4.0.0" "xpp3-extended-reader"))
+ #t))
+ (replace 'install
+ (install-from-pom "maven-model/pom.xml")))))
+ (inputs
+ `(("maven-source" ,(package-source maven-pom))
+ ,@(package-inputs maven-model)))))
- 53/110: gnu: java-httpcomponents-httpclient: Update to 4.5.12., (continued)
- 53/110: gnu: java-httpcomponents-httpclient: Update to 4.5.12., guix-commits, 2020/07/16
- 55/110: gnu: maven-shared-utils: Fix /bin/sh invocation., guix-commits, 2020/07/16
- 56/110: gnu: java-modello-core: Propagate inputs., guix-commits, 2020/07/16
- 62/110: gnu: Add java-sonatype-aether-impl., guix-commits, 2020/07/16
- 66/110: gnu: Add java-eclipse-aether-util., guix-commits, 2020/07/16
- 58/110: gnu: Add java-sonatype-aether-api., guix-commits, 2020/07/16
- 64/110: gnu: Add java-eclipse-aether-spi., guix-commits, 2020/07/16
- 72/110: gnu: Add maven-3.0-model-builder., guix-commits, 2020/07/16
- 79/110: gnu: add maven-shared-io., guix-commits, 2020/07/16
- 59/110: gnu: Add java-sonatype-aether-spi., guix-commits, 2020/07/16
- 69/110: gnu: Add maven-3.0-model.,
guix-commits <=
- 71/110: gnu: Add maven-3.0-settings-builder., guix-commits, 2020/07/16
- 76/110: gnu: Add maven-3.0-core., guix-commits, 2020/07/16
- 78/110: gnu: Add maven-shared-utils-3.0., guix-commits, 2020/07/16
- 86/110: gnu: Add maven-enforcer-plugin., guix-commits, 2020/07/16
- 67/110: gnu: Add java-eclipse-aether-impl., guix-commits, 2020/07/16
- 75/110: gnu: Add maven-3.0-aether-provider., guix-commits, 2020/07/16
- 61/110: gnu: Add java-sonatype-aether-util., guix-commits, 2020/07/16
- 65/110: gnu: Add java-eclipse-aether-test-util., guix-commits, 2020/07/16
- 70/110: gnu: Add maven-3.0-settings., guix-commits, 2020/07/16
- 73/110: gnu: Add maven-3.0-plugin-api., guix-commits, 2020/07/16