From: julien@lepiller.eu
To: 28707@debbugs.gnu.org
Subject: [bug#28707] [PATCH 23/23] gnu: Add java-fasterxml-jackson-dataformat-xml.
Date: Wed, 4 Oct 2017 22:37:35 +0200 [thread overview]
Message-ID: <20171004203735.21155-23-julien@lepiller.eu> (raw)
In-Reply-To: <20171004203735.21155-1-julien@lepiller.eu>
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-fasterxml-jackson-dataformat-xml): New
variable.
---
gnu/packages/java.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 85dce5a6d..19512c267 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5928,3 +5928,60 @@ interface and high-performance Typed Access API.")
(synopsis "Stax XML API implementation")
(description "Woodstox is a stax XML API implementation.")
(license license:asl2.0)))
+
+(define-public java-fasterxml-jackson-dataformat-xml
+ (package
+ (name "java-fasterxml-jackson-dataformat-xml")
+ (version "2.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/FasterXML/"
+ "jackson-dataformat-xml/archive/"
+ "jackson-dataformat-xml-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0x3m9n4kwclcyvxhxjx654qpjza4crphml1q2392qpnbfydx6lnh"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "jackson-dataformat-xml.jar"
+ #:source-dir "src/main/java"
+ #:test-exclude
+ (list "**/failing/**")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'generate-PackageVersion.java
+ (lambda _
+ (let* ((out "src/main/java/com/fasterxml/jackson/dataformat/xml/PackageVersion.java")
+ (in (string-append out ".in")))
+ (copy-file in out)
+ (newline)
+ (substitute* out
+ (("@package@") "com.fasterxml.jackson.dataformat.xml")
+ (("@projectversion@") ,version)
+ (("@projectgroupid@") "com.fasterxml.jackson.dataformat.xml")
+ (("@projectartifactid@") "jackson-dataformat-xml")))))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "src/main/resources" "build/classes"))))))
+ (inputs
+ `(("jackson-annotations" ,java-fasterxml-jackson-annotations)
+ ("jackson-core" ,java-fasterxml-jackson-core)
+ ("jackson-modules-base-jaxb" ,java-fasterxml-jackson-modules-base-jaxb)
+ ("jackson-databind" ,java-fasterxml-jackson-databind)
+ ("stax2-api" ,java-stax2-api)
+ ("woodstox" ,java-woodstox-core)))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)))
+ (home-page "https://github.com/FasterXML/jackson-dataformat-xml")
+ (synopsis "Read and write XML")
+ (description "This package contains Jackson extension component for reading
+and writing XML encoded data.
+
+Further, the goal is to emulate how JAXB data-binding works with \"Code-first\"
+approach (that is, no support is added for \"Schema-first\" approach). Support
+for JAXB annotations is provided by JAXB annotation module; this module
+provides low-level abstractions (@code{JsonParser}, @code{JsonGenerator},
+@code{JsonFactory}) as well as small number of higher level overrides needed to
+make data-binding work.")
+ (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
--
2.14.2
next prev parent reply other threads:[~2017-10-04 20:40 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-04 20:33 [bug#28707] [PATCH] java packages Julien Lepiller
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
2017-10-04 20:37 ` [bug#28707] [PATCH 02/23] gnu: Add java-ops4j-base-monitors julien
2017-10-04 20:37 ` [bug#28707] [PATCH 03/23] gnu: Add java-ops4j-base-io julien
2017-10-04 20:37 ` [bug#28707] [PATCH 04/23] gnu: Add java-ops4j-base-util julien
2017-10-04 20:37 ` [bug#28707] [PATCH 05/23] gnu: Add java-ops4j-base-util-property julien
2017-10-04 20:37 ` [bug#28707] [PATCH 06/23] gnu: Add java-ops4j-base-store julien
2017-10-04 20:37 ` [bug#28707] [PATCH 07/23] gnu: Add java-ops4j-base-spi julien
2017-10-04 20:37 ` [bug#28707] [PATCH 08/23] gnu: Add java-aqute-bnd-annotation julien
2017-10-04 20:37 ` [bug#28707] [PATCH 09/23] gnu: Add java-aqute-libg julien
2017-10-04 20:37 ` [bug#28707] [PATCH 10/23] gnu: Add java-aqute-bndlib julien
2017-10-04 20:37 ` [bug#28707] [PATCH 11/23] gnu: Add java-ops4j-pax-tinybundles julien
2017-10-04 20:37 ` [bug#28707] [PATCH 12/23] gnu: Add java-ops4j-pax-exam-core julien
2017-10-04 20:37 ` [bug#28707] [PATCH 13/23] gnu: Add java-ops4j-pax-exam-core-spi julien
2017-10-04 20:37 ` [bug#28707] [PATCH 14/23] gnu: Add java-ops4j-pax-exam-core-junit julien
2017-10-04 20:37 ` [bug#28707] [PATCH 15/23] gnu: Add java-fasterxml-jackson-annotations julien
2017-10-04 20:37 ` [bug#28707] [PATCH 16/23] gnu: Add java-fasterxml-jackson-core julien
2017-10-04 20:37 ` [bug#28707] [PATCH 17/23] gnu: Add java-fasterxml-jackson-databind julien
2017-10-04 20:37 ` [bug#28707] [PATCH 18/23] gnu: Add java-fasterxml-jackson-modules-base-jaxb julien
2017-10-04 20:37 ` [bug#28707] [PATCH 19/23] gnu: Add java-snakeyaml julien
2017-10-04 20:37 ` [bug#28707] [PATCH 20/23] gnu: Add java-fasterxml-jackson-dataformat-yaml julien
2017-10-04 20:37 ` [bug#28707] [PATCH 21/23] gnu: Add java-stax2-api julien
2017-10-04 20:37 ` [bug#28707] [PATCH 22/23] gnu: Add java-woodstox-core julien
2017-10-04 20:37 ` julien [this message]
2017-10-09 19:36 ` [bug#28707] [PATCH] java packages Leo Famulari
2017-10-10 20:08 ` bug#28707: " 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=20171004203735.21155-23-julien@lepiller.eu \
--to=julien@lepiller.eu \
--cc=28707@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).