clojure package is broken

  • Open
  • quality assurance status badge
Details
5 participants
  • Andreas Bauer
  • Ludovic Courtès
  • Roman Scherer
  • Rostislav Svoboda
  • Kristiyan Kanchev
Owner
unassigned
Submitted by
Andreas Bauer
Severity
normal
A
A
Andreas Bauer wrote on 23 Sep 04:21 +0200
(address . bug-guix@gnu.org)
CADMsvoAn1hQrH7uoY7vXF2T332X2FVt_8-aWja7sYzOMZoH4kw@mail.gmail.com
Hi!

Something broke the clojure package. It was working some time ago, and now
it is not.
What no longer works is using JAR files from maven/clojars that contain
CLASS FILES.
The content of class files is no longer being loaded. This bug affects a
lot of libraries that
I use.

I have made a repo to reproduce the bug:

In this repo one can run clojur-X:curl on todays version of guix, and one
will
get this error: Execution error (ClassNotFoundException) at
java.net.URLClassLoader/findClass (REPL:-1). io.netty.channel.epoll.Epoll


Now it can be fixed with time machine:

guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
shell --pure --development --check clojure-tools openjdk coreutils

Then in time-machine run again clojure-X:curl and the demo will work.

The demo can be tried out on virtually any operating system and it will
work, just on guix it is currently broken.

Thanks.
Attachment: file
K
K
Kristiyan Kanchev wrote on 26 Sep 15:50 +0200
(address . 73432@debbugs.gnu.org)
b0e4e3d4-e2d5-4548-a599-3791fb9f0162@gmail.com
Hello,
I was about to open another issue with the same observation.

I'm seeing issues with the project Metabase:
https://github.com/metabase/metabase.When `clojure -M:run`, it fails with:|
Execution error (ClassNotFoundException) at
java.net.URLClassLoader/findClass (URLClassLoader.java:476).
jakarta.servlet.AsyncContext|

|
|

The problem seems to be that Clojure CLI (`clojure-tools` guix package)
doesn't construct proper class path including all transitive
dependencies of the project. I've tried to figure out what might be
causing the issue and I suspect `maven-resolver-*` packages. Clojure CLI
depends on `tools.deps` clojure lib, which itself depends on
`maven-resolver-*`. There is a mention in the `tools.deps` changelog of
reverting `maven-resolver-*` libs in version 0.18.1374 with comment
"Revert update of Maven resolver libs - seeing resolution differences".
Here is the relevant commit:

Up until this date, `tools.deps` lists the older versions of
maven-resolver-* libs in its deps.end file. Since Guix uses the latest
versions of maven-resolver-* libs, I think this is causing the issue.
Attachment: file
L
L
Ludovic Courtès wrote on 3 Oct 16:00 +0200
87bk01thf0.fsf@gnu.org
Hi Andreas and Kristiyan,

Cc’ing Roman and Rostislav who are among the recent committers for this
file.

Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:

Toggle quote (7 lines)
> Now it can be fixed with time machine:
>
> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
> shell --pure --development --check clojure-tools openjdk coreutils
>
> Then in time-machine run again clojure-X:curl and the demo will work.

Kristiyan Kanchev <skrechy@gmail.com> skribis:

Toggle quote (15 lines)
> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase.When `clojure -M:run`, it fails with:
> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476).
> jakarta.servlet.AsyncContext
>
> The problem seems to be that Clojure CLI (`clojure-tools` guix package) doesn't construct proper class path including all transitive
> dependencies of the project. I've tried to figure out what might be causing the issue and I suspect `maven-resolver-*` packages. Clojure
> CLI depends on `tools.deps` clojure lib, which itself depends on `maven-resolver-*`. There is a mention in the `tools.deps` changelog of
> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
> differences".
> Here is the relevant commit:
> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>
> Up until this date, `tools.deps` lists the older versions of maven-resolver-* libs in its deps.end file. Since Guix uses the latest versions of
> maven-resolver-* libs, I think this is causing the issue.

Roman, Rostislav: does that ring a bell?

Thanks,
Ludo’.
R
R
Roman Scherer wrote on 3 Oct 16:41 +0200
(name . Ludovic Courtès)(address . ludo@gnu.org)
864j5ts0yn.fsf@burningswell.com
Hi,

I just tried this and got the same error. I'm not using the Clojure
package from Guix because the AWS S3 support has been ripped out. I use
the package from Nix.

My guess is, this error is also because of the lacking S3 support, or if
not it will break later. The deps.edn file of Metabase contains:

```
;; for metabase/saml20-clj
```

So it's using S3 to resolve Maven dependencies. There is an open issue
for this https://issues.guix.gnu.org/53765and I opened a duplicate of
this a while ago (which I can't find right now). Unfortunaltly this went
nowhwere.

Roman

Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (35 lines)
> Hi Andreas and Kristiyan,
>
> Cc’ing Roman and Rostislav who are among the recent committers for this
> file.
>
> Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:
>
>> Now it can be fixed with time machine:
>>
>> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
>> shell --pure --development --check clojure-tools openjdk coreutils
>>
>> Then in time-machine run again clojure-X:curl and the demo will work.
>
> Kristiyan Kanchev <skrechy@gmail.com> skribis:
>
>> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
>> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476).
>> jakarta.servlet.AsyncContext
>>
>> The problem seems to be that Clojure CLI (`clojure-tools` guix package) doesn't construct proper class path including all transitive
>> dependencies of the project. I've tried to figure out what might be causing the issue and I suspect `maven-resolver-*` packages. Clojure
>> CLI depends on `tools.deps` clojure lib, which itself depends on `maven-resolver-*`. There is a mention in the `tools.deps` changelog of
>> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
>> differences".
>> Here is the relevant commit:
>> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>>
>> Up until this date, `tools.deps` lists the older versions of maven-resolver-* libs in its deps.end file. Since Guix uses the latest versions of
>> maven-resolver-* libs, I think this is causing the issue.
>
> Roman, Rostislav: does that ring a bell?
>
> Thanks,
> Ludo’.
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmb+rSAfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmaLZCACucGL61dasOf5I
vVAA/D0v8gHPU5yLftCPSjyEBWhorO2E0YP+En7Z+28GmE6yGl9Po5gvpk+0TlDH
m77j7Jj0pIYD47EgYa6IcO34qat64JAHX/IyPOWty0sPfoLc8p2j7iw6p88SPEIH
oq0gqi1rV0dkEUokJU04LtQKOvYno1cX/mnIUbZgk26x0G7gClJKVbBy5Ag02iYJ
j2gXsuf0SdZLomyq7JbPGGeHVNy03AjqkriZ7bDssrQVVwpX5vNe+mU+FxVt6YM+
Xe3GNwlrPBaa9n9J+K61vGjwYdyMOhOm1GiEW1ZmPmXo47rzdOh65lwDlORUoyS2
tVRmpbQR
=ns5p
-----END PGP SIGNATURE-----

R
R
Roman Scherer wrote on 3 Oct 16:48 +0200
(name . Ludovic Courtès)(address . ludo@gnu.org)
86zfnlqm3e.fsf@burningswell.com
Ludo recently merged some of my patches that I have re-submitted
recently. There are 4 patches missing, that I haven't submitted
again. They contain the S3 support.

But it's not clear if they can be included inn Guix, because some of the
artifacts are Clojure EDN files generated from AWS API docs. The code to
generate them has not been published by the Clojure team. That was a
blocker back in the day according to Maxim Devos.

The patches are here:


I really should find that thread ...

Roman Scherer <roman.scherer@burningswell.com> writes:

Toggle quote (60 lines)
> Hi,
>
> I just tried this and got the same error. I'm not using the Clojure
> package from Guix because the AWS S3 support has been ripped out. I use
> the package from Nix.
>
> My guess is, this error is also because of the lacking S3 support, or if
> not it will break later. The deps.edn file of Metabase contains:
>
> ```
> {"athena" {:url "https://s3.amazonaws.com/maven-athena"}
> "redshift" {:url "https://s3.amazonaws.com/redshift-maven-repository/release"}
> ;; for metabase/saml20-clj
> "opensaml" {:url "https://build.shibboleth.net/nexus/content/repositories/releases/"}}
> ```
>
> So it's using S3 to resolve Maven dependencies. There is an open issue
> for this https://issues.guix.gnu.org/53765 and I opened a duplicate of
> this a while ago (which I can't find right now). Unfortunaltly this went
> nowhwere.
>
> Roman
>
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Hi Andreas and Kristiyan,
>>
>> Cc’ing Roman and Rostislav who are among the recent committers for this
>> file.
>>
>> Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:
>>
>>> Now it can be fixed with time machine:
>>>
>>> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
>>> shell --pure --development --check clojure-tools openjdk coreutils
>>>
>>> Then in time-machine run again clojure-X:curl and the demo will work.
>>
>> Kristiyan Kanchev <skrechy@gmail.com> skribis:
>>
>>> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
>>> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476).
>>> jakarta.servlet.AsyncContext
>>>
>>> The problem seems to be that Clojure CLI (`clojure-tools` guix package) doesn't construct proper class path including all transitive
>>> dependencies of the project. I've tried to figure out what might be causing the issue and I suspect `maven-resolver-*` packages. Clojure
>>> CLI depends on `tools.deps` clojure lib, which itself depends on `maven-resolver-*`. There is a mention in the `tools.deps` changelog of
>>> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
>>> differences".
>>> Here is the relevant commit:
>>> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>>>
>>> Up until this date, `tools.deps` lists the older versions of maven-resolver-* libs in its deps.end file. Since Guix uses the latest versions of
>>> maven-resolver-* libs, I think this is causing the issue.
>>
>> Roman, Rostislav: does that ring a bell?
>>
>> Thanks,
>> Ludo’.
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmb+rqUfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBma8MCACZLym7zr93a2cI
W/xsFjXpeAqat7C2bn9IXfmOrVSmwOMLguivPgnCm0fLv7XZfbdNSp9UKYRyZdib
8q7zemILbq5VDg6qQhGyW2xiNRcrW6aNJ9SfW4jb/mqIDNqFOVtQznl61myL03jM
sQdmzfklb33IigE+cPl5Ld1AbyjdBkwOzQTJSpjWFOKxmMfqp7wq+PZuGzZO60PQ
6ES44dFMT/dlnj3aDIXKOdzjarhMc+1XCWKkE9MvRoovEpT4V+lgsgOZJw3J5/Qf
a3b7qiLk6fcIIwJgnY4UxjCEl+7n1PYG2fnsvQ0R/z8YWs9IWO1j3B4RooydswNm
6Zxas30o
=Vnhw
-----END PGP SIGNATURE-----

K
K
Kristiyan Kanchev wrote on 4 Oct 10:33 +0200
9173f3ce-ba91-42c5-8755-3c9288d7dd71@gmail.com
Hello Roman,

What do you mean that you're getting the same error? Getting the same
error with Guix Clojure or with Nix Clojure? Metabase or the test
project by Andreas?

I'm fairly confident that the problem is not caused by the S3 transport
because alot of transitive dependencies are missing from the class-path
that are not related to these libraries you cited. I was investigating
the reported class-path from within Clojure with
https://github.com/clojure/java.classpath,which is also dependency for
Metabase, so you could try it in a nREPL session.

I'm currently trying to  maven-resolver-provider from 3.9 to 3.8 and
will report results, hopefully soon -- I'm new to Guix and need some
more time. If it works out, I'll try to push patches.

Thanks,
Kriss

On 10/3/24 17:48, Roman Scherer wrote:
Toggle quote (75 lines)
> Ludo recently merged some of my patches that I have re-submitted
> recently. There are 4 patches missing, that I haven't submitted
> again. They contain the S3 support.
>
> But it's not clear if they can be included inn Guix, because some of the
> artifacts are Clojure EDN files generated from AWS API docs. The code to
> generate them has not been published by the Clojure team. That was a
> blocker back in the day according to Maxim Devos.
>
> The patches are here:
>
> https://github.com/r0man/guix/commits/clojure-s3-transport/
>
> I really should find that thread ...
>
> Roman Scherer <roman.scherer@burningswell.com> writes:
>
>> Hi,
>>
>> I just tried this and got the same error. I'm not using the Clojure
>> package from Guix because the AWS S3 support has been ripped out. I use
>> the package from Nix.
>>
>> My guess is, this error is also because of the lacking S3 support, or if
>> not it will break later. The deps.edn file of Metabase contains:
>>
>> ```
>> {"athena" {:url "https://s3.amazonaws.com/maven-athena"}
>> "redshift" {:url "https://s3.amazonaws.com/redshift-maven-repository/release"}
>> ;; for metabase/saml20-clj
>> "opensaml" {:url "https://build.shibboleth.net/nexus/content/repositories/releases/"}}
>> ```
>>
>> So it's using S3 to resolve Maven dependencies. There is an open issue
>> for this https://issues.guix.gnu.org/53765 and I opened a duplicate of
>> this a while ago (which I can't find right now). Unfortunaltly this went
>> nowhwere.
>>
>> Roman
>>
>> Ludovic Courtès <ludo@gnu.org> writes:
>>
>>> Hi Andreas and Kristiyan,
>>>
>>> Cc’ing Roman and Rostislav who are among the recent committers for this
>>> file.
>>>
>>> Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:
>>>
>>>> Now it can be fixed with time machine:
>>>>
>>>> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
>>>> shell --pure --development --check clojure-tools openjdk coreutils
>>>>
>>>> Then in time-machine run again clojure-X:curl and the demo will work.
>>> Kristiyan Kanchev <skrechy@gmail.com> skribis:
>>>
>>>> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
>>>> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476).
>>>> jakarta.servlet.AsyncContext
>>>>
>>>> The problem seems to be that Clojure CLI (`clojure-tools` guix package) doesn't construct proper class path including all transitive
>>>> dependencies of the project. I've tried to figure out what might be causing the issue and I suspect `maven-resolver-*` packages. Clojure
>>>> CLI depends on `tools.deps` clojure lib, which itself depends on `maven-resolver-*`. There is a mention in the `tools.deps` changelog of
>>>> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
>>>> differences".
>>>> Here is the relevant commit:
>>>> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>>>>
>>>> Up until this date, `tools.deps` lists the older versions of maven-resolver-* libs in its deps.end file. Since Guix uses the latest versions of
>>>> maven-resolver-* libs, I think this is causing the issue.
>>> Roman, Rostislav: does that ring a bell?
>>>
>>> Thanks,
>>> Ludo’.
R
R
Roman Scherer wrote on 4 Oct 12:51 +0200
(name . Kristiyan Kanchev)(address . skrechy@gmail.com)
87jzeorvjd.fsf@burningswell.com
Hi Kristiyan,

sorry for not being clear. I tried the metabase repository with the Guix
and the Nix package. The Nix package works, but the one from Guix not.

I also just tried the clojure-guix-broken repo now (I haven't seen this
yesterday) with the Guix package, and it didn't find the
class. Unfortunatly, I have no idea why the class files are not being
found.

After seeing all those:

Warning: failed to load the S3TransporterFactory class

I thought it might be related. But maybe not.

I hope you find the issue.

Roman

Kristiyan Kanchev <skrechy@gmail.com> writes:

Toggle quote (104 lines)
> Hello Roman,
>
> What do you mean that you're getting the same error? Getting the same
> error with Guix Clojure or with Nix Clojure? Metabase or the test
> project by Andreas?
>
> I'm fairly confident that the problem is not caused by the S3
> transport because alot of transitive dependencies are missing from the
> class-path that are not related to these libraries you cited. I was
> investigating the reported class-path from within Clojure with
> https://github.com/clojure/java.classpath, which is also dependency
> for Metabase, so you could try it in a nREPL session.
>
> I'm currently trying to  maven-resolver-provider from 3.9 to 3.8 and
> will report results, hopefully soon -- I'm new to Guix and need some
> more time. If it works out, I'll try to push patches.
>
> Thanks,
> Kriss
>
> On 10/3/24 17:48, Roman Scherer wrote:
>> Ludo recently merged some of my patches that I have re-submitted
>> recently. There are 4 patches missing, that I haven't submitted
>> again. They contain the S3 support.
>>
>> But it's not clear if they can be included inn Guix, because some of the
>> artifacts are Clojure EDN files generated from AWS API docs. The code to
>> generate them has not been published by the Clojure team. That was a
>> blocker back in the day according to Maxim Devos.
>>
>> The patches are here:
>>
>> https://github.com/r0man/guix/commits/clojure-s3-transport/
>>
>> I really should find that thread ...
>>
>> Roman Scherer <roman.scherer@burningswell.com> writes:
>>
>>> Hi,
>>>
>>> I just tried this and got the same error. I'm not using the Clojure
>>> package from Guix because the AWS S3 support has been ripped out. I use
>>> the package from Nix.
>>>
>>> My guess is, this error is also because of the lacking S3 support, or if
>>> not it will break later. The deps.edn file of Metabase contains:
>>>
>>> ```
>>> {"athena" {:url "https://s3.amazonaws.com/maven-athena"}
>>> "redshift" {:url "https://s3.amazonaws.com/redshift-maven-repository/release"}
>>> ;; for metabase/saml20-clj
>>> "opensaml" {:url "https://build.shibboleth.net/nexus/content/repositories/releases/"}}
>>> ```
>>>
>>> So it's using S3 to resolve Maven dependencies. There is an open issue
>>> for this https://issues.guix.gnu.org/53765 and I opened a duplicate of
>>> this a while ago (which I can't find right now). Unfortunaltly this went
>>> nowhwere.
>>>
>>> Roman
>>>
>>> Ludovic Courtès <ludo@gnu.org> writes:
>>>
>>>> Hi Andreas and Kristiyan,
>>>>
>>>> Cc’ing Roman and Rostislav who are among the recent committers for this
>>>> file.
>>>>
>>>> Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:
>>>>
>>>>> Now it can be fixed with time machine:
>>>>>
>>>>> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
>>>>> shell --pure --development --check clojure-tools openjdk coreutils
>>>>>
>>>>> Then in time-machine run again clojure-X:curl and the demo will work.
>>>> Kristiyan Kanchev <skrechy@gmail.com> skribis:
>>>>
>>>>> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
>>>>> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476).
>>>>> jakarta.servlet.AsyncContext
>>>>>
>>>>> The problem seems to be that Clojure CLI (`clojure-tools` guix
>>>>> package) doesn't construct proper class path including all
>>>>> transitive
>>>>> dependencies of the project. I've tried to figure out what might
>>>>> be causing the issue and I suspect `maven-resolver-*`
>>>>> packages. Clojure
>>>>> CLI depends on `tools.deps` clojure lib, which itself depends on
>>>>> `maven-resolver-*`. There is a mention in the `tools.deps`
>>>>> changelog of
>>>>> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
>>>>> differences".
>>>>> Here is the relevant commit:
>>>>> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>>>>>
>>>>> Up until this date, `tools.deps` lists the older versions of
>>>>> maven-resolver-* libs in its deps.end file. Since Guix uses the
>>>>> latest versions of
>>>>> maven-resolver-* libs, I think this is causing the issue.
>>>> Roman, Rostislav: does that ring a bell?
>>>>
>>>> Thanks,
>>>> Ludo’.
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmb/yJkfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmUumB/9mNSAAtCvABIrT
DIcfh/mr9TLY48bqApnL3m4V0Vbisep+uS+ctrD7f/XSi8n15L6aKSW6YPIi1D+V
fGVpyD9OeDyC174OkN2ohtuhfEUs3PCyyf0xBe//cR5dnN4dbFRdto/I82Bs2ORF
nwbtFcIeO5qyXvdGp0cqcESk3i8qt1LI2hDEcoXnL5OeFcKwVRt/6SZNgEkRtQNW
S/FWB7jPMDrC36he1k2VkJ6JPuQvDZO4tpFlim+Y6M36JhQhnWYdRI3Vu1XP2VT1
xjOhuKHIq2+fLkKFfC3rvfFl/tPXxylifDBl7h/5cnQs+J+KV31qmPprzHPEvLEs
xbw3yjxk
=eJ0u
-----END PGP SIGNATURE-----

R
R
Rostislav Svoboda wrote on 6 Oct 14:57 +0200
CAEtmmex3Cobs8VPyfzfsSXFmuSfCkrm9OarufhPCbLh8XCeBcA@mail.gmail.com
Hi. The bug can be tested with a one liner from within the guix shell
of your guix-repo checkout directory. Then it's just a git bisect
grind resulting in:

bad commit: 6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to
3.9.0. Julien Lepiller
compile error: 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
compile error: 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
compile error: 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update
to 1.9.4. Julien Lepiller
good commit: 597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37.
Julien Lepiller

I think we should take a closer look at the changes introduced by
maven 3.9.0, and involve Julien in the discussion.

Cheers Bost


bost@ecke ~/dev/guix$ guix shell --development guix gnupg direnv
help2man git glibc-locales glibc less --pure

bost@ecke ~/dev/guix [env]$ git log --pretty=format:'%h %ad%d %s %an'
--date=short -n 5
6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to 3.9.0. Julien Lepiller
7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update to 1.9.4. Julien Lepiller
597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37. Julien Lepiller

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
further details.
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Execution error (ClassNotFoundException) at
java.net.URLClassLoader/findClass (REPL:-1).
io.netty.channel.epoll.Epoll

Full report at:
/tmp/clojure-10071694626922869296.edn

bost@ecke ~/dev/guix [env]$ git checkout 7634bfca4a
Previous HEAD position was 6a763d916e gnu: maven: Update to 3.9.0.
HEAD is now at 7634bfca4a gnu: Add java-asm-tree-9.

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
substitute: updating substitutes from
'https://substitutes.nonguix.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
/gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
/gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
/gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
/gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv

building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
- 'build' phasebuilder for
`/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
failed with exit code 1
build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
failed
View build log at
'/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
cannot build derivation
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
1 dependencies couldn't be built
guix shell: error: build of
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
failed

bost@ecke ~/dev/guix [env]$ git checkout 4ba0614677
Previous HEAD position was 7634bfca4a gnu: Add java-asm-tree-9.
HEAD is now at 4ba0614677 gnu: Add java-asm-9.

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
The following derivations will be built:
/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
/gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
/gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
/gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
/gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv

building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
/ 'build' phasebuilder for
`/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
failed with exit code 1
build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
failed
View build log at
'/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
cannot build derivation
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
1 dependencies couldn't be built
guix shell: error: build of
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
failed

bost@ecke ~/dev/guix [env]$ git checkout 65e18f3f44
Previous HEAD position was 4ba0614677 gnu: Add java-asm-9.
HEAD is now at 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
The following derivations will be built:
/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
/gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
/gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
/gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
/gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv

building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
/ 'build' phasebuilder for
`/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
failed with exit code 1
build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
failed
View build log at
'/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
cannot build derivation
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
1 dependencies couldn't be built
guix shell: error: build of
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
failed

bost@ecke ~/dev/guix [env]$ git checkout 597f7db28a
Previous HEAD position was 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
HEAD is now at 597f7db28a gnu: Add maven-parent-pom-37.

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
further details.
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
{:request-time 82, :aleph/keep-alive? true, :headers {"accept-ch"
"Sec-CH-Prefers-Color-Scheme", "server" "gws",
"content-security-policy-report-only" "object-src 'none';base-uri
'self';script-src 'nonce-L_bpFSKBfV6ePPQ5XX89mw' 'strict-dynamic'
'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri
"text/html; charset=ISO-8859-1", "alt-svc" "h3=\":443\";
ma=2592000,h3-29=\":443\"; ma=2592000", "x-frame-options"
"SAMEORIGIN", "transfer-encoding" "chunked", "accept-ranges" "none",
"expires" "-1", "set-cookie"
"AEC=AVYB7cr3cvmbAV1LWXyhpEQMmhRJqAKagWpJsT3WkFdcueWBlDBtYcB0u1o;
expires=Fri, 04-Apr-2025 12:35:58 GMT; path=/; domain=.google.com;
Secure; HttpOnly;
SameSite=lax,__Secure-ENID=22.SE=hKFI58OY5TimxtoBmlZoSVjiTnTyUvcKPQ5h8n0JoYzy2J-9FSnumjnPyK208TYChMrSFA1issl1W8d36dbIH4w8EqdsKZpAx9VOHYif7-4hpDuzzJc63EQN5B9P9Ie5EOByy0HTBVwFwqRx6Kzpq9KiLMC5p98cyf6gTrU9aUgM-ec-gXy-yZh5WlL6cD2hXw3g5WkRcCk;
expires=Thu, 06-Nov-2025 04:54:16 GMT; path=/; domain=.google.com;
Secure; HttpOnly; SameSite=lax", "p3p" "CP=\"This is not a P3P policy!
See g.co/p3phelp for more info.\"", "date" "Sun, 06 Oct 2024 12:35:58
GMT", "vary" "Accept-Encoding", "x-xss-protection" "0",
"cache-control" "private, max-age=0"}, :status 200, :connection-time
336, :body #object[clj_commons.byte_streams.InputStream 0x7ba907cf
"clj_commons.byte_streams.InputStream@7ba907cf"]}

bost@ecke ~/dev/guix [env]$
K
K
Kristiyan Kanchev wrote on 9 Oct 14:15 +0200
b446361a-166e-47dd-b596-93031887f7d1@gmail.com
Hello all,

I've just managed to start Metabase with clojure-tools build from Guix.
The problem was indeed what I suspected --> maven-core 3.8.8 was needed.
maven-core 3.9.* is incompatible with clojure-tools (I want to note that
the clojure/tools.deps lib is not working correctly with maven 3.9, not
that Guix packaging is wrong).

Unfortunately, most of maven projects are handled as "bundles" of
dependencies, so I had to "port" 20 packages to their older version. I'm
currently improving/beautifying the code, then I'll push patches for review.

Regards,
Kriss

On 10/6/24 15:57, Rostislav Svoboda wrote:
Toggle quote (265 lines)
> Hi. The bug can be tested with a one liner from within the guix shell
> of your guix-repo checkout directory. Then it's just a git bisect
> grind resulting in:
>
> bad commit: 6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to
> 3.9.0. Julien Lepiller
> compile error: 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
> compile error: 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
> compile error: 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update
> to 1.9.4. Julien Lepiller
> good commit: 597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37.
> Julien Lepiller
>
> I think we should take a closer look at the changes introduced by
> maven 3.9.0, and involve Julien in the discussion.
>
> Cheers Bost
>
>
> bost@ecke ~/dev/guix$ guix shell --development guix gnupg direnv
> help2man git glibc-locales glibc less --pure
>
> bost@ecke ~/dev/guix [env]$ git log --pretty=format:'%h %ad%d %s %an'
> --date=short -n 5
> 6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to 3.9.0. Julien Lepiller
> 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
> 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
> 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update to 1.9.4. Julien Lepiller
> 597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37. Julien Lepiller
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further details.
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Execution error (ClassNotFoundException) at
> java.net.URLClassLoader/findClass (REPL:-1).
> io.netty.channel.epoll.Epoll
>
> Full report at:
> /tmp/clojure-10071694626922869296.edn
>
> bost@ecke ~/dev/guix [env]$ git checkout 7634bfca4a
> Previous HEAD position was 6a763d916e gnu: maven: Update to 3.9.0.
> HEAD is now at 7634bfca4a gnu: Add java-asm-tree-9.
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> substitute: updating substitutes from
> 'https://substitutes.nonguix.org'... 100.0%
> substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> The following derivations will be built:
> /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
> /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
> /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
> /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
> /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>
> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
> - 'build' phasebuilder for
> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
> failed with exit code 1
> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> failed
> View build log at
> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
> cannot build derivation
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
> 1 dependencies couldn't be built
> guix shell: error: build of
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
> failed
>
> bost@ecke ~/dev/guix [env]$ git checkout 4ba0614677
> Previous HEAD position was 7634bfca4a gnu: Add java-asm-tree-9.
> HEAD is now at 4ba0614677 gnu: Add java-asm-9.
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> The following derivations will be built:
> /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
> /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
> /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
> /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
> /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>
> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
> / 'build' phasebuilder for
> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
> failed with exit code 1
> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> failed
> View build log at
> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
> cannot build derivation
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
> 1 dependencies couldn't be built
> guix shell: error: build of
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
> failed
>
> bost@ecke ~/dev/guix [env]$ git checkout 65e18f3f44
> Previous HEAD position was 4ba0614677 gnu: Add java-asm-9.
> HEAD is now at 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> The following derivations will be built:
> /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
> /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
> /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
> /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
> /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>
> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
> / 'build' phasebuilder for
> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
> failed with exit code 1
> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> failed
> View build log at
> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
> cannot build derivation
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
> 1 dependencies couldn't be built
> guix shell: error: build of
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
> failed
>
> bost@ecke ~/dev/guix [env]$ git checkout 597f7db28a
> Previous HEAD position was 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
> HEAD is now at 597f7db28a gnu: Add maven-parent-pom-37.
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further details.
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> {:request-time 82, :aleph/keep-alive? true, :headers {"accept-ch"
> "Sec-CH-Prefers-Color-Scheme", "server" "gws",
> "content-security-policy-report-only" "object-src 'none';base-uri
> 'self';script-src 'nonce-L_bpFSKBfV6ePPQ5XX89mw' 'strict-dynamic'
> 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri
> https://csp.withgoogle.com/csp/gws/other-hp", "content-type"
> "text/html; charset=ISO-8859-1", "alt-svc" "h3=\":443\";
> ma=2592000,h3-29=\":443\"; ma=2592000", "x-frame-options"
> "SAMEORIGIN", "transfer-encoding" "chunked", "accept-ranges" "none",
> "expires" "-1", "set-cookie"
> "AEC=AVYB7cr3cvmbAV1LWXyhpEQMmhRJqAKagWpJsT3WkFdcueWBlDBtYcB0u1o;
> expires=Fri, 04-Apr-2025 12:35:58 GMT; path=/; domain=.google.com;
> Secure; HttpOnly;
> SameSite=lax,__Secure-ENID=22.SE=hKFI58OY5TimxtoBmlZoSVjiTnTyUvcKPQ5h8n0JoYzy2J-9FSnumjnPyK208TYChMrSFA1issl1W8d36dbIH4w8EqdsKZpAx9VOHYif7-4hpDuzzJc63EQN5B9P9Ie5EOByy0HTBVwFwqRx6Kzpq9KiLMC5p98cyf6gTrU9aUgM-ec-gXy-yZh5WlL6cD2hXw3g5WkRcCk;
> expires=Thu, 06-Nov-2025 04:54:16 GMT; path=/; domain=.google.com;
> Secure; HttpOnly; SameSite=lax", "p3p" "CP=\"This is not a P3P policy!
> See g.co/p3phelp for more info.\"", "date" "Sun, 06 Oct 2024 12:35:58
> GMT", "vary" "Accept-Encoding", "x-xss-protection" "0",
> "cache-control" "private, max-age=0"}, :status 200, :connection-time
> 336, :body #object[clj_commons.byte_streams.InputStream 0x7ba907cf
> "clj_commons.byte_streams.InputStream@7ba907cf"]}
>
> bost@ecke ~/dev/guix [env]$
R
R
Roman Scherer wrote on 9 Oct 14:18 +0200
(name . Kristiyan Kanchev)(address . skrechy@gmail.com)
87frp5jwqo.fsf@burningswell.com
Nice Kristiyan, thanks for your work on this!

Kristiyan Kanchev <skrechy@gmail.com> writes:

Toggle quote (282 lines)
> Hello all,
>
> I've just managed to start Metabase with clojure-tools build from
> Guix. The problem was indeed what I suspected --> maven-core 3.8.8 was
> needed. maven-core 3.9.* is incompatible with clojure-tools (I want to
> note that the clojure/tools.deps lib is not working correctly with
> maven 3.9, not that Guix packaging is wrong).
>
> Unfortunately, most of maven projects are handled as "bundles" of
> dependencies, so I had to "port" 20 packages to their older
> version. I'm currently improving/beautifying the code, then I'll push
> patches for review.
>
> Regards,
> Kriss
>
> On 10/6/24 15:57, Rostislav Svoboda wrote:
>> Hi. The bug can be tested with a one liner from within the guix shell
>> of your guix-repo checkout directory. Then it's just a git bisect
>> grind resulting in:
>>
>> bad commit: 6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to
>> 3.9.0. Julien Lepiller
>> compile error: 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
>> compile error: 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
>> compile error: 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update
>> to 1.9.4. Julien Lepiller
>> good commit: 597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37.
>> Julien Lepiller
>>
>> I think we should take a closer look at the changes introduced by
>> maven 3.9.0, and involve Julien in the discussion.
>>
>> Cheers Bost
>>
>>
>> bost@ecke ~/dev/guix$ guix shell --development guix gnupg direnv
>> help2man git glibc-locales glibc less --pure
>>
>> bost@ecke ~/dev/guix [env]$ git log --pretty=format:'%h %ad%d %s %an'
>> --date=short -n 5
>> 6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to 3.9.0. Julien Lepiller
>> 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
>> 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
>> 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update to 1.9.4. Julien Lepiller
>> 597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37. Julien Lepiller
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>> further details.
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Execution error (ClassNotFoundException) at
>> java.net.URLClassLoader/findClass (REPL:-1).
>> io.netty.channel.epoll.Epoll
>>
>> Full report at:
>> /tmp/clojure-10071694626922869296.edn
>>
>> bost@ecke ~/dev/guix [env]$ git checkout 7634bfca4a
>> Previous HEAD position was 6a763d916e gnu: maven: Update to 3.9.0.
>> HEAD is now at 7634bfca4a gnu: Add java-asm-tree-9.
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> substitute: updating substitutes from
>> 'https://substitutes.nonguix.org'... 100.0%
>> substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> The following derivations will be built:
>> /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>> /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>> /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>> /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>> /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>>
>> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
>> - 'build' phasebuilder for
>> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
>> failed with exit code 1
>> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> failed
>> View build log at
>> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
>> cannot build derivation
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
>> 1 dependencies couldn't be built
>> guix shell: error: build of
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
>> failed
>>
>> bost@ecke ~/dev/guix [env]$ git checkout 4ba0614677
>> Previous HEAD position was 7634bfca4a gnu: Add java-asm-tree-9.
>> HEAD is now at 4ba0614677 gnu: Add java-asm-9.
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> The following derivations will be built:
>> /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>> /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>> /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>> /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>> /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>>
>> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
>> / 'build' phasebuilder for
>> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
>> failed with exit code 1
>> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> failed
>> View build log at
>> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
>> cannot build derivation
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
>> 1 dependencies couldn't be built
>> guix shell: error: build of
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
>> failed
>>
>> bost@ecke ~/dev/guix [env]$ git checkout 65e18f3f44
>> Previous HEAD position was 4ba0614677 gnu: Add java-asm-9.
>> HEAD is now at 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> The following derivations will be built:
>> /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>> /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>> /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>> /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>> /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>>
>> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
>> / 'build' phasebuilder for
>> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
>> failed with exit code 1
>> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> failed
>> View build log at
>> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
>> cannot build derivation
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
>> 1 dependencies couldn't be built
>> guix shell: error: build of
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
>> failed
>>
>> bost@ecke ~/dev/guix [env]$ git checkout 597f7db28a
>> Previous HEAD position was 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
>> HEAD is now at 597f7db28a gnu: Add maven-parent-pom-37.
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;; newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>> further details.
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> {:request-time 82, :aleph/keep-alive? true, :headers {"accept-ch"
>> "Sec-CH-Prefers-Color-Scheme", "server" "gws",
>> "content-security-policy-report-only" "object-src 'none';base-uri
>> 'self';script-src 'nonce-L_bpFSKBfV6ePPQ5XX89mw' 'strict-dynamic'
>> 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri
>> https://csp.withgoogle.com/csp/gws/other-hp", "content-type"
>> "text/html; charset=ISO-8859-1", "alt-svc" "h3=\":443\";
>> ma=2592000,h3-29=\":443\"; ma=2592000", "x-frame-options"
>> "SAMEORIGIN", "transfer-encoding" "chunked", "accept-ranges" "none",
>> "expires" "-1", "set-cookie"
>> "AEC=AVYB7cr3cvmbAV1LWXyhpEQMmhRJqAKagWpJsT3WkFdcueWBlDBtYcB0u1o;
>> expires=Fri, 04-Apr-2025 12:35:58 GMT; path=/; domain=.google.com;
>> Secure; HttpOnly;
>> SameSite=lax,__Secure-ENID=22.SE=hKFI58OY5TimxtoBmlZoSVjiTnTyUvcKPQ5h8n0JoYzy2J-9FSnumjnPyK208TYChMrSFA1issl1W8d36dbIH4w8EqdsKZpAx9VOHYif7-4hpDuzzJc63EQN5B9P9Ie5EOByy0HTBVwFwqRx6Kzpq9KiLMC5p98cyf6gTrU9aUgM-ec-gXy-yZh5WlL6cD2hXw3g5WkRcCk;
>> expires=Thu, 06-Nov-2025 04:54:16 GMT; path=/; domain=.google.com;
>> Secure; HttpOnly; SameSite=lax", "p3p" "CP=\"This is not a P3P policy!
>> See g.co/p3phelp for more info.\"", "date" "Sun, 06 Oct 2024 12:35:58
>> GMT", "vary" "Accept-Encoding", "x-xss-protection" "0",
>> "cache-control" "private, max-age=0"}, :status 200, :connection-time
>> 336, :body #object[clj_commons.byte_streams.InputStream 0x7ba907cf
>> "clj_commons.byte_streams.InputStream@7ba907cf"]}
>>
>> bost@ecke ~/dev/guix [env]$
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmcGdH8fHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBme2WB/0cg1q7MkE0YQdC
QwetOd+B2nDlUHrkiha7evGyD+NX/8AtOHS0vnhyWXhJyDX6TKJSurtLFiUnypBA
d9uaEl66uxsyNiHhUi3oUeIV6gcSaDoYDIY5dRnfWXtgJ9Bo1Rzb11UkllQjjsnz
8hwQqCSz2pF0D5OGvELD/W9w8FH1yLBdFnpOEY9rB7t9U37a64xaZ8+1q2PUmENw
Lq1uGixZthdtj3Q5iTdm4jenA+Md0LvLHsBm9oEJO9+MvwzKy5SpvPeGVeH4vgA6
cg/y9T7Z2vgMB7NJjwOQ38AGlWd4FYsZ0Zt8WjSnvvPwJ2Xdh3yPFqKdILlpYCmr
xUkbOYp6
=hGk+
-----END PGP SIGNATURE-----

K
K
Kristiyan Kanchev wrote on 15 Oct 09:35 +0200
[PATCH 0/3] Fix clojure-tools-deps: wrong resolution of deps
(address . 73432@debbugs.gnu.org)(name . Kristiyan Kanchev)(address . skrechy@gmail.com)
cover.1728910014.git.skrechy@gmail.com
Clojure CLI (guix package `clojure-tools`) dependes on clojure-tools-deps
library, which in turn dependes on Maven Core. However, Clojure CLI doesn't
work correctly with Maven Core 3.9 (calculates wrong classpaths), so these
patches "port" Maven Core and its deps to version 3.8 (and Maven Resolver to
1.6) and make `clojure-tools-deps` to use them as deps.

Kristiyan Kanchev (3):
gnu: Add maven-resolver-1.6
gnu: Add maven-3.8-core
gnu: clojure-tools-deps: Fix wrong resolution of clojure deps

gnu/packages/clojure.scm | 13 +-
gnu/packages/maven.scm | 308 +++++++++++++++++++++++++++++++++++++++
2 files changed, 312 insertions(+), 9 deletions(-)


base-commit: e6a771c7baf9662b4c9832045ad86c8b92b46bb3
--
2.43.0
K
K
Kristiyan Kanchev wrote on 15 Oct 09:43 +0200
[PATCH 1/3] gnu: Add maven-resolver-1.6
(address . 73432@debbugs.gnu.org)(name . Kristiyan Kanchev)(address . skrechy@gmail.com)
6e6837dc8e86e4e3b7bceccd834b1a488233639e.1728910014.git.skrechy@gmail.com
* gnu/packages/maven.scm (maven-resolver-1.6-parent-pom,
maven-resolver-1.6-api, maven-resolver-1.6-spi, maven-resolver-1.6-test-util,
maven-resolver-1.6-util, maven-resolver-1.6-connector-basic,
maven-resolver-1.6-impl, maven-resolver-1.6-transport-file,
maven-resolver-1.6-transport-http): New variables

Change-Id: I293fdee8f4124c01c7260f6d10ba6c2ee56fe355
---
gnu/packages/maven.scm | 176 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 176 insertions(+)

Toggle diff (189 lines)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 67b95a5f7b..564a49fced 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2277,6 +2277,182 @@ (define-public maven
can be extended by plugins to utilise a number of other development tools for
reporting or the build process.")))
+(define maven-resolver-1.6-parent-pom
+ (package
+ (inherit maven-resolver-parent-pom)
+ (version "1.6.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/apache/maven-resolver")
+ (commit (string-append "maven-resolver-" version))))
+ (file-name (git-file-name "maven-resolver" version))
+ (sha256
+ (base32
+ "0hbbbxj14qyq8pccyab96pjqq90jnjmid1pml9kx55c5smfpjn37"))))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-resolver-parent-pom)
+ (replace "maven-parent-pom" maven-parent-pom-34)))))
+
+(define-public maven-resolver-1.6-api
+ (package
+ (inherit maven-resolver-api)
+ (version (package-version maven-resolver-1.6-parent-pom))
+ (source (package-source maven-resolver-1.6-parent-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-resolver-api)
+ (replace "maven-resolver-parent-pom" maven-resolver-1.6-parent-pom)))))
+
+(define-public maven-resolver-1.6-spi
+ (package
+ (inherit maven-resolver-spi)
+ (version (package-version maven-resolver-1.6-parent-pom))
+ (source (package-source maven-resolver-1.6-parent-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-resolver-spi)
+ (replace "maven-resolver-api" maven-resolver-1.6-api)))))
+
+(define-public maven-resolver-1.6-test-util
+ (package
+ (inherit maven-resolver-test-util)
+ (version (package-version maven-resolver-1.6-parent-pom))
+ (source (package-source maven-resolver-1.6-parent-pom))
+ (inputs
+ (modify-inputs (package-inputs maven-resolver-test-util)
+ (replace "maven-resolver-api" maven-resolver-1.6-api)
+ (replace "maven-resolver-spi" maven-resolver-1.6-spi)))))
+
+(define-public maven-resolver-1.6-util
+ (package
+ (inherit maven-resolver-util)
+ (version (package-version maven-resolver-1.6-parent-pom))
+ (source (package-source maven-resolver-1.6-parent-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-resolver-util)
+ (replace "maven-resolver-api" maven-resolver-1.6-api)))
+ (native-inputs
+ (modify-inputs (package-native-inputs maven-resolver-util)
+ (replace "java-hamcrest-all" java-hamcrest-core)
+ (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
+(define-public maven-resolver-1.6-connector-basic
+ (package
+ (inherit maven-resolver-connector-basic)
+ (version (package-version maven-resolver-1.6-parent-pom))
+ (source (package-source maven-resolver-1.6-parent-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-resolver-connector-basic)
+ (replace "maven-resolver-api" maven-resolver-1.6-api)
+ (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+ (replace "maven-resolver-util" maven-resolver-1.6-util)))
+ (native-inputs
+ (modify-inputs (package-native-inputs maven-resolver-connector-basic)
+ (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
+(define-public maven-resolver-1.6-impl
+ (package
+ (inherit maven-resolver-impl)
+ (version (package-version maven-resolver-1.6-parent-pom))
+ (source (package-source maven-resolver-1.6-parent-pom))
+ (arguments
+ `(#:jar-name "maven-resolver-impl.jar"
+ #:source-dir "maven-resolver-impl/src/main/java"
+ #:test-dir "maven-resolver-impl/src/test"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'generate-sisu
+ (lambda _
+ (mkdir-p "build/classes/META-INF/sisu")
+ (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
+ (lambda _
+ (display
+ (string-append
+ ;; Build this list by looking for files containing "@Named"
+ "org.eclipse.aether.internal.impl.DefaultArtifactResolver\n"
+ "org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector\n"
+ "org.eclipse.aether.internal.impl.DefaultChecksumPolicyProvider\n"
+ "org.eclipse.aether.internal.impl.DefaultDeployer\n"
+ "org.eclipse.aether.internal.impl.DefaultFileProcessor\n"
+ "org.eclipse.aether.internal.impl.DefaultInstaller\n"
+ "org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider\n"
+ "org.eclipse.aether.internal.impl.DefaultMetadataResolver\n"
+ "org.eclipse.aether.internal.impl.DefaultOfflineController\n"
+ "org.eclipse.aether.internal.impl.DefaultRemoteRepositoryManager\n"
+ "org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider\n"
+ "org.eclipse.aether.internal.impl.DefaultRepositoryEventDispatcher\n"
+ "org.eclipse.aether.internal.impl.DefaultRepositoryLayoutProvider\n"
+ "org.eclipse.aether.internal.impl.DefaultRepositorySystem\n"
+ "org.eclipse.aether.internal.impl.DefaultSyncContextFactory\n"
+ "org.eclipse.aether.internal.impl.DefaultTransporterProvider\n"
+ "org.eclipse.aether.internal.impl.DefaultUpdateCheckManager\n"
+ "org.eclipse.aether.internal.impl.DefaultUpdatePolicyAnalyzer\n"
+ "org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManagerFactory\n"
+ "org.eclipse.aether.internal.impl.LoggerFactoryProvider\n"
+ "org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory\n"
+ "org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory\n"
+ "org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory"))))
+ #t))
+ (replace 'install
+ (install-from-pom "maven-resolver-impl/pom.xml")))))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-resolver-impl)
+ (delete "maven-resolver-named-locks")
+ (replace "maven-resolver-api" maven-resolver-1.6-api)
+ (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+ (replace "maven-resolver-util" maven-resolver-1.6-util)
+ (replace "maven-resolver-parent-pom" maven-resolver-1.6-parent-pom)))
+ (native-inputs
+ (modify-inputs (package-native-inputs maven-resolver-impl)
+ (delete "java-hamcrest-all")
+ (delete "java-mockito-1")
+ (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
+(define-public maven-resolver-1.6-transport-file
+ (package
+ (inherit maven-resolver-transport-file)
+ (version (package-version maven-resolver-1.6-parent-pom))
+ (source (package-source maven-resolver-1.6-parent-pom))
+ (inputs
+ (modify-inputs (package-inputs maven-resolver-transport-file)
+ (delete "maven-wagon-provider-api")
+ (replace "maven-resolver-api" maven-resolver-1.6-api)
+ (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+ (replace "maven-resolver-util" maven-resolver-1.6-util)))
+ (native-inputs
+ (modify-inputs (package-native-inputs maven-resolver-transport-file)
+ (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
+(define-public maven-resolver-1.6-transport-http
+ (package
+ (inherit maven-resolver-transport-http)
+ (version (package-version maven-resolver-1.6-parent-pom))
+ (source (package-source maven-resolver-1.6-parent-pom))
+ (arguments
+ `(#:jar-name "maven-resolver-transport-http.jar"
+ #:source-dir "maven-resolver-transport-http/src/main/java"
+ #:test-dir "maven-resolver-transport-http/src/test"
+ #:jdk ,icedtea-8
+ ;; Tests all fail because
+ ;; org.eclipse.aether.transport.http.SslSocketFactory is not available.
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'generate-sisu
+ (lambda _
+ (mkdir-p "build/classes/META-INF/sisu")
+ (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
+ (lambda _
+ (display "org.eclipse.aether.transport.http.HttpTransporterFactory\n"))))))))
+ (inputs
+ (modify-inputs (package-inputs maven-resolver-transport-http)
+ (delete "maven-wagon-provider-api")
+ (replace "maven-resolver-api" maven-resolver-1.6-api)
+ (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+ (replace "maven-resolver-util" maven-resolver-1.6-util)))
+ (native-inputs
+ (modify-inputs (package-native-inputs maven-resolver-transport-http)
+ (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
;; Many plugins require maven 3.0 as a dependency.
(define maven-3.0-pom
(package
--
2.43.0
K
K
Kristiyan Kanchev wrote on 15 Oct 09:43 +0200
[PATCH 2/3] gnu: Add maven-3.8-core
(address . 73432@debbugs.gnu.org)(name . Kristiyan Kanchev)(address . skrechy@gmail.com)
cbdf95eab5d13d06038347717f042e06dafd7e91.1728910014.git.skrechy@gmail.com
* gnu/packages/maven.scm (maven-3.8-pom, maven-3.8-artifact, maven-3.8-model,
maven-3.8-builder-support, maven-3.8-settings, maven-3.8-settings-builder,
maven-3.8-model-builder, maven-3.8-repository-metadata,
maven-3.8-resolver-provider, maven-3.8-plugin-api, maven-3.8-core): New variables

Change-Id: Ie9e1b595532b8b7ded73b8d648ff04e13d0a55c7
---
gnu/packages/maven.scm | 132 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 132 insertions(+)

Toggle diff (152 lines)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 564a49fced..5c3cc5c708 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2277,6 +2277,9 @@ (define-public maven
can be extended by plugins to utilise a number of other development tools for
reporting or the build process.")))
+;; maven-core 3.8.* and its dependencies -- needed by some packages (at the time of
+;; writing, this is clojure-tools-deps 0.18)
+
(define maven-resolver-1.6-parent-pom
(package
(inherit maven-resolver-parent-pom)
@@ -2453,6 +2456,135 @@ (define-public maven-resolver-1.6-transport-http
(modify-inputs (package-native-inputs maven-resolver-transport-http)
(replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+(define maven-3.8-pom
+ (package
+ (inherit maven-pom)
+ (version "3.8.8")
+ (source (origin
+ (inherit (package-source maven-pom))
+ (uri (string-append "mirror://apache/maven/"
+ "maven-3/" version "/source/"
+ "apache-maven-" version "-src.tar.gz"))
+ (sha256 (base32 "01q2g8sklxsys46i4dxqr89klcxfzz40f2kz4lxbdl1phyibqk92"))))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-pom)
+ (replace "maven-parent-pom" maven-parent-pom-35)))))
+
+(define-public maven-3.8-artifact
+ (package
+ (inherit maven-artifact)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-artifact)
+ (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-model
+ (package
+ (inherit maven-model)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-model)
+ (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-builder-support
+ (package
+ (inherit maven-builder-support)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-builder-support)
+ (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-settings
+ (package
+ (inherit maven-settings)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-settings)
+ (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-settings-builder
+ (package
+ (inherit maven-settings-builder)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-settings-builder)
+ (replace "maven-builder-support" maven-3.8-builder-support)
+ (replace "maven-settings" maven-3.8-settings)
+ (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-model-builder
+ (package
+ (inherit maven-model-builder)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-model-builder)
+ (replace "maven-artifact" maven-3.8-artifact)
+ (replace "maven-builder-support" maven-3.8-builder-support)
+ (replace "maven-model" maven-3.8-model)
+ (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-repository-metadata
+ (package
+ (inherit maven-repository-metadata)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-repository-metadata)
+ (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-resolver-provider
+ (package
+ (inherit maven-resolver-provider)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-resolver-provider)
+ (replace "maven-model" maven-3.8-model)
+ (replace "maven-model-builder" maven-3.8-model-builder)
+ (replace "maven-builder-support" maven-3.8-builder-support)
+ (replace "maven-repository-metadata" maven-3.8-repository-metadata)
+ (replace "maven-resolver-api" maven-resolver-1.6-api)
+ (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+ (replace "maven-resolver-impl" maven-resolver-1.6-impl)
+ (replace "maven-resolver-util" maven-resolver-1.6-util)))))
+
+(define-public maven-3.8-plugin-api
+ (package
+ (inherit maven-plugin-api)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-plugin-api)
+ (replace "maven-artifact" maven-3.8-artifact)
+ (replace "maven-model" maven-3.8-model)))))
+
+(define-public maven-3.8-core
+ (package
+ (inherit maven-core)
+ (version (package-version maven-3.8-pom))
+ (source (package-source maven-3.8-pom))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs maven-core)
+ (replace "maven-artifact" maven-3.8-artifact)
+ (replace "maven-resolver-provider" maven-3.8-resolver-provider)
+ (replace "maven-model" maven-3.8-model)
+ (replace "maven-model-builder" maven-3.8-model-builder)
+ (replace "maven-builder-support" maven-3.8-builder-support)
+ (replace "maven-settings" maven-3.8-settings)
+ (replace "maven-settings-builder" maven-3.8-settings-builder)
+ (replace "maven-plugin-api" maven-3.8-plugin-api)
+ (replace "maven-repository-metadata" maven-3.8-repository-metadata)
+ (replace "maven-resolver-api" maven-resolver-1.6-api)
+ (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+ (replace "maven-resolver-impl" maven-resolver-1.6-impl)
+ (replace "maven-resolver-util" maven-resolver-1.6-util)))))
+
;; Many plugins require maven 3.0 as a dependency.
(define maven-3.0-pom
(package
--
2.43.0
K
K
Kristiyan Kanchev wrote on 15 Oct 09:43 +0200
[PATCH 3/3] gnu: clojure-tools-deps: Fix wrong resolution of clojure deps
(address . 73432@debbugs.gnu.org)(name . Kristiyan Kanchev)(address . skrechy@gmail.com)
aab75982b2e036d7899a6d326060a028f1023a09.1728910014.git.skrechy@gmail.com
* gnu/packages/clojure.scm (clojure-tools-deps)[propagated-inputs]: Switched
to maven-core 3.8 and maven-resolver 1.6

Change-Id: Ibf43bdf7a060914a74717d5fe8e8e2c292d87ac7
---
gnu/packages/clojure.scm | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)

Toggle diff (26 lines)
diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm
index 09674f541e..baa49ba50a 100644
--- a/gnu/packages/clojure.scm
+++ b/gnu/packages/clojure.scm
@@ -814,15 +814,10 @@ (define-public clojure-tools-deps
"src/main/clojure/clojure/tools/deps/util/maven.clj"
(("clojure.tools.deps.util.s3-transporter")
"")))))))
- (propagated-inputs (list maven-resolver-api
- maven-resolver-spi
- maven-resolver-impl
- maven-resolver-util
- maven-resolver-connector-basic
- maven-resolver-provider
- maven-core
- maven-resolver-transport-http
- maven-resolver-transport-file
+ (propagated-inputs (list maven-3.8-core
+ maven-resolver-1.6-connector-basic
+ maven-resolver-1.6-transport-http
+ maven-resolver-1.6-transport-file
clojure-tools-gitlibs
clojure-tools-cli
clojure-data-xml))
--
2.43.0
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 73432@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 73432
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch