From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekeCg-0005zl-Gm for guix-patches@gnu.org; Sat, 10 Feb 2018 18:05:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekeCe-00073p-Uj for guix-patches@gnu.org; Sat, 10 Feb 2018 18:05:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekeCe-000737-On for guix-patches@gnu.org; Sat, 10 Feb 2018 18:05:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekeCe-00009n-8V for guix-patches@gnu.org; Sat, 10 Feb 2018 18:05:04 -0500 Subject: [bug#30417] [PATCH 06/11] gnu: Add java-modello-core. Resent-Message-ID: From: Julien Lepiller Date: Sun, 11 Feb 2018 00:04:33 +0100 Message-Id: <20180210230438.26794-6-julien@lepiller.eu> In-Reply-To: <20180210234811.40ddec07@lepiller.eu> References: <20180210234811.40ddec07@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30417@debbugs.gnu.org * gnu/packages/java.scm (java-modello-core): New variable. --- gnu/packages/java.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index af9acd71f..d75960831 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -2811,6 +2811,56 @@ a default implementation of it. This API is about scanning files in a project and determining what files need to be rebuilt.") (license license:asl2.0))) +(define-public java-modello-core + (package + (name "java-modello-core") + (version "1.9.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/codehaus-plexus/modello" + "/archive/modello-" version ".tar.gz")) + (sha256 + (base32 + "0l2pvns8pmlrmjm3iknp7gpg3654y1m8qhy55b19sdwdchdcyxfh")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "modello-core.jar" + #:source-dir "modello-core/src/main/java" + #:test-dir "modello-core/src/test" + #:main-class "org.codehaus.modello.ModelloCli" + #:jdk ,icedtea-8 + #:phases + (modify-phases %standard-phases + (add-before 'build 'copy-resources + (lambda _ + (mkdir-p "build/classes/META-INF/plexus") + (copy-file "modello-core/src/main/resources/META-INF/plexus/components.xml" + "build/classes/META-INF/plexus/components.xml") + #t)) + (add-before 'check 'fix-tests + (lambda _ + (substitute* '("modello-core/src/test/java/org/codehaus/modello/core/DefaultModelloCoreTest.java" + "modello-core/src/test/java/org/codehaus/modello/core/io/ModelReaderTest.java") + (("src/test") "modello-core/src/test"))))))) + (inputs + `(("java-plexus-utils" ,java-plexus-utils) + ("java-plexus-container-default-bootstrap" ,java-plexus-container-default-bootstrap) + ("java-sisu-build-api" ,java-sisu-build-api))) + (native-inputs + `(("java-junit" ,java-junit) + ("java-plexus-classworlds" ,java-plexus-classworlds) + ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect) + ("java-guava" ,java-guava))) + (home-page "http://codehaus-plexus.github.io/modello/") + (synopsis "Framework for code generation from a simple model") + (description "Modello is a framework for code generation from a simple model. + +Modello generates code from a simple model format: based on a plugin +architecture, various types of code and descriptors can be generated from the +single model, including Java POJOs, XML/JSON/YAML marshallers/unmarshallers, +XSD and documentation.") + (license license:asl2.0))) + (define-public java-asm (package (name "java-asm") -- 2.16.1