unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: 31631@debbugs.gnu.org
Subject: [bug#31631] [PATCH 04/10] gnu: Add maven-settings.
Date: Mon, 28 May 2018 22:55:30 +0200	[thread overview]
Message-ID: <20180528205536.31403-4-julien@lepiller.eu> (raw)
In-Reply-To: <20180528205536.31403-1-julien@lepiller.eu>

* gnu/packages/maven.scm (maven-settings): New variable.
---
 gnu/packages/maven.scm | 47 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 028f2b2aa..bb948e72c 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -245,3 +245,50 @@ so really just plain Java objects.")))
     (description "Apache Maven is a software project management and comprehension
 tool.  This package contains a support library for descriptor builders (model,
 setting, toolchains)")))
+
+(define-public maven-settings
+  (package
+    (inherit maven-artifact)
+    (name "maven-settings")
+    (arguments
+     `(#:jar-name "maven-settings.jar"
+       #:source-dir "maven-settings/src/main/java"
+       #:jdk ,icedtea-8
+       #:tests? #f; no tests
+       #:phases
+       (modify-phases %standard-phases
+         (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-settings/src/main/java" version
+                       "false" "true"))
+             (let ((file "maven-settings/src/main/mdo/settings.mdo"))
+               (modello-single-mode file "1.1.0" "java")
+               (modello-single-mode file "1.1.0" "xpp3-reader")
+               (modello-single-mode file "1.1.0" "xpp3-writer"))
+             #t)))))
+    (inputs '())
+    (native-inputs
+     `(("java-modello-core" ,java-modello-core)
+       ;; for modello:
+       ;("container" ,java-plexus-container-default)
+       ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
+       ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+       ("java-guice" ,java-guice)
+       ("java-cglib" ,java-cglib)
+       ("java-asm" ,java-asm)
+       ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
+       ("java-javax-inject" ,java-javax-inject)
+       ("java-plexus-classworlds" ,java-plexus-classworlds)
+       ("java-plexus-utils" ,java-plexus-utils)
+       ("java-guava" ,java-guava)
+       ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
+       ("java-sisu-build-api" ,java-sisu-build-api)
+       ;; modello plugins:
+       ("java-modello-plugins-java" ,java-modello-plugins-java)
+       ("java-modello-plugins-xml" ,java-modello-plugins-xml)
+       ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)))
+    (description "Apache Maven is a software project management and comprehension
+tool.  This package contains strictly the model for Maven settings, that is
+simply plain java objects.")))
-- 
2.17.0

  parent reply	other threads:[~2018-05-28 20:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-28 20:49 [bug#31631] [PATCH] Some maven packages Julien Lepiller
2018-05-28 20:55 ` [bug#31631] [PATCH 01/10] gnu: Add maven-artifact Julien Lepiller
2018-05-28 20:55   ` [bug#31631] [PATCH 02/10] gnu: Add maven-model Julien Lepiller
2018-05-28 20:55   ` [bug#31631] [PATCH 03/10] gnu: Add maven-builder-support Julien Lepiller
2018-05-28 20:55   ` Julien Lepiller [this message]
2018-05-28 20:55   ` [bug#31631] [PATCH 05/10] gnu: Add maven-settings-builder Julien Lepiller
2018-05-28 20:55   ` [bug#31631] [PATCH 06/10] gnu: Add maven-model-builder Julien Lepiller
2018-05-28 20:55   ` [bug#31631] [PATCH 07/10] gnu: Add maven-resolver-impl Julien Lepiller
2018-05-28 20:55   ` [bug#31631] [PATCH 08/10] gnu: Add maven-repository-metadata Julien Lepiller
2018-05-28 20:55   ` [bug#31631] [PATCH 09/10] gnu: Add maven-shared-utils Julien Lepiller
2018-05-28 20:55   ` [bug#31631] [PATCH 10/10] gnu: Add maven-resolver-provider Julien Lepiller
2018-06-09 21:27 ` bug#31631: [PATCH] Some maven packages Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180528205536.31403-4-julien@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=31631@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).