* [bug#52723] [PATCH] gnu: maven: Update to 3.8.4.
@ 2021-12-21 22:42 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 01/26] gnu: Add apache-parent-pom-23 Julien Lepiller
` (27 more replies)
0 siblings, 28 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:42 UTC (permalink / raw)
To: 52723
Hi guix!
This series updates maven to the latest version. I was able to find an
update order for most of the changes, but the last patch still has to
update three packages at the same time, and changes inherited packages
to fix them.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 01/26] gnu: Add apache-parent-pom-23.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 02/26] gnu: Add apache-commons-parent-pom-52 Julien Lepiller
` (26 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/maven-parent-pom.scm (apache-parent-pom-23): New
variable.
---
gnu/packages/maven-parent-pom.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/packages/maven-parent-pom.scm b/gnu/packages/maven-parent-pom.scm
index a47fbfa8c1..9919a66105 100644
--- a/gnu/packages/maven-parent-pom.scm
+++ b/gnu/packages/maven-parent-pom.scm
@@ -84,6 +84,10 @@ (define-public apache-parent-pom-21
(make-apache-parent-pom
"21" "0clcbrq1b2b8sbvlqddyw2dg5niq25dhdma9sk4b0i30hqaipx96"))
+(define-public apache-parent-pom-23
+ (make-apache-parent-pom
+ "23" "05c8i741f0m4311q264zvq0lc6srsyz2x95ga4d7qfd89swkzg9d"))
+
(define (make-apache-commons-parent-pom version hash parent)
(hidden-package
(package
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 02/26] gnu: Add apache-commons-parent-pom-52.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 01/26] gnu: Add apache-parent-pom-23 Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 03/26] gnu: Add plexus-parent-pom-8 Julien Lepiller
` (25 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/maven-parent-pom.scm (apache-commons-parent-pom-52): New variable.
(make-apache-commons-parent-pom): Add optional tag-prefix input.
---
gnu/packages/maven-parent-pom.scm | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/maven-parent-pom.scm b/gnu/packages/maven-parent-pom.scm
index 9919a66105..8a70791353 100644
--- a/gnu/packages/maven-parent-pom.scm
+++ b/gnu/packages/maven-parent-pom.scm
@@ -88,7 +88,8 @@ (define-public apache-parent-pom-23
(make-apache-parent-pom
"23" "05c8i741f0m4311q264zvq0lc6srsyz2x95ga4d7qfd89swkzg9d"))
-(define (make-apache-commons-parent-pom version hash parent)
+(define* (make-apache-commons-parent-pom version hash parent
+ #:key (tag-prefix "commons-parent-"))
(hidden-package
(package
(name "apache-commons-parent-pom")
@@ -97,7 +98,7 @@ (define (make-apache-commons-parent-pom version hash parent)
(method git-fetch)
(uri (git-reference
(url "https://github.com/apache/commons-parent")
- (commit (string-append "commons-parent-" version))))
+ (commit (string-append tag-prefix version))))
(file-name (git-file-name name version))
(sha256 (base32 hash))))
(build-system ant-build-system)
@@ -138,6 +139,12 @@ (define-public apache-commons-parent-pom-50
"50" "0ki8px35dan51ashblpw6rdl27c2fq62slazhslhq3lr4fwlpvxs"
apache-parent-pom-21))
+(define-public apache-commons-parent-pom-52
+ (make-apache-commons-parent-pom
+ "52" "0fb6id9cs9944fjlirjc07bf234bwi96i642px09m9nrfj338n5d"
+ apache-parent-pom-23
+ #:tag-prefix "rel/commons-parent-"))
+
(define-public java-weld-parent-pom
(hidden-package
(package
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 03/26] gnu: Add plexus-parent-pom-8.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 01/26] gnu: Add apache-parent-pom-23 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 02/26] gnu: Add apache-commons-parent-pom-52 Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 04/26] gnu: Add maven-parent-pom-34 Julien Lepiller
` (24 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/maven-parent-pom.scm (plexus-parent-pom-8): New variable.
---
gnu/packages/maven-parent-pom.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/packages/maven-parent-pom.scm b/gnu/packages/maven-parent-pom.scm
index 8a70791353..302a30f338 100644
--- a/gnu/packages/maven-parent-pom.scm
+++ b/gnu/packages/maven-parent-pom.scm
@@ -391,6 +391,10 @@ (define-public plexus-parent-pom-6.1
(make-plexus-parent-pom
"6.1" "1pisca0fxpgbhf4xdgw5mn86622pg3mc5b8760kf9mk2awazshlj"))
+(define-public plexus-parent-pom-8
+ (make-plexus-parent-pom
+ "8" "0ybwdzawa58qg9ag39rxyin24lk9sjcaih6n2yfldfzsbkq6gnww"))
+
(define (make-maven-parent-pom version hash parent)
(hidden-package
(package
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 04/26] gnu: Add maven-parent-pom-34.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (2 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 03/26] gnu: Add plexus-parent-pom-8 Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 05/26] gnu: maven-parent-pom: Fix dependency versions Julien Lepiller
` (23 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/maven-parent-pom.scm (maven-parent-pom-34): New variable.
---
gnu/packages/maven-parent-pom.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/maven-parent-pom.scm b/gnu/packages/maven-parent-pom.scm
index 302a30f338..19f1bc5007 100644
--- a/gnu/packages/maven-parent-pom.scm
+++ b/gnu/packages/maven-parent-pom.scm
@@ -428,6 +428,11 @@ (define (make-maven-parent-pom version hash parent)
tool. This package contains the Maven parent POM.")
(license license:asl2.0))))
+(define-public maven-parent-pom-34
+ (make-maven-parent-pom
+ "34" "1vkmrfwva76k6maf1ljbja5ga4kzav4xc73ymbaf42xaiaknglbc"
+ apache-parent-pom-23))
+
(define-public maven-parent-pom-33
(make-maven-parent-pom
"33" "1b0z2gsvpccgcssys9jbdfwlwq8b5imdwr508f87ssdbfs29lh65"
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 05/26] gnu: maven-parent-pom: Fix dependency versions.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (3 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 04/26] gnu: Add maven-parent-pom-34 Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 06/26] gnu: java-commons-codec: Use latest commons parent Julien Lepiller
` (22 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/maven-parent-pom.scm (make-maven-parent-pom): Add a
replacement option.
(maven-parent-pom-34, maven-parent-pom-33, maven-parent-pom-31,
maven-parent-pom-22, maven-parent-pom-15): Replace
java-plexus-component-annotations version.
---
gnu/packages/maven-parent-pom.scm | 44 ++++++++++++++++++++++---------
1 file changed, 32 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/maven-parent-pom.scm b/gnu/packages/maven-parent-pom.scm
index 19f1bc5007..6d11c84f44 100644
--- a/gnu/packages/maven-parent-pom.scm
+++ b/gnu/packages/maven-parent-pom.scm
@@ -395,7 +395,7 @@ (define-public plexus-parent-pom-8
(make-plexus-parent-pom
"8" "0ybwdzawa58qg9ag39rxyin24lk9sjcaih6n2yfldfzsbkq6gnww"))
-(define (make-maven-parent-pom version hash parent)
+(define* (make-maven-parent-pom version hash parent #:key replacements)
(hidden-package
(package
(name "maven-parent-pom")
@@ -418,6 +418,12 @@ (define (make-maven-parent-pom version hash parent)
(install-pom-file "maven-plugins/pom.xml"))
(add-after 'install 'install-shared
(install-pom-file "maven-shared-components/pom.xml"))
+ ,@(if replacements
+ `((add-before 'install 'fix-pom
+ (lambda _
+ (use-modules (guix build maven pom))
+ (fix-pom-dependencies "pom.xml" '() #:local-packages (quote ,(force replacements))))))
+ '())
(replace 'install
(install-pom-file "pom.xml")))))
(propagated-inputs
@@ -431,17 +437,32 @@ (define (make-maven-parent-pom version hash parent)
(define-public maven-parent-pom-34
(make-maven-parent-pom
"34" "1vkmrfwva76k6maf1ljbja5ga4kzav4xc73ymbaf42xaiaknglbc"
- apache-parent-pom-23))
+ apache-parent-pom-23
+ #:replacements
+ (delay
+ `(("org.codehaus.plexus"
+ ("plexus-component-annotations" .
+ ,(package-version java-plexus-component-annotations)))))))
(define-public maven-parent-pom-33
(make-maven-parent-pom
"33" "1b0z2gsvpccgcssys9jbdfwlwq8b5imdwr508f87ssdbfs29lh65"
- apache-parent-pom-21))
+ apache-parent-pom-21
+ #:replacements
+ (delay
+ `(("org.codehaus.plexus"
+ ("plexus-component-annotations" .
+ ,(package-version java-plexus-component-annotations)))))))
(define-public maven-parent-pom-31
(make-maven-parent-pom
"31" "0skxv669v9ffwbmrmybnn9awkf1g3ylk88bz0hv6g11zpj1a8454"
- apache-parent-pom-19))
+ apache-parent-pom-19
+ #:replacements
+ (delay
+ `(("org.codehaus.plexus"
+ ("plexus-component-annotations" .
+ ,(package-version java-plexus-component-annotations)))))))
(define-public maven-parent-pom-30
(make-maven-parent-pom
@@ -477,7 +498,12 @@ (define-public maven-parent-pom-15
(define-public maven-parent-pom-22
(let ((base (make-maven-parent-pom
"22" "1kgqbyx7ckashy47n9rgyg4asyrvp933hdiknvnad7msq5d4c2jg"
- apache-parent-pom-11)))
+ apache-parent-pom-11
+ #:replacements
+ (delay
+ `(("org.codehaus.plexus"
+ ("plexus-component-annotations" .
+ ,(package-version java-plexus-container-default))))))))
(package
(inherit base)
(arguments
@@ -485,13 +511,7 @@ (define-public maven-parent-pom-22
((#:phases phases)
`(modify-phases ,phases
(delete 'install-plugins)
- (delete 'install-shared)
- (add-before 'install 'fix-versions
- (lambda _
- (substitute* "pom.xml"
- (("1.5.5")
- ,(package-version java-plexus-component-annotations)))
- #t)))))))))
+ (delete 'install-shared))))))))
(define-public maven-plugins-pom-23
(hidden-package
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 06/26] gnu: java-commons-codec: Use latest commons parent.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (4 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 05/26] gnu: maven-parent-pom: Fix dependency versions Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 07/26] gnu: java-plexus-utils: Default to the newer one Julien Lepiller
` (21 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/java.scm (java-commons-codec)[propagated-inputs]: Fix
commons parent version.
---
gnu/packages/java.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 6332b58b98..7c57924231 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -7991,7 +7991,7 @@ (define-public java-commons-codec
(native-inputs
(list java-commons-lang3 java-junit))
(propagated-inputs
- (list apache-commons-parent-pom-50))
+ (list apache-commons-parent-pom-52))
(home-page "https://commons.apache.org/codec/")
(synopsis "Common encoders and decoders such as Base64, Hex, Phonetic and URLs")
(description "The codec package contains simple encoder and decoders for
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 07/26] gnu: java-plexus-utils: Default to the newer one.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (5 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 06/26] gnu: java-commons-codec: Use latest commons parent Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 08/26] gnu: Add java-plexus-build-api Julien Lepiller
` (20 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/java.scm (java-plexus-utils-3.3.0): Rename to...
(java-plexus-utils): ...this.
(java-plexus-utils-3.2.1): New variable.
---
gnu/packages/java.scm | 18 +++++++++---------
gnu/packages/maven.scm | 2 +-
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 7c57924231..8c65d713f6 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -4272,8 +4272,7 @@ (define-public java-junitparams
(define-public java-plexus-utils
(package
(name "java-plexus-utils")
- ;; sisu-build-api needs this version, later versions don't work
- (version "3.2.1")
+ (version "3.3.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -4282,7 +4281,7 @@ (define-public java-plexus-utils
(file-name (git-file-name name version))
(sha256
(base32
- "1w169glixyk94jbczj8jzg897lsab46jihiaa3dhw0p06g35va8b"))))
+ "0d0fq21rzjy0j55kcp8w9k1rbq9rwr0r7cc8239p9jbz54vihp0g"))))
(build-system ant-build-system)
;; FIXME: The default build.xml does not include a target to install
;; javadoc files.
@@ -4333,10 +4332,11 @@ (define-public java-plexus-utils
more.")
(license license:asl2.0)))
-(define-public java-plexus-utils-3.3.0
+(define-public java-plexus-utils-3.2.1
(package
(inherit java-plexus-utils)
- (version "3.3.0")
+ ;; sisu-build-api needs this version, later versions don't work
+ (version "3.2.1")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -4345,7 +4345,7 @@ (define-public java-plexus-utils-3.3.0
(file-name (git-file-name "java-plexus-utils" version))
(sha256
(base32
- "0d0fq21rzjy0j55kcp8w9k1rbq9rwr0r7cc8239p9jbz54vihp0g"))))))
+ "1w169glixyk94jbczj8jzg897lsab46jihiaa3dhw0p06g35va8b"))))))
(define-public java-plexus-interpolation
(package
@@ -4508,7 +4508,7 @@ (define-public java-plexus-io
#t))
(replace 'install (install-from-pom "pom.xml")))))
(propagated-inputs
- (list java-plexus-utils-3.3.0 java-commons-io plexus-parent-pom-5.1))
+ (list java-plexus-utils java-commons-io plexus-parent-pom-5.1))
(inputs
(list java-jsr305))
(native-inputs
@@ -4564,7 +4564,7 @@ (define-public java-plexus-archiver
#t))
(replace 'install (install-from-pom "pom.xml")))))
(propagated-inputs
- (list java-plexus-utils-3.3.0 java-plexus-io java-iq80-snappy
+ (list java-plexus-utils java-plexus-io java-iq80-snappy
java-commons-compress plexus-parent-pom-6.1))
(inputs
`(("java-jsr305" ,java-jsr305)
@@ -5193,7 +5193,7 @@ (define-public java-sisu-build-api
(replace 'install
(install-from-pom "pom.xml")))))
(inputs
- (list java-plexus-utils java-plexus-container-default))
+ (list java-plexus-utils-3.2.1 java-plexus-container-default))
(home-page "https://github.com/sonatype/sisu-build-api/")
(synopsis "Base build API for maven")
(description "This package contains the base build API for maven and
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 479746639a..38b93f43b7 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2907,7 +2907,7 @@ (define-public maven-filtering
(propagated-inputs
(list maven-3.0-core
maven-shared-utils
- java-plexus-utils
+ java-plexus-utils-3.2.1
java-plexus-interpolation
java-sisu-build-api
maven-parent-pom-30))
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 08/26] gnu: Add java-plexus-build-api.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (6 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 07/26] gnu: java-plexus-utils: Default to the newer one Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 09/26] gnu: java-plexus-cipher: Update to 2.0 Julien Lepiller
` (19 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
This is the proper name for java-sisu-build-api.
* gnu/packages/java.scm (java-sisu-build-api): Rename to...
(java-plexus-build-api): ...this.
[source]: Use new source repository.
---
gnu/packages/java.scm | 16 ++++++++--------
gnu/packages/maven.scm | 22 +++++++++++-----------
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8c65d713f6..d22cb2600d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -4335,7 +4335,7 @@ (define-public java-plexus-utils
(define-public java-plexus-utils-3.2.1
(package
(inherit java-plexus-utils)
- ;; sisu-build-api needs this version, later versions don't work
+ ;; plexus-build-api needs this version, later versions don't work
(version "3.2.1")
(source (origin
(method git-fetch)
@@ -5099,7 +5099,7 @@ (define-public java-plexus-sec-dispatcher
("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)
+ ("java-plexus-build-api" ,java-plexus-build-api)
;; modello plugins:
("java-modellop-plugins-java" ,java-modello-plugins-java)
("java-modellop-plugins-xml" ,java-modello-plugins-xml)
@@ -5143,14 +5143,14 @@ (define-public java-plexus-cli
Plexus components.")
(license license:asl2.0)))
-(define-public java-sisu-build-api
+(define-public java-plexus-build-api
(package
- (name "java-sisu-build-api")
+ (name "java-plexus-build-api")
(version "0.0.7")
(source (origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/sonatype/sisu-build-api")
+ (url "https://github.com/codehaus-plexus/plexus-build-api")
(commit (string-append "plexus-build-api-" version))))
(file-name (git-file-name name version))
(sha256
@@ -5158,7 +5158,7 @@ (define-public java-sisu-build-api
"1d5w6c58gkx30d51v7qwv1xrhc0ly76848gihmgshj19yf6yhca0"))))
(build-system ant-build-system)
(arguments
- `(#:jar-name "sisu-build-api.jar"
+ `(#:jar-name "plexus-build-api.jar"
#:source-dir "src/main/java"
#:jdk ,icedtea-8
#:tests? #f; FIXME: how to run the tests?
@@ -5194,7 +5194,7 @@ (define-public java-sisu-build-api
(install-from-pom "pom.xml")))))
(inputs
(list java-plexus-utils-3.2.1 java-plexus-container-default))
- (home-page "https://github.com/sonatype/sisu-build-api/")
+ (home-page "https://github.com/codehaus-plexus/plexus-build-api/")
(synopsis "Base build API for maven")
(description "This package contains the base build API for maven and
a default implementation of it. This API is about scanning files in a
@@ -5238,7 +5238,7 @@ (define-public java-modello-core
#t)))))
(propagated-inputs
(list java-plexus-utils java-plexus-container-default
- java-sisu-build-api))
+ java-plexus-build-api))
(native-inputs
(list java-junit java-plexus-classworlds java-geronimo-xbean-reflect
java-guava))
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 38b93f43b7..14cbf49482 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -1088,7 +1088,7 @@ (define-public maven-model
java-plexus-classworlds
java-guava
java-geronimo-xbean-reflect
- java-sisu-build-api
+ java-plexus-build-api
;; modello plugins:
java-modello-plugins-java
java-modello-plugins-xml
@@ -1166,7 +1166,7 @@ (define-public maven-settings
java-plexus-utils
java-guava
java-geronimo-xbean-reflect
- java-sisu-build-api
+ java-plexus-build-api
;; modello plugins:
java-modello-plugins-java
java-modello-plugins-xml
@@ -1302,7 +1302,7 @@ (define-public maven-repository-metadata
("java-plexus-classworlds" ,java-plexus-classworlds)
("java-guava" ,java-guava)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
+ ("java-plexus-build-api" ,java-plexus-build-api)
;; modello plugins:
("java-modello-plugins-java" ,java-modello-plugins-java)
("java-modello-plugins-xml" ,java-modello-plugins-xml)
@@ -1387,7 +1387,7 @@ (define-public maven-plugin-api
("classworlds" ,java-plexus-classworlds)
("guava" ,java-guava)
("xbean" ,java-geronimo-xbean-reflect)
- ("build-api" ,java-sisu-build-api)
+ ("build-api" ,java-plexus-build-api)
;; modello plugins:
("java" ,java-modello-plugins-java)
("xml" ,java-modello-plugins-xml)
@@ -1491,7 +1491,7 @@ (define-public maven-core-bootstrap
("java-asm" ,java-asm)
("java-plexus-classworlds" ,java-plexus-classworlds)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
+ ("java-plexus-build-api" ,java-plexus-build-api)
("java-modello-plugins-java" ,java-modello-plugins-java)
("java-modello-plugins-xml" ,java-modello-plugins-xml)
("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
@@ -1677,7 +1677,7 @@ (define-public maven-embedder
(native-inputs
`(("java-modello-core" ,java-modello-core)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
+ ("java-plexus-build-api" ,java-plexus-build-api)
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
("java-cglib" ,java-cglib)
@@ -1866,7 +1866,7 @@ (define-public maven-compat
("java-plexus-component-annotations" ,java-plexus-component-annotations)
("java-plexus-classworlds" ,java-plexus-classworlds)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
+ ("java-plexus-build-api" ,java-plexus-build-api)
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
("java-exclispe-sisu-inject" ,java-eclipse-sisu-inject)
("java-javax-inject" ,java-javax-inject)
@@ -2870,7 +2870,7 @@ (define-public maven-filtering
`(#:jar-name "maven-filtering.jar"
#:source-dir "src/main/java"
#:test-dir "src/test"
- ;; this test comes from sisu-build-api, not this package
+ ;; this test comes from plexus-build-api, not this package
#:test-exclude (list "**/IncrementalResourceFilteringTest.java"
"**/Abstract*.java")
#:phases
@@ -2890,7 +2890,7 @@ (define-public maven-filtering
#t))
(add-before 'check 'decompress-tests
(lambda* (#:key inputs #:allow-other-keys)
- (let* ((build-api-source (assoc-ref inputs "java-sisu-build-api-origin"))
+ (let* ((build-api-source (assoc-ref inputs "java-plexus-build-api-origin"))
(classes (string-append build-api-source "/src/test/java")))
(copy-recursively classes "src/test/"))
#t))
@@ -2909,7 +2909,7 @@ (define-public maven-filtering
maven-shared-utils
java-plexus-utils-3.2.1
java-plexus-interpolation
- java-sisu-build-api
+ java-plexus-build-api
maven-parent-pom-30))
(inputs
(list java-jsr305))
@@ -2920,7 +2920,7 @@ (define-public maven-filtering
("java-mockito" ,java-mockito-1)
("java-objenesis" ,java-objenesis)
("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-sisu-build-api-origin" ,(package-source java-sisu-build-api))))
+ ("java-plexus-build-api-origin" ,(package-source java-plexus-build-api))))
(home-page "https://maven.apache.org/shared/maven-filtering")
(synopsis "Shared component for all plugins that needs to filter resources")
(description "This component provides an API to filter resources in Maven
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 09/26] gnu: java-plexus-cipher: Update to 2.0.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (7 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 08/26] gnu: Add java-plexus-build-api Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 10/26] gnu: java-plexus-sec-dispatcher: " Julien Lepiller
` (18 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/java.scm (java-plexus-cipher): Update to 2.0.
(java-plexus-cipher-1.7): New variable.
---
gnu/packages/java.scm | 58 +++++++++++++++++++++++++++++++++----------
1 file changed, 45 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index d22cb2600d..fd7dc76fe9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -4700,17 +4700,58 @@ (define-public java-plexus-component-metadata
(define-public java-plexus-cipher
(package
(name "java-plexus-cipher")
- (version "1.7")
+ (version "2.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/codehaus-plexus/plexus-cipher")
(commit (string-append "plexus-cipher-" version))))
(file-name (git-file-name name version))
+ (sha256
+ (base32
+ "01fipdsm090n8j4207fl8kbxznkgkmkkgyazf53hm1nwn6na5aai"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "plexus-cipher.jar"
+ #:source-dir "src/main/java"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'generate-javax.inject.Named
+ (lambda _
+ (mkdir-p "build/classes/META-INF/sisu")
+ (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
+ (lambda _
+ (display
+ "org.sonatype.plexus.components.cipher.DefaultPlexusCipher\n")))
+ #t))
+ (replace 'install (install-from-pom "pom.xml")))))
+ (inputs
+ `(("java-cdi-api" ,java-cdi-api)
+ ("java-javax-inject" ,java-javax-inject)))
+ (propagated-inputs
+ `(("java-sonatype-spice-parent-pom" ,java-sonatype-spice-parent-pom-15)
+ ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)))
+ (native-inputs
+ `(("java-junit" ,java-junit)))
+ (home-page "https://github.com/sonatype/plexus-cipher")
+ (synopsis "Encryption/decryption Component")
+ (description "Plexus-cipher contains a component to deal with encryption
+and decryption.")
+ (license license:asl2.0)))
+
+(define-public java-plexus-cipher-1.7
+ (package
+ (inherit java-plexus-cipher)
+ (version "1.7")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/codehaus-plexus/plexus-cipher")
+ (commit (string-append "plexus-cipher-" version))))
+ (file-name (git-file-name "java-plexus-cipher" version))
(sha256
(base32
"0m638nzlxbmnbcj5cwdpgs326ab584yv0k803zlx37r6iqwvf6b0"))))
- (build-system ant-build-system)
(arguments
`(#:jar-name "plexus-cipher.jar"
#:source-dir "src/main/java"
@@ -4732,17 +4773,8 @@ (define-public java-plexus-cipher
(("provided") "test"))
#t))
(replace 'install (install-from-pom "pom.xml")))))
- (inputs
- (list java-cdi-api java-javax-inject))
(propagated-inputs
- (list java-sonatype-spice-parent-pom-15))
- (native-inputs
- (list java-junit))
- (home-page "https://github.com/sonatype/plexus-cipher")
- (synopsis "Encryption/decryption Component")
- (description "Plexus-cipher contains a component to deal with encryption
-and decryption.")
- (license license:asl2.0)))
+ (list java-sonatype-spice-parent-pom-15))))
(define-public java-plexus-java
(package
@@ -5089,7 +5121,7 @@ (define-public java-plexus-sec-dispatcher
#t))
(replace 'install (install-from-pom "pom.xml")))))
(propagated-inputs
- (list java-plexus-utils java-plexus-cipher
+ (list java-plexus-utils java-plexus-cipher-1.7
java-sonatype-spice-parent-pom-12))
(native-inputs
`(("java-modello-core" ,java-modello-core)
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 10/26] gnu: java-plexus-sec-dispatcher: Update to 2.0.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (8 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 09/26] gnu: java-plexus-cipher: Update to 2.0 Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 11/26] gnu: Add java-jvnet-parent-pom-3 Julien Lepiller
` (17 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/java.scm (java-plexus-sec-dispatcher): Update to 2.0.
(java-plexus-sec-dispatcher-1.4): New variable.
---
gnu/packages/java.scm | 96 +++++++++++++++++++++++++++---------------
gnu/packages/maven.scm | 6 +--
2 files changed, 64 insertions(+), 38 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index fd7dc76fe9..811ce1d4f8 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5056,17 +5056,15 @@ (define-public java-plexus-digest
(define-public java-plexus-sec-dispatcher
(package
(name "java-plexus-sec-dispatcher")
- (version "1.4") ;; Newest release listed at the Maven Central Repository.
+ (version "2.0")
(source (origin
- ;; This project doesn't tag releases or publish tarballs, so we take
- ;; the "prepare release plexus-sec-dispatcher-1.4" git commit.
(method git-fetch)
(uri (git-reference
- (url "https://github.com/sonatype/plexus-sec-dispatcher/")
- (commit "7db8f880486e192a1c5ea9544e01e756c3d49d0f")))
+ (url "https://github.com/codehaus-plexus/plexus-sec-dispatcher")
+ (commit (string-append "plexus-sec-dispatcher-" version))))
(sha256
(base32
- "1ng4yliy4cqpjr4fxxjbpwyk1wkch5f8vblm1kvwf328s4gibszs"))
+ "0665zcyxkv2knydxgv2dn64zvy1dx9j9af12ds9s64qmzd1rk6pk"))
(file-name (git-file-name name version))))
(arguments
`(#:jar-name "plexus-sec-dispatcher.jar"
@@ -5085,6 +5083,61 @@ (define-public java-plexus-sec-dispatcher
(modello-single-mode file "1.0.0" "xpp3-reader")
(modello-single-mode file "1.0.0" "xpp3-writer"))
#t))
+ (add-before 'build 'generate-javax.inject.Named
+ (lambda _
+ (mkdir-p "build/classes/META-INF/sisu")
+ (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
+ (lambda _
+ (display
+ "org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher\n")))
+ #t))
+ (add-before 'check 'fix-paths
+ (lambda _
+ (copy-recursively "src/test/resources" "target")
+ #t))
+ (replace 'install (install-from-pom "pom.xml")))))
+ (propagated-inputs
+ (list java-plexus-utils java-plexus-cipher plexus-parent-pom-8))
+ (native-inputs
+ (list java-javax-inject
+ java-modello-core
+ ;; for modello
+ java-plexus-container-default
+ java-plexus-classworlds
+ java-plexus-utils
+ java-guava
+ java-geronimo-xbean-reflect
+ ;; modello plugins
+ java-modello-plugins-java
+ java-modello-plugins-xml
+ java-modello-plugins-xpp3
+ ;; for tests
+ java-junit))
+ (build-system ant-build-system)
+ (home-page "https://github.com/sonatype/plexus-sec-dispatcher")
+ (synopsis "Plexus Security Dispatcher Component")
+ (description "This package is the Plexus Security Dispatcher Component.
+This component decrypts a string passed to it.")
+ (license license:asl2.0)))
+
+(define-public java-plexus-sec-dispatcher-1.4
+ (package
+ (inherit java-plexus-sec-dispatcher)
+ (version "1.4")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/codehaus-plexus/plexus-sec-dispatcher")
+ (commit (string-append "sec-dispatcher-" version))))
+ (sha256
+ (base32
+ "1ng4yliy4cqpjr4fxxjbpwyk1wkch5f8vblm1kvwf328s4gibszs"))
+ (file-name (git-file-name "java-plexus-sec-dispatcher" version))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments java-plexus-sec-dispatcher)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (delete 'generate-javax.inject.Named)
(add-before 'build 'generate-components.xml
(lambda _
(mkdir-p "build/classes/META-INF/plexus")
@@ -5113,37 +5166,10 @@ (define-public java-plexus-sec-dispatcher
</configuration>\n
</component>\n
</components>\n
-</component-set>\n")))
- #t))
- (add-before 'check 'fix-paths
- (lambda _
- (copy-recursively "src/test/resources" "target")
- #t))
- (replace 'install (install-from-pom "pom.xml")))))
+</component-set>\n")))))))))
(propagated-inputs
(list java-plexus-utils java-plexus-cipher-1.7
- java-sonatype-spice-parent-pom-12))
- (native-inputs
- `(("java-modello-core" ,java-modello-core)
- ;; for modello:
- ("java-plexus-container-default" ,java-plexus-container-default)
- ("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-plexus-build-api" ,java-plexus-build-api)
- ;; modello plugins:
- ("java-modellop-plugins-java" ,java-modello-plugins-java)
- ("java-modellop-plugins-xml" ,java-modello-plugins-xml)
- ("java-modellop-plugins-xpp3" ,java-modello-plugins-xpp3)
- ;; for tests
- ("java-junit" ,java-junit)))
- (build-system ant-build-system)
- (home-page "https://github.com/sonatype/plexus-sec-dispatcher")
- (synopsis "Plexus Security Dispatcher Component")
- (description "This package is the Plexus Security Dispatcher Component.
-This component decrypts a string passed to it.")
- (license license:asl2.0)))
+ java-sonatype-spice-parent-pom-12))))
(define-public java-plexus-cli
(package
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 14cbf49482..c66cfd0b83 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -1197,7 +1197,7 @@ (define-public maven-settings-builder
(propagated-inputs
(list java-plexus-utils
java-plexus-interpolation
- java-plexus-sec-dispatcher
+ java-plexus-sec-dispatcher-1.4
maven-builder-support
maven-settings
maven-pom))
@@ -1886,7 +1886,7 @@ (define-public maven-compat
("java-qdox" ,java-qdox)
;; tests
("java-plexus-cipher" ,java-plexus-cipher)
- ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher)
+ ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher-1.4)
("java-jsr250" ,java-jsr250)
("java-cdi-api" ,java-cdi-api)
("java-junit" ,java-junit)
@@ -2346,7 +2346,7 @@ (define-public maven-3.0-core
java-plexus-classworlds
java-plexus-component-annotations
java-plexus-container-default
- java-plexus-sec-dispatcher
+ java-plexus-sec-dispatcher-1.4
maven-3.0-pom))))
(define-public maven-3.0-compat
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 11/26] gnu: Add java-jvnet-parent-pom-3.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (9 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 10/26] gnu: java-plexus-sec-dispatcher: " Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 12/26] gnu: java-jsr250: Use proper source Julien Lepiller
` (16 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/java.scm (java-jvnet-parent-pom-3): New variable.
---
gnu/packages/maven-parent-pom.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/maven-parent-pom.scm b/gnu/packages/maven-parent-pom.scm
index 6d11c84f44..e2ebf83572 100644
--- a/gnu/packages/maven-parent-pom.scm
+++ b/gnu/packages/maven-parent-pom.scm
@@ -586,3 +586,32 @@ (define-public maven-components-parent-pom-21
(sha256
(base32
"0cqa072fz55j5xyvixqv8vbd7jsbhb1cd14bzjvm0hbv2wpd9npf"))))))
+
+(define-public java-jvnet-parent-pom-3
+ (hidden-package
+ (package
+ (name "java-jvnet-parent-pom-3")
+ (version "3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://repo1.maven.org/maven2/net/java/"
+ "jvnet-parent/" version "/jvnet-parent-"
+ version ".pom"))
+ (sha256
+ (base32
+ "0nj7958drckwf634cw9gmwgmdi302bya7bas16bbzp9rzag7ix9h"))))
+ (build-system ant-build-system)
+ (arguments
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'unpack)
+ (delete 'configure)
+ (delete 'build)
+ (replace 'install
+ (install-pom-file #$(package-source this-package))))))
+ (home-page "https://mvnrepository.com/artifact/net.java/jvnet-parent")
+ (synopsis "java.net parent pom")
+ (description "This package contains the java.net parent pom file.")
+ (license license:asl2.0))))
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 12/26] gnu: java-jsr250: Use proper source.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (10 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 11/26] gnu: Add java-jvnet-parent-pom-3 Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 13/26] gnu: java-eclipse-sisu-inject: Update to 0.3.5 Julien Lepiller
` (15 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
Sources from maven.org are autogenerated, not actual sources.
* gnu/packages/java.scm (java-jsr250)[source]: Use git repository.
* gnu/packages/maven.scm (maven-embedder): Fix pom to use it.
---
gnu/packages/java.scm | 16 +++++++---------
gnu/packages/maven.scm | 4 ++++
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 811ce1d4f8..f35ec4f0b1 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6564,14 +6564,14 @@ (define-public java-jsr250
(name "java-jsr250")
(version "1.3")
(source (origin
- (method url-fetch)
- (uri (string-append "https://repo1.maven.org/maven2/"
- "javax/annotation/javax.annotation-api/"
- version "/javax.annotation-api-"
- version "-sources.jar"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/javaee/javax.annotation")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "08clh8n4n9wfglf75qsqfjs6yf79f7x6hqx38cn856pksszv50kz"))))
+ "1g22a9d75g01s9yxgdig0ss7i30j4ysnnp08gn4krn0wly4lpqq0"))))
(build-system ant-build-system)
(arguments
`(#:tests? #f ; no tests included
@@ -6579,11 +6579,9 @@ (define-public java-jsr250
#:jar-name "jsr250.jar"
#:phases
(modify-phases %standard-phases
- (add-before 'install 'create-pom
- (generate-pom.xml "pom.xml" "javax.annotation" "jsr250-api" ,version
- #:name "jsr250"))
(replace 'install
(install-from-pom "pom.xml")))))
+ (propagated-inputs (list java-jvnet-parent-pom-3))
(home-page "https://jcp.org/en/jsr/detail?id=250")
(synopsis "Security-related annotations")
(description "This package provides annotations for security. It provides
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index c66cfd0b83..4cad05f3e1 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -1643,6 +1643,10 @@ (define-public maven-embedder
(("srcdir=\"maven-embedder/src/test\"")
"srcdir=\"maven-embedder/src/test/java\""))
#t))
+ (add-before 'install 'fix-pom
+ (lambda _
+ (substitute* "maven-embedder/pom.xml"
+ (("jsr250-api") "javax.annotation-api"))))
(replace 'install
(install-from-pom "maven-embedder/pom.xml")))))
(propagated-inputs
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 13/26] gnu: java-eclipse-sisu-inject: Update to 0.3.5.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (11 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 12/26] gnu: java-jsr250: Use proper source Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 14/26] gnu: java-eclipse-sisu-plexus: " Julien Lepiller
` (14 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/java.scm (java-eclipse-sisu-inject): Update to 0.3.5.
---
gnu/packages/java.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f35ec4f0b1..2671b7ab50 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -13355,7 +13355,7 @@ (define-public java-apache-ivy
(define-public java-eclipse-sisu-inject
(package
(name "java-eclipse-sisu-inject")
- (version "0.3.4")
+ (version "0.3.5")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -13364,7 +13364,7 @@ (define-public java-eclipse-sisu-inject
(file-name (git-file-name name version))
(sha256
(base32
- "16044sizdb0rjbhlfbmcnpds5y7by7dyn9b0c11606aikqi8k3x6"))))
+ "1yh434b8pi8cwmpk825fbvbnkkk2cwd4gxxjaygg8i9j0q3l9zp3"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "eclipse-sisu-inject.jar"
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 14/26] gnu: java-eclipse-sisu-plexus: Update to 0.3.5.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (12 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 13/26] gnu: java-eclipse-sisu-inject: Update to 0.3.5 Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 15/26] gnu: maven-common-artifact-filters: Update to 3.2.0 Julien Lepiller
` (13 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/java.scm (java-eclipse-sisu-plexus): Update to 0.3.5.
---
gnu/packages/java.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 2671b7ab50..af36d9e10f 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -13415,7 +13415,7 @@ (define java-sisu-inject-parent-pom
(define-public java-eclipse-sisu-plexus
(package
(name "java-eclipse-sisu-plexus")
- (version "0.3.4")
+ (version "0.3.5")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -13424,7 +13424,7 @@ (define-public java-eclipse-sisu-plexus
(file-name (git-file-name name version))
(sha256
(base32
- "17mjlajnsqnk07cc58h1qpxrif85yb2m2y0pyba48yjjgikk8r9f"))
+ "0lm5h0dmh41ffcwd32qnk3a87d360am36yq7168ikkyqa8jxkx28"))
(modules '((guix build utils)))
(snippet
'(begin
@@ -13477,7 +13477,8 @@ (define-public java-eclipse-sisu-plexus
(replace 'install
(install-from-pom "org.eclipse.sisu.plexus/pom.xml")))))
(propagated-inputs
- (list java-plexus-classworlds
+ (list java-jsr250
+ java-plexus-classworlds
java-plexus-utils
java-plexus-component-annotations
java-cdi-api
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 15/26] gnu: maven-common-artifact-filters: Update to 3.2.0.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (13 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 14/26] gnu: java-eclipse-sisu-plexus: " Julien Lepiller
@ 2021-12-21 22:44 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 16/26] gnu: java-plexus-container-default-bootstrap: Update to 2.1.0 Julien Lepiller
` (12 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:44 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (maven-common-artifact-filters): Update to
3.2.0.
(maven-common-artifact-filters-3.1.0): New variable.
---
gnu/packages/maven.scm | 40 +++++++++++++++++++++++++++++++---------
1 file changed, 31 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 4cad05f3e1..1be266f9a7 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2585,7 +2585,7 @@ (define-public maven-dependency-tree
(define-public maven-common-artifact-filters
(package
(name "maven-common-artifact-filters")
- (version "3.1.0")
+ (version "3.2.0")
(source (origin
(method url-fetch)
(uri (string-append "mirror://apache/maven/shared/"
@@ -2593,7 +2593,7 @@ (define-public maven-common-artifact-filters
"-source-release.zip"))
(sha256
(base32
- "1cl1qk4r0gp62bjzfm7lml9raz1my2kd4yf0ci0lnfsn0h5qivnb"))))
+ "1mr92s4zz6gf028wiskjg8rd1znxzdnmskg42ac55ifg9v1p1884"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "maven-common-artifact-filters.jar"
@@ -2601,14 +2601,12 @@ (define-public maven-common-artifact-filters
#:tests? #f; require maven-plugin-testing-harness, which requires maven 3.2.
#:phases
(modify-phases %standard-phases
- (add-before 'build 'remove-sisu
+ (add-before 'build 'fix-aether
(lambda _
- ;; Replace sisu with an existing dependency, to prevent a failure
- ;; when rewritting dependency versions
(substitute* "pom.xml"
- (("sisu-inject-plexus") "maven-plugin-api")
- (("org.sonatype.sisu") "org.apache.maven"))
- #t))
+ (("eclipse.aether") "sonatype.aether"))
+ (substitute* "src/main/java/org/apache/maven/shared/artifact/filter/collection/ArtifactTransitivityFilter.java"
+ (("eclipse") "sonatype"))))
(replace 'install
(install-from-pom "pom.xml")))))
(propagated-inputs
@@ -2618,6 +2616,7 @@ (define-public maven-common-artifact-filters
maven-3.0-plugin-api
maven-shared-utils
maven-parent-pom-33
+ java-eclipse-sisu-plexus
java-sonatype-aether-api
java-sonatype-aether-util))
(inputs
@@ -2630,6 +2629,29 @@ (define-public maven-common-artifact-filters
Maven project dependencies.")
(license license:asl2.0)))
+(define-public maven-common-artifact-filters-3.1.0
+ (package
+ (inherit maven-common-artifact-filters)
+ (version "3.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/maven/shared/"
+ "maven-common-artifact-filters-" version
+ "-source-release.zip"))
+ (sha256
+ (base32
+ "1cl1qk4r0gp62bjzfm7lml9raz1my2kd4yf0ci0lnfsn0h5qivnb"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments maven-common-artifact-filters)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (delete 'fix-aether)
+ (add-before 'build 'remove-sisu
+ (lambda _
+ (substitute* "pom.xml"
+ (("sisu-inject-plexus") "maven-plugin-api")
+ (("org.sonatype.sisu") "org.apache.maven"))))))))))
+
(define-public maven-enforcer-api
(package
(name "maven-enforcer-api")
@@ -2781,7 +2803,7 @@ (define-public maven-artifact-transfer
(list java-commons-codec
maven-3.0-artifact
maven-3.0-core
- maven-common-artifact-filters
+ maven-common-artifact-filters-3.1.0
java-plexus-component-annotations
java-plexus-utils
java-slf4j-api
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 16/26] gnu: java-plexus-container-default-bootstrap: Update to 2.1.0.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (14 preceding siblings ...)
2021-12-21 22:44 ` [bug#52723] [PATCH 15/26] gnu: maven-common-artifact-filters: Update to 3.2.0 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 17/26] gnu: Add java-sonatype-aether-api-1.13 Julien Lepiller
` (11 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/java.scm (java-plexus-container-default-bootstrap):
Update to 2.1.0.
(java-plexus-container-default-1.7, java-plexus-containers-parent-pom-1.7)
(java-plexus-component-annotations-1.7, java-plexus-component-metadata-1.7):
New variables.
---
gnu/packages/java.scm | 188 +++++++++++++++++++++++++++++++++++++++--
gnu/packages/maven.scm | 22 ++---
2 files changed, 191 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index af36d9e10f..463cf51bcb 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -4417,7 +4417,7 @@ (define-public java-plexus-classworlds
(define java-plexus-container-default-bootstrap
(package
(name "java-plexus-container-default-bootstrap")
- (version "1.7.1")
+ (version "2.1.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -4426,7 +4426,7 @@ (define java-plexus-container-default-bootstrap
(file-name (git-file-name name version))
(sha256
(base32
- "1316hrp5vqfv0aw7miq2fp0wwy833h66h502h29vnh5sxj27x228"))))
+ "0r9yq67c1hvi1pz5wmx6x6hk5fmavp8a7yal3j5hkaad757firn1"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "container-default.jar"
@@ -4673,7 +4673,82 @@ (define-public java-plexus-component-metadata
(lambda _
(copy-recursively "src/main/resources"
"build/classes/")
- #t)))))
+ #t))
+ (add-before 'build 'reinstate-cli
+ ;; The CLI was removed in 2.1.0, but we still need it to build some
+ ;; maven dependencies, and some parts of maven itself. We can't use
+ ;; the maven plugin for that yet.
+ (lambda _
+ (with-output-to-file "src/main/java/org/codehaus/plexus/metadata/PlexusMetadataGeneratorCli.java"
+ (lambda _
+ ;; Copied from a previous version of this package.
+ (display "package org.codehaus.plexus.metadata;
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.Collections;
+
+import org.apache.commons.cli.CommandLine;
+import org.apache.commons.cli.OptionBuilder;
+import org.apache.commons.cli.Options;
+import org.codehaus.plexus.PlexusContainer;
+import org.codehaus.plexus.tools.cli.AbstractCli;
+
+public class PlexusMetadataGeneratorCli
+ extends AbstractCli
+{
+ public static final char SOURCE_DIRECTORY = 's';
+ public static final char SOURCE_ENCODING = 'e';
+ public static final char CLASSES_DIRECTORY = 'c';
+ public static final char OUTPUT_FILE = 'o';
+ public static final char DESCRIPTORS_DIRECTORY = 'm';
+
+ public static void main( String[] args )
+ throws Exception
+ {
+ new PlexusMetadataGeneratorCli().execute( args );
+ }
+
+ @Override
+ public String getPomPropertiesPath()
+ {
+ return \"META-INF/maven/org.codehaus.plexus/plexus-metadata-generator/pom.properties\";
+ }
+
+ @Override
+ @SuppressWarnings(\"static-access\")
+ public Options buildCliOptions( Options options )
+ {
+ options.addOption( OptionBuilder.withLongOpt( \"source\" ).hasArg().withDescription( \"Source directory.\" ).create( SOURCE_DIRECTORY ) );
+ options.addOption( OptionBuilder.withLongOpt( \"encoding\" ).hasArg().withDescription( \"Source file encoding.\" ).create( SOURCE_ENCODING ) );
+ options.addOption( OptionBuilder.withLongOpt( \"classes\" ).hasArg().withDescription( \"Classes directory.\" ).create( CLASSES_DIRECTORY ) );
+ options.addOption( OptionBuilder.withLongOpt( \"output\" ).hasArg().withDescription( \"Output directory.\" ).create( OUTPUT_FILE ) );
+ options.addOption( OptionBuilder.withLongOpt( \"descriptors\" ).hasArg().withDescription( \"Descriptors directory.\" ).create( DESCRIPTORS_DIRECTORY ) );
+ return options;
+ }
+
+ public void invokePlexusComponent( CommandLine cli, PlexusContainer plexus )
+ throws Exception
+ {
+ MetadataGenerator metadataGenerator = plexus.lookup( MetadataGenerator.class );
+
+ MetadataGenerationRequest request = new MetadataGenerationRequest();
+ request.classesDirectory = new File( cli.getOptionValue( CLASSES_DIRECTORY ) );
+ request.classpath = Collections.emptyList();
+ request.sourceDirectories = Arrays.asList( new String[]{ new File( cli.getOptionValue( SOURCE_DIRECTORY ) ).getAbsolutePath() } );
+ request.sourceEncoding = cli.getOptionValue( SOURCE_ENCODING );
+ request.useContextClassLoader = true;
+ request.outputFile = new File( cli.getOptionValue( OUTPUT_FILE ) );
+ request.componentDescriptorDirectory = new File( cli.getOptionValue( DESCRIPTORS_DIRECTORY ) );
+
+ metadataGenerator.generateDescriptor( request );
+ }
+}")))))
+ (add-before 'check 'fix-test-location
+ (lambda _
+ (substitute* '("src/test/java/org/codehaus/plexus/metadata/DefaultComponentDescriptorWriterTest.java"
+ "src/test/java/org/codehaus/plexus/metadata/merge/ComponentsXmlMergerTest.java")
+ (("target") "build")))))))
(propagated-inputs
`(("java-plexus-container-default" ,java-plexus-container-default)
("java-plexu-component-annotations" ,java-plexus-component-annotations)
@@ -4687,7 +4762,104 @@ (define-public java-plexus-component-metadata
("java-commons-cli" ,java-commons-cli)
("java-qdox" ,java-qdox)
("java-jdom2" ,java-jdom2)
- ("java-asm" ,java-asm)))
+ ("java-asm-8" ,java-asm-8)))
+ (native-inputs
+ (list java-junit java-guava java-geronimo-xbean-reflect))
+ (synopsis "Inversion-of-control container for Maven")
+ (description "The Plexus project provides a full software stack for creating
+and executing software projects. Based on the Plexus container, the
+applications can utilise component-oriented programming to build modular,
+reusable components that can easily be assembled and reused. This package
+provides the Maven plugin generating the component metadata.")))
+
+(define-public java-plexus-container-default-1.7
+ (package
+ (inherit java-plexus-container-default)
+ (version "1.7.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/codehaus-plexus/plexus-containers")
+ (commit (string-append "plexus-containers-" version))))
+ (file-name (git-file-name "java-plexus-container-default" version))
+ (sha256
+ (base32
+ "1316hrp5vqfv0aw7miq2fp0wwy833h66h502h29vnh5sxj27x228"))))))
+
+(define java-plexus-containers-parent-pom-1.7
+ (package
+ (inherit java-plexus-container-default-1.7)
+ (name "java-plexus-containers-parent-pom")
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'build)
+ (replace 'install
+ (install-pom-file "pom.xml")))))
+ (propagated-inputs
+ `(("plexus-parent-pom" ,plexus-parent-pom-4.0)))))
+
+(define-public java-plexus-component-annotations-1.7
+ (package
+ (inherit java-plexus-container-default-1.7)
+ (name "java-plexus-component-annotations")
+ (arguments
+ `(#:jar-name "plexus-component-annotations.jar"
+ #:source-dir "plexus-component-annotations/src/main/java"
+ #:tests? #f; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ (install-from-pom "plexus-component-annotations/pom.xml")))))
+ (propagated-inputs
+ `(("java-plexus-containers-parent-pom-1.7" ,java-plexus-containers-parent-pom-1.7)))
+ (inputs '())
+ (native-inputs '())
+ (synopsis "Plexus descriptors generator")
+ (description "This package is a Maven plugin to generate Plexus descriptors
+from source tags and class annotations.")))
+
+(define-public java-plexus-component-metadata-1.7
+ (package
+ (inherit java-plexus-container-default-1.7)
+ (name "java-plexus-component-metadata")
+ (arguments
+ `(#:jar-name "plexus-component-metadata.jar"
+ #:source-dir "src/main/java"
+ #:test-dir "src/test"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "plexus-component-metadata")
+ #t))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "src/main/resources"
+ "build/classes/")
+ #t))
+ (add-before 'check 'fix-test-location
+ (lambda _
+ (substitute* '("src/test/java/org/codehaus/plexus/metadata/DefaultComponentDescriptorWriterTest.java"
+ "src/test/java/org/codehaus/plexus/metadata/merge/ComponentsXmlMergerTest.java")
+ (("target") "build")))))))
+ (propagated-inputs
+ (list java-plexus-container-default-1.7
+ java-plexus-component-annotations-1.7
+ java-plexus-utils
+ java-plexus-cli
+ java-plexus-cli
+ java-plexus-classworlds
+ maven-plugin-api
+ maven-plugin-annotations
+ maven-core-bootstrap
+ maven-model
+ java-commons-cli
+ java-qdox
+ java-jdom2
+ java-asm))
(native-inputs
(list java-junit java-guava java-geronimo-xbean-reflect))
(synopsis "Inversion-of-control container for Maven")
@@ -4820,9 +4992,9 @@ (define-public java-plexus-java
(list java-asm java-qdox-2-M9 java-javax-inject
plexus-parent-pom-4.0))
(inputs
- (list java-plexus-component-annotations))
+ (list java-plexus-component-annotations-1.7))
(native-inputs
- (list java-plexus-component-metadata java-junit))
+ (list java-plexus-component-metadata-1.7 java-junit))
(home-page "https://codehaus-plexus.github.io/plexus-languages/plexus-java")
(synopsis "Shared language features for Java")
(description "This package contains shared language features of the Java
@@ -4939,9 +5111,9 @@ (define-public java-plexus-compiler-manager
(install-from-pom "plexus-compiler-manager/pom.xml")))))
(propagated-inputs
(list java-plexus-compiler-api java-plexus-compiler-pom
- java-plexus-container-default))
+ java-plexus-container-default-1.7))
(native-inputs
- (list unzip java-plexus-component-metadata))
+ (list unzip java-plexus-component-metadata-1.7))
(synopsis "Compiler management for Plexus Compiler component")
(description "Plexus Compiler is a Plexus component to use different
compilers through a uniform API. This component chooses the compiler
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 1be266f9a7..e62db6cb85 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -293,7 +293,7 @@ (define-public maven-resolver-transport-wagon
("maven-resolver-util" ,maven-resolver-util)
("java-javax-inject" ,java-javax-inject)
("mavne-wagon-provider-api" ,maven-wagon-provider-api)
- ("java-plexus-component-annotation" ,java-plexus-component-annotations)
+ ("java-plexus-component-annotation" ,java-plexus-component-annotations-1.7)
("java-plexus-classworld" ,java-plexus-classworlds)
("java-plexus-plexus-util" ,java-plexus-utils)
("java-slf4j-api" ,java-slf4j-api)
@@ -735,8 +735,8 @@ (define-public maven-wagon-file
(list java-plexus-utils maven-wagon-provider-api))
(native-inputs
`(("maven-wagon-provider-test" ,maven-wagon-provider-test)
- ("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-plexus-component-metadata" ,java-plexus-component-metadata-1.7)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations-1.7)
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
("java-plexus-classworlds" ,java-plexus-classworlds)
@@ -823,8 +823,8 @@ (define-public maven-wagon-http-shared
maven-wagon-provider-api))
(native-inputs
`(("maven-wagon-provider-test" ,maven-wagon-provider-test)
- ("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-plexus-component-metadata" ,java-plexus-component-metadata-1.7)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations-1.7)
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
("java-plexus-classworlds" ,java-plexus-classworlds)
@@ -895,8 +895,8 @@ (define-public maven-wagon-http
maven-wagon-provider-api))
(native-inputs
`(("maven-wagon-provider-test" ,maven-wagon-provider-test)
- ("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-plexus-component-metadata" ,java-plexus-component-metadata-1.7)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations-1.7)
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
("java-plexus-container-default" ,java-plexus-container-default)
("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
@@ -1472,7 +1472,7 @@ (define-public maven-core-bootstrap
("maven-plugin-api" ,maven-plugin-api)
("maven-repository-metadata" ,maven-repository-metadata)
("maven-shared-utils" ,maven-shared-utils)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations-1.7)
("java-plexus-utils" ,java-plexus-utils)
("java-commons-lang3" ,java-commons-lang3)
("java-guava" ,java-guava)
@@ -1590,7 +1590,7 @@ (define-public maven-core
(invoke "ant" "jar")
#t))))))
(native-inputs
- `(("java-plexus-component-metadata" ,java-plexus-component-metadata)
+ `(("java-plexus-component-metadata" ,java-plexus-component-metadata-1.7)
("java-commons-cli" ,java-commons-cli)
("java-plexus-cli" ,java-plexus-cli)
("java-jdom2" ,java-jdom2)
@@ -1867,7 +1867,7 @@ (define-public maven-compat
(native-inputs
`(("java-modello-core" ,java-modello-core)
("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations-1.7)
("java-plexus-classworlds" ,java-plexus-classworlds)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
("java-plexus-build-api" ,java-plexus-build-api)
@@ -1882,7 +1882,7 @@ (define-public maven-compat
("java-modello-plugins-xml" ,java-modello-plugins-xml)
("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
;; metadata
- ("java-plexus-component-metadata" ,java-plexus-component-metadata)
+ ("java-plexus-component-metadata" ,java-plexus-component-metadata-1.7)
("java-commons-cli" ,java-commons-cli)
("java-plexus-cli" ,java-plexus-cli)
("java-jdom2" ,java-jdom2)
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 17/26] gnu: Add java-sonatype-aether-api-1.13.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (15 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 16/26] gnu: java-plexus-container-default-bootstrap: Update to 2.1.0 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 18/26] gnu: Add java-sonatype-aether-spi-1.13 Julien Lepiller
` (10 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (java-sonatype-aether-api-1.13): New variable.
---
gnu/packages/maven.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index e62db6cb85..d8e00e6c61 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -437,6 +437,37 @@ (define-public java-sonatype-aether-impl
(list java-junit java-plexus-component-metadata
java-sonatype-aether-test-util))))
+;; This slightly newer version is also required by some plugins
+(define-public java-sonatype-aether-api-1.13
+ (package
+ (name "java-sonatype-aether-api")
+ (version "1.13.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sonatype/sonatype-aether")
+ (commit (string-append "aether-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1yl34dqhm6ykb7h63gkssyrdxv3dsa3n5b8d8cvy8rh4qsm6p2yb"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "aether-api.jar"
+ #:source-dir "aether-api/src/main/java"
+ #:test-dir "aether-api/src/test"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'install-parent (install-pom-file "pom.xml"))
+ (replace 'install (install-from-pom "aether-api/pom.xml")))))
+ (propagated-inputs
+ `(("java-sonatype-forge-parent-pom" ,java-sonatype-forge-parent-pom-10)))
+ (native-inputs `(("java-junit" ,java-junit)))
+ (home-page "https://github.com/sonatype/sonatype-aether")
+ (synopsis "Maven repository system API")
+ (description "This package contains the API for the maven repository system.")
+ (license license:asl2.0)))
+
;; Again, this old version is required by some maven plugins
(define-public java-eclipse-aether-api
(package
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 18/26] gnu: Add java-sonatype-aether-spi-1.13.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (16 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 17/26] gnu: Add java-sonatype-aether-api-1.13 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 19/26] gnu: Add java-sonatype-aether-test-util-1.13 Julien Lepiller
` (9 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (java-sonatype-aether-spi-1.13): New variable.
---
gnu/packages/maven.scm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index d8e00e6c61..39270566fe 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -468,6 +468,23 @@ (define-public java-sonatype-aether-api-1.13
(description "This package contains the API for the maven repository system.")
(license license:asl2.0)))
+(define-public java-sonatype-aether-spi-1.13
+ (package
+ (inherit java-sonatype-aether-api-1.13)
+ (name "java-sonatype-aether-spi")
+ (arguments
+ `(#:jar-name "aether-spi.jar"
+ #:source-dir "aether-spi/src/main/java"
+ #:tests? #f; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install (install-from-pom "aether-spi/pom.xml")))))
+ (propagated-inputs
+ `(("java-sonatype-aether-api" ,java-sonatype-aether-api-1.13)))
+ (synopsis "Maven repository system SPI")
+ (description "This package contains the service provider interface (SPI)
+for repository system implementations and repository connectors.")))
+
;; Again, this old version is required by some maven plugins
(define-public java-eclipse-aether-api
(package
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 19/26] gnu: Add java-sonatype-aether-test-util-1.13.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (17 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 18/26] gnu: Add java-sonatype-aether-spi-1.13 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 20/26] gnu: Add java-sonatype-aether-util-1.13 Julien Lepiller
` (8 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (java-sonatype-aether-test-util-1.13): New
variable.
---
gnu/packages/maven.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 39270566fe..b73111a5ec 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -485,6 +485,21 @@ (define-public java-sonatype-aether-spi-1.13
(description "This package contains the service provider interface (SPI)
for repository system implementations and repository connectors.")))
+(define-public java-sonatype-aether-test-util-1.13
+ (package
+ (inherit java-sonatype-aether-api-1.13)
+ (name "java-sonatype-aether-test-util")
+ (arguments
+ `(#:jar-name "java-sonatype-aether-test-util.jar"
+ #:source-dir "aether-test-util/src/main/java"
+ #:test-dir "aether-test-util/src/test"))
+ (inputs
+ `(("java-sonatype-aether-api" ,java-sonatype-aether-api-1.13)
+ ("java-sonatype-aether-spi" ,java-sonatype-aether-spi-1.13)))
+ (synopsis "Utility classes for testing the maven repository system")
+ (description "This package contains a collection of utility classes to
+ease testing of the repository system.")))
+
;; Again, this old version is required by some maven plugins
(define-public java-eclipse-aether-api
(package
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 20/26] gnu: Add java-sonatype-aether-util-1.13.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (18 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 19/26] gnu: Add java-sonatype-aether-test-util-1.13 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 21/26] gnu: maven-dependency-tree: Update to 3.1.0 Julien Lepiller
` (7 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (java-sonatype-aether-util-1.13): New variable.
---
gnu/packages/maven.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index b73111a5ec..f85835f73c 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -500,6 +500,26 @@ (define-public java-sonatype-aether-test-util-1.13
(description "This package contains a collection of utility classes to
ease testing of the repository system.")))
+(define-public java-sonatype-aether-util-1.13
+ (package
+ (inherit java-sonatype-aether-api-1.13)
+ (name "java-sonatype-aether-util")
+ (arguments
+ `(#:jar-name "aether-util.jar"
+ #:source-dir "aether-util/src/main/java"
+ #:test-dir "aether-util/src/test"
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install (install-from-pom "aether-util/pom.xml")))))
+ (propagated-inputs
+ `(("java-sonatype-aether-api" ,java-sonatype-aether-api-1.13)))
+ (native-inputs
+ `(("java-junit" ,java-junit)
+ ("java-sonatype-aether-test-util" ,java-sonatype-aether-test-util-1.13)))
+ (synopsis "Utility classes for the maven repository system")
+ (description "This package contains a collection of utility classes to
+ease usage of the repository system.")))
+
;; Again, this old version is required by some maven plugins
(define-public java-eclipse-aether-api
(package
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 21/26] gnu: maven-dependency-tree: Update to 3.1.0.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (19 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 20/26] gnu: Add java-sonatype-aether-util-1.13 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 22/26] guix: maven: Fix java parser Julien Lepiller
` (6 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (maven-dependency-tree): Update to 3.1.0.
---
gnu/packages/maven.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index f85835f73c..3e17e79752 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2634,7 +2634,7 @@ (define-public maven-archiver
(define-public maven-dependency-tree
(package
(name "maven-dependency-tree")
- (version "3.0.1")
+ (version "3.1.0")
(source (origin
(method url-fetch)
(uri (string-append "mirror://apache/maven/shared/"
@@ -2642,20 +2642,21 @@ (define-public maven-dependency-tree
"-source-release.zip"))
(sha256
(base32
- "0mxfslxvcmjs13jl30zhcg672j970dzn6ihh79w9ajh6sfqmlds2"))))
+ "1vhcd3lmbyy8q61c37sqgbllqj4ypkxm344l6pb05mkchlyk5dy5"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "maven-dependency-tree.jar"
#:source-dir "src/main/java"
+ #:tests? #f; no tests
#:phases
(modify-phases %standard-phases
(replace 'install
(install-from-pom "pom.xml")))))
(propagated-inputs
(list maven-3.0-core java-plexus-component-annotations
- maven-parent-pom-30))
+ maven-parent-pom-34))
(inputs
- (list java-sonatype-aether-api java-sonatype-aether-util
+ (list java-sonatype-aether-api-1.13 java-sonatype-aether-util-1.13
java-eclipse-aether-api java-eclipse-aether-util))
(native-inputs
(list unzip java-junit))
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 22/26] guix: maven: Fix java parser.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (20 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 21/26] gnu: maven-dependency-tree: Update to 3.1.0 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 23/26] gnu: maven-enforcer-api: Update to 3.0.0 Julien Lepiller
` (5 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* guix/build/maven/java.scm (comment, comment-chr): Support more comment
styles.
---
guix/build/maven/java.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/guix/build/maven/java.scm b/guix/build/maven/java.scm
index daa4c88045..f8c8e5745d 100644
--- a/guix/build/maven/java.scm
+++ b/guix/build/maven/java.scm
@@ -31,11 +31,14 @@ (define-peg-pattern import-pat all (and (ignore "import") (* WS)
(? (and (ignore "static") (* WS)))
package-name
(* WS) (ignore ";")))
-(define-peg-pattern comment all (and (? (and annotation-pat (* WS))) (ignore "/*")
- comment-part))
+(define-peg-pattern comment all (or
+ (and (? (and annotation-pat (* WS))) (ignore "/*")
+ comment-part)
+ (and (ignore "//") (* (or "\t" (range #\ #\xffff)))
+ (or (ignore "\n") (ignore "\r")) (* WS))))
(define-peg-pattern comment-part body (or (ignore (and (* "*") "/"))
(and (* "*") (+ comment-chr) comment-part)))
-(define-peg-pattern comment-chr body (or "\t" "\n" (range #\ #\)) (range #\+ #\xffff)))
+(define-peg-pattern comment-chr body (or "\t" "\n" "\r" (range #\ #\)) (range #\+ #\xffff)))
(define-peg-pattern inline-comment none (and (ignore "//") (* inline-comment-chr)
(ignore "\n")))
(define-peg-pattern inline-comment-chr body (range #\ #\xffff))
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 23/26] gnu: maven-enforcer-api: Update to 3.0.0.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (21 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 22/26] guix: maven: Fix java parser Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 24/26] gnu: maven-wagon-provider-api: Update to 3.4.3 Julien Lepiller
` (4 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (maven-enforcer-api): Update to 3.0.0.
* gnu/packages/java.scm (java-bsh): Do not patch pom file anymore.
---
gnu/packages/java.scm | 5 -----
gnu/packages/maven.scm | 19 +++++++++----------
2 files changed, 9 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 463cf51bcb..0e6a9601e4 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -11068,11 +11068,6 @@ (define-public java-bsh
#:make-flags (list "-DDATE" "(no date for reproducibility)")
#:phases
(modify-phases %standard-phases
- (add-before 'install 'fix-pom
- (lambda _
- (substitute* "pom.xml"
- (("org.apache-extras.beanshell") "org.beanshell"))
- #t))
(replace 'install
(install-from-pom "pom.xml")))))
(inputs
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 3e17e79752..d0424a3d08 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2739,16 +2739,14 @@ (define-public maven-common-artifact-filters-3.1.0
(define-public maven-enforcer-api
(package
(name "maven-enforcer-api")
- (version "3.0.0-M3")
+ (version "3.0.0")
(source (origin
(method url-fetch)
(uri (string-append "mirror://apache/maven/enforcer/"
"enforcer-" version "-source-release.zip"))
(sha256
(base32
- "014cwj0dqa69nnlzcin8pk9wsjmmg71vsbcpb16cibcjpm6h9wjg"))
- (patches
- (search-patches "maven-enforcer-api-fix-old-dependencies.patch"))))
+ "1479yp58jv788xc1jc2sbdxpajlbvwlk60639vd2h4s8r6x7naqh"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "maven-enforcer-api.jar"
@@ -2782,12 +2780,13 @@ (define maven-enforcer-parent-pom
(add-before 'install 'fix-pom-versions
(lambda _
(substitute* "pom.xml"
- (("3.8.1") ,(package-version java-commons-lang3))
- (("1.4.1") ,(package-version maven-resolver-util))
- (("1.12") ,(package-version java-commons-codec))
- (("<version>2.2</version>")
- ,(string-append "<version>" (package-version maven-dependency-tree)
- "</version>")))))
+ (("<maven.version>.*</maven.version>")
+ ,(string-append "<maven.version>" (package-version maven)
+ "</maven.version>"))
+ (("2.11.0") ,(package-version java-commons-io))
+ (("3.12.0") ,(package-version java-commons-lang3))
+ (("1.6.1") ,(package-version maven-resolver-util))
+ (("1.15") ,(package-version java-commons-codec)))))
(replace 'install
(install-pom-file "pom.xml")))))
(propagated-inputs
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 24/26] gnu: maven-wagon-provider-api: Update to 3.4.3.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (22 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 23/26] gnu: maven-enforcer-api: Update to 3.0.0 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 25/26] gnu: Update maven-artifact-transfer to 0.13.1 Julien Lepiller
` (3 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (maven-wagon-provider-api): Update to 3.4.3.
---
gnu/packages/maven.scm | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index d0424a3d08..f0d387f175 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -713,14 +713,14 @@ (define maven-plugin-tools-parent-pom
(define-public maven-wagon-provider-api
(package
(name "maven-wagon-provider-api")
- (version "3.3.4")
+ (version "3.4.3")
(source (origin
(method url-fetch)
(uri (string-append "https://archive.apache.org/dist/maven/wagon/"
"wagon-" version "-source-release.zip"))
(sha256
(base32
- "1iq9bilgfklzbxwwhzi3f19mkbaaf9dh9f83h3yz5gbmvypask9a"))))
+ "1rnviw0yr4g5902fb8pkd1gyvci4bz7hndjvhkqmnkj7ay0y6mf0"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "maven-wagon-provider-api.jar"
@@ -837,7 +837,6 @@ (define-public maven-wagon-file
("java-commons-cli" ,java-commons-cli)
("java-qdox" ,java-qdox)
("java-jdom2" ,java-jdom2)
- ("java-asm" ,java-asm)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
,@(package-native-inputs maven-wagon-provider-api)))
(synopsis "Wagon provider that gets and puts artifacts using the file system")
@@ -925,7 +924,6 @@ (define-public maven-wagon-http-shared
("java-commons-cli" ,java-commons-cli)
("java-qdox" ,java-qdox)
("java-jdom2" ,java-jdom2)
- ("java-asm" ,java-asm)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
,@(package-native-inputs maven-wagon-provider-api)))
(synopsis "Shared Library for wagon providers supporting HTTP.")
@@ -998,7 +996,6 @@ (define-public maven-wagon-http
("java-commons-cli" ,java-commons-cli)
("java-qdox" ,java-qdox)
("java-jdom2" ,java-jdom2)
- ("java-asm" ,java-asm)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
("java-javaee-servletapi" ,java-javaee-servletapi)
("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 25/26] gnu: Update maven-artifact-transfer to 0.13.1.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (23 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 24/26] gnu: maven-wagon-provider-api: Update to 3.4.3 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 26/26] gnu: maven: Update to 3.8.4 Julien Lepiller
` (2 subsequent siblings)
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (maven-artifact-transfer): Update to 0.13.1.
---
gnu/packages/maven.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index f0d387f175..7f84966750 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2848,7 +2848,7 @@ (define-public maven-enforcer-plugin
(define-public maven-artifact-transfer
(package
(name "maven-artifact-transfer")
- (version "0.12.0")
+ (version "0.13.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://apache/maven/shared/"
@@ -2856,7 +2856,7 @@ (define-public maven-artifact-transfer
"-source-release.zip"))
(sha256
(base32
- "0mkdjr3wnvaxqaq68sy7h4mqlq3xgwwp5s2anj5vbxfy4bsc1ivj"))))
+ "0xl7lkksljacrhmvwf924zb6h0h5zw9494jaz9cz4hll0lrhlpz6"))))
(build-system ant-build-system)
(arguments
`(#:tests? #f; require mockito 2
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH 26/26] gnu: maven: Update to 3.8.4.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (24 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 25/26] gnu: Update maven-artifact-transfer to 0.13.1 Julien Lepiller
@ 2021-12-21 22:45 ` Julien Lepiller
2022-02-02 22:41 ` [bug#52723] [PATCH] " Björn Höfling
2022-02-05 16:16 ` Björn Höfling
27 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2021-12-21 22:45 UTC (permalink / raw)
To: 52723
* gnu/packages/maven.scm (maven-pom): Update to 3.8.4.
(maven-resolver-api): Update to 1.6.3.
* gnu/packages/java.scm (java-modello-core): Update to 1.11.
---
gnu/packages/java.scm | 4 +-
gnu/packages/maven.scm | 94 +++++++++++++++++++++++++++---------------
2 files changed, 63 insertions(+), 35 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 0e6a9601e4..a441a484be 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5434,7 +5434,7 @@ (define-public java-plexus-build-api
(define-public java-modello-core
(package
(name "java-modello-core")
- (version "1.9.1")
+ (version "1.11")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -5443,7 +5443,7 @@ (define-public java-modello-core
(file-name (git-file-name name version))
(sha256
(base32
- "1di6ni42aqllpdvkpyfcw70352vr2i8wf6hd5nhd9kmqjb5dj5j4"))))
+ "18885sim7z9j3wy19i9083y9kc8l9xxl2px823a96q4rnqj5z8s2"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "modello-core.jar"
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 7f84966750..8c5eeb4658 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -38,7 +38,7 @@ (define-module (gnu packages maven)
(define-public maven-resolver-api
(package
(name "maven-resolver-api")
- (version "1.3.1")
+ (version "1.6.3")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -47,7 +47,7 @@ (define-public maven-resolver-api
(file-name (git-file-name name version))
(sha256
(base32
- "1x1gll8nkfl6zgnab78fxxvvhg42b2grxgdh1wp2h4qxsjkxg93d"))))
+ "0hbbbxj14qyq8pccyab96pjqq90jnjmid1pml9kx55c5smfpjn37"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "maven-resolver-api.jar"
@@ -58,7 +58,7 @@ (define-public maven-resolver-api
(replace 'install
(install-from-pom "maven-resolver-api/pom.xml")))))
(native-inputs
- `(("java-asm" ,java-asm)
+ `(("java-asm-8" ,java-asm-8)
("java-cglib" ,java-cglib)
("java-hamcrest-core" ,java-hamcrest-core)
("java-junit" ,java-junit)
@@ -220,6 +220,7 @@ (define-public maven-resolver-impl
(list maven-resolver-api
maven-resolver-spi
maven-resolver-util
+ java-commons-lang3
java-eclipse-sisu-inject
java-javax-inject
java-guice
@@ -305,7 +306,6 @@ (define-public maven-resolver-transport-wagon
maven-resolver-test-util
java-guava
java-cglib
- java-asm
java-aopalliance
java-guice))
(synopsis "Transport implementation for Maven")
@@ -1020,13 +1020,13 @@ (define-public maven-wagon-http
(define maven-pom
(package
(name "maven-pom")
- (version "3.6.1")
+ (version "3.8.4")
(source (origin
(method url-fetch)
(uri (string-append "mirror://apache/maven/"
"maven-3/" version "/source/"
"apache-maven-" version "-src.tar.gz"))
- (sha256 (base32 "0grw9zp166ci53rd7qkyy2qmwmik37xhiz1z84jpm0msyvzj2n82"))
+ (sha256 (base32 "16xbhkhhp05gskgbhrf1ia8riivvkhpk822n9xgnad61f9hzp2r9"))
(modules '((guix build utils)))
(snippet
'(begin
@@ -1100,7 +1100,7 @@ (define maven-pom
(replace 'install
(install-pom-file "pom.xml")))))
(propagated-inputs
- `(("maven-parent-pom-33" ,maven-parent-pom-33)))
+ `(("maven-parent-pom-34" ,maven-parent-pom-34)))
(home-page "https://maven.apache.org/")
(synopsis "Build system")
(description "Apache Maven is a software project management and comprehension
@@ -1149,8 +1149,9 @@ (define-public maven-model
(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-extended-reader")
(modello-single-mode file "4.0.0" "xpp3-writer")
- (modello-single-mode file "4.0.0" "xpp3-extended-reader"))
+ (modello-single-mode file "4.0.0" "xpp3-extended-writer"))
#t))
(replace 'install (install-from-pom "maven-model/pom.xml")))))
(propagated-inputs
@@ -1224,9 +1225,9 @@ (define-public maven-settings
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"))
+ (modello-single-mode file "1.2.0" "java")
+ (modello-single-mode file "1.2.0" "xpp3-reader")
+ (modello-single-mode file "1.2.0" "xpp3-writer"))
#t))
(replace 'install (install-from-pom "maven-settings/pom.xml")))))
(propagated-inputs
@@ -1239,7 +1240,6 @@ (define-public maven-settings
java-plexus-component-annotations
java-guice
java-cglib
- java-asm
java-eclipse-sisu-inject
java-javax-inject
java-plexus-classworlds
@@ -1266,23 +1266,22 @@ (define-public maven-settings-builder
#:test-dir "maven-settings-builder/src/test"
#:phases
(modify-phases %standard-phases
- (add-before 'build 'generate-components.xml
+ (add-before 'build 'generate-sisu-named
(lambda _
- (mkdir-p "build/classes/META-INF/plexus")
- (chmod "components.sh" #o755)
- (invoke "./components.sh" "maven-settings-builder/src/main/java"
- "build/classes/META-INF/plexus/components.xml")
- #t))
+ (mkdir-p "build/classes/META-INF/sisu")
+ (chmod "sisu.sh" #o755)
+ (invoke "./sisu.sh" "maven-settings-builder/src/main/java"
+ "build/classes/META-INF/sisu/javax.inject.Named")))
(replace 'install (install-from-pom "maven-settings-builder/pom.xml")))))
(propagated-inputs
(list java-plexus-utils
java-plexus-interpolation
- java-plexus-sec-dispatcher-1.4
+ java-plexus-sec-dispatcher
maven-builder-support
maven-settings
maven-pom))
(native-inputs
- (list java-junit java-plexus-component-annotations))
+ (list java-junit java-javax-inject java-plexus-component-annotations))
(description "Apache Maven is a software project management and comprehension
tool. This package contains the effective model builder, with profile activation,
inheritance, interpolation, @dots{}")))
@@ -1303,13 +1302,12 @@ (define-public maven-model-builder
(copy-recursively "maven-model-builder/src/main/resources"
"build/classes")
#t))
- (add-before 'build 'generate-components.xml
+ (add-before 'build 'generate-sisu-named
(lambda _
- (mkdir-p "build/classes/META-INF/plexus")
- (chmod "components.sh" #o755)
- (invoke "./components.sh" "maven-model-builder/src/main/java"
- "build/classes/META-INF/plexus/components.xml")
- #t))
+ (mkdir-p "build/classes/META-INF/sisu")
+ (chmod "sisu.sh" #o755)
+ (invoke "./sisu.sh" "maven-model-builder/src/main/java"
+ "build/classes/META-INF/sisu/javax.inject.Named")))
(add-before 'check 'fix-paths
(lambda _
(substitute* (find-files "maven-model-builder/src/test/java" ".*.java")
@@ -1329,9 +1327,10 @@ (define-public maven-model-builder
("java-guava" ,java-guava)
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-powermock-reflect" ,java-powermock-reflect)
+ ("java-objenesis" ,java-objenesis)
("guice" ,java-guice)
("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
("sisu-inject" ,java-eclipse-sisu-inject)
("javax-inject" ,java-javax-inject)
("java-xmlunit" ,java-xmlunit)
@@ -1457,7 +1456,6 @@ (define-public maven-plugin-api
("java-plexus-component-annotations" ,java-plexus-component-annotations)
("guice" ,java-guice)
("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
("sisu-inject" ,java-eclipse-sisu-inject)
("javax-inject" ,java-javax-inject)
("utils" ,java-plexus-utils)))
@@ -1568,7 +1566,6 @@ (define-public maven-core-bootstrap
(native-inputs
`(("java-modello-core" ,java-modello-core)
("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
("java-plexus-classworlds" ,java-plexus-classworlds)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
("java-plexus-build-api" ,java-plexus-build-api)
@@ -1723,6 +1720,9 @@ (define-public maven-embedder
(("srcdir=\"maven-embedder/src/test\"")
"srcdir=\"maven-embedder/src/test/java\""))
#t))
+ (add-before 'check 'disable-failing-test
+ (lambda _
+ (delete-file "maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java")))
(add-before 'install 'fix-pom
(lambda _
(substitute* "maven-embedder/pom.xml"
@@ -1759,13 +1759,13 @@ (define-public maven-embedder
("java-slf4j-simple" ,java-slf4j-simple)
("java-jsr250" ,java-jsr250)))
(native-inputs
- `(("java-modello-core" ,java-modello-core)
+ `(("java-asm-8" ,java-asm-8)
+ ("java-modello-core" ,java-modello-core)
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
("java-plexus-build-api" ,java-plexus-build-api)
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
("java-modello-plugins-java" ,java-modello-plugins-java)
("java-modello-plugins-xml" ,java-modello-plugins-xml)
("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
@@ -1923,6 +1923,9 @@ (define-public maven-compat
"--classes" "build/test-classes"
"--descriptors" "build/test-classes/META-INF")
#t))
+ (add-before 'check 'disable-failing-test
+ (lambda _
+ (delete-file "src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java")))
(add-after 'generate-metadata 'rebuild
(lambda _
(invoke "ant" "jar")
@@ -1970,7 +1973,7 @@ (define-public maven-compat
("java-qdox" ,java-qdox)
;; tests
("java-plexus-cipher" ,java-plexus-cipher)
- ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher-1.4)
+ ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher)
("java-jsr250" ,java-jsr250)
("java-cdi-api" ,java-cdi-api)
("java-junit" ,java-junit)
@@ -2088,7 +2091,7 @@ (define-public maven
java-guice
java-aopalliance
java-cglib
- java-asm
+ java-asm-8
java-eclipse-sisu-inject
java-javax-inject
java-plexus-component-annotations
@@ -2225,6 +2228,16 @@ (define-public maven-3.0-settings-builder
(inherit maven-settings-builder)
(version (package-version maven-3.0-pom))
(source (package-source maven-3.0-pom))
+ (arguments
+ (substitute-keyword-arguments (package-arguments maven-settings-builder)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'build 'generate-components.xml
+ (lambda _
+ (mkdir-p "build/classes/META-INF/plexus")
+ (chmod "components.sh" #o755)
+ (invoke "./components.sh" "maven-settings-builder/src/main/java"
+ "build/classes/META-INF/plexus/components.xml")))))))
(propagated-inputs
`(("java-plexus-component-annotations" ,java-plexus-component-annotations)
,@(filter
@@ -2235,6 +2248,8 @@ (define-public maven-3.0-settings-builder
("maven-pom" `("maven-pom" ,maven-3.0-pom))
("maven-settings" `("maven-settings" ,maven-3.0-settings))
("maven-builder-support" #f)
+ ("java-plexus-sec-dispatcher"
+ `("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher-1.4))
(_ input)))
(package-propagated-inputs maven-settings-builder)))))))
@@ -2243,6 +2258,19 @@ (define-public maven-3.0-model-builder
(inherit maven-model-builder)
(version (package-version maven-3.0-pom))
(source (package-source maven-3.0-pom))
+ (arguments
+ (substitute-keyword-arguments (package-arguments maven-model-builder)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'build 'generate-components.xml
+ (lambda _
+ (mkdir-p "build/classes/META-INF/plexus")
+ (chmod "components.sh" #o755)
+ (invoke "./components.sh" "maven-model-builder/src/main/java"
+ "build/classes/META-INF/plexus/components.xml")))
+ (add-before 'check 'remove-failing-test
+ (lambda _
+ (delete-file "maven-model-builder/src/test/java/org/apache/maven/model/interpolation/StringSearchModelInterpolatorTest.java")))))))
(propagated-inputs
`(("java-plexus-component-annotations" ,java-plexus-component-annotations)
,@(filter
--
2.34.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH] gnu: maven: Update to 3.8.4.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (25 preceding siblings ...)
2021-12-21 22:45 ` [bug#52723] [PATCH 26/26] gnu: maven: Update to 3.8.4 Julien Lepiller
@ 2022-02-02 22:41 ` Björn Höfling
2022-02-05 16:16 ` Björn Höfling
27 siblings, 0 replies; 30+ messages in thread
From: Björn Höfling @ 2022-02-02 22:41 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 52723
[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]
Hi Julien,
On Tue, 21 Dec 2021 23:42:31 +0100
Julien Lepiller <julien@lepiller.eu> wrote:
> Hi guix!
>
> This series updates maven to the latest version. I was able to find an
> update order for most of the changes, but the last patch still has to
> update three packages at the same time, and changes inherited packages
> to fix them.
This is an impressive patch, thanks.
It's still compiling on my side, so I haven't tested the Maven
executable yet, but from looking with the naked eye at the patches, it
looks good to me, with the following remarks:
Of cause, inputs should be written now in the "new" format, as lists
instead of maps.
While linting, I found two possible updates:
java-plexus-utils@3.3.0: can be upgraded to 3.4.1
java-jsr250@1.3: can be upgraded to 1.3.2
I haven't tested if these minor upgrades would break anything of would
be possible without any hassle.
The linter had also some warnings about clashes:
maven-artifact-transfer@0.13.1: propagated inputs apache-commons-parent-pom@52 and apache-commons-parent-pom@39 collide
java-plexus-sec-dispatcher@2.0: propagated inputs plexus-parent-pom@5.1 and plexus-parent-pom@8 collide
maven-enforcer-api@3.0.0: propagated inputs plexus-parent-pom@5.1 and plexus-parent-pom@4.0 collide
maven-wagon-provider-api@3.4.3: propagated inputs /gnu/store/lfqsagcsir9gywp60b1k3lcp6vgyzkaw-maven-wagon-provider-api-3.4.3 and /gnu/store/blhmwm974q97hxxkak9419sm6kscs1yv-maven-wagon-provider-api-3.4.3 collide
I'm not yet sure where they come from, probably somewhere in the
dependency tree?
I will report back when maven is finished compiled.
Thanks,
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* [bug#52723] [PATCH] gnu: maven: Update to 3.8.4.
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
` (26 preceding siblings ...)
2022-02-02 22:41 ` [bug#52723] [PATCH] " Björn Höfling
@ 2022-02-05 16:16 ` Björn Höfling
2022-02-05 21:53 ` bug#52723: " Julien Lepiller
27 siblings, 1 reply; 30+ messages in thread
From: Björn Höfling @ 2022-02-05 16:16 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 52723
[-- Attachment #1: Type: text/plain, Size: 509 bytes --]
On Tue, 21 Dec 2021 23:42:31 +0100
Julien Lepiller <julien@lepiller.eu> wrote:
> Hi guix!
>
> This series updates maven to the latest version. I was able to find an
> update order for most of the changes, but the last patch still has to
> update three packages at the same time, and changes inherited packages
> to fix them.
Hi Julien,
I finished my reviews, maven compiles, runs and also the package
java-jmh, which uses the maven-build-system builds with the new Maven
version.
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* bug#52723: [PATCH] gnu: maven: Update to 3.8.4.
2022-02-05 16:16 ` Björn Höfling
@ 2022-02-05 21:53 ` Julien Lepiller
0 siblings, 0 replies; 30+ messages in thread
From: Julien Lepiller @ 2022-02-05 21:53 UTC (permalink / raw)
To: Björn Höfling; +Cc: 52723-done
Le Sat, 5 Feb 2022 17:16:00 +0100,
Björn Höfling <bjoern.hoefling@bjoernhoefling.de> a écrit :
> On Tue, 21 Dec 2021 23:42:31 +0100
> Julien Lepiller <julien@lepiller.eu> wrote:
>
> > Hi guix!
> >
> > This series updates maven to the latest version. I was able to find
> > an update order for most of the changes, but the last patch still
> > has to update three packages at the same time, and changes
> > inherited packages to fix them.
>
> Hi Julien,
>
> I finished my reviews, maven compiles, runs and also the package
> java-jmh, which uses the maven-build-system builds with the new Maven
> version.
>
> Björn
Thanks, pushed to master.
^ permalink raw reply [flat|nested] 30+ messages in thread
end of thread, other threads:[~2022-02-05 21:54 UTC | newest]
Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-21 22:42 [bug#52723] [PATCH] gnu: maven: Update to 3.8.4 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 01/26] gnu: Add apache-parent-pom-23 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 02/26] gnu: Add apache-commons-parent-pom-52 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 03/26] gnu: Add plexus-parent-pom-8 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 04/26] gnu: Add maven-parent-pom-34 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 05/26] gnu: maven-parent-pom: Fix dependency versions Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 06/26] gnu: java-commons-codec: Use latest commons parent Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 07/26] gnu: java-plexus-utils: Default to the newer one Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 08/26] gnu: Add java-plexus-build-api Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 09/26] gnu: java-plexus-cipher: Update to 2.0 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 10/26] gnu: java-plexus-sec-dispatcher: " Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 11/26] gnu: Add java-jvnet-parent-pom-3 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 12/26] gnu: java-jsr250: Use proper source Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 13/26] gnu: java-eclipse-sisu-inject: Update to 0.3.5 Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 14/26] gnu: java-eclipse-sisu-plexus: " Julien Lepiller
2021-12-21 22:44 ` [bug#52723] [PATCH 15/26] gnu: maven-common-artifact-filters: Update to 3.2.0 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 16/26] gnu: java-plexus-container-default-bootstrap: Update to 2.1.0 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 17/26] gnu: Add java-sonatype-aether-api-1.13 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 18/26] gnu: Add java-sonatype-aether-spi-1.13 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 19/26] gnu: Add java-sonatype-aether-test-util-1.13 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 20/26] gnu: Add java-sonatype-aether-util-1.13 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 21/26] gnu: maven-dependency-tree: Update to 3.1.0 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 22/26] guix: maven: Fix java parser Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 23/26] gnu: maven-enforcer-api: Update to 3.0.0 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 24/26] gnu: maven-wagon-provider-api: Update to 3.4.3 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 25/26] gnu: Update maven-artifact-transfer to 0.13.1 Julien Lepiller
2021-12-21 22:45 ` [bug#52723] [PATCH 26/26] gnu: maven: Update to 3.8.4 Julien Lepiller
2022-02-02 22:41 ` [bug#52723] [PATCH] " Björn Höfling
2022-02-05 16:16 ` Björn Höfling
2022-02-05 21:53 ` bug#52723: " Julien Lepiller
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).