!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

142 Members
32 Servers

Load older messages


SenderMessageTime
27 May 2026
@britter:yatrix.orgBenedikt Ritter (britter)Sounds great!17:18:54
28 May 2026
@msgilligan:matrix.orgmsgilligan

Cannot deploy artifacts when Maven is in offline mode

Why not, Maven? I'm deploying to a local directory.

21:22:58
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️At what point do we reach "Reimplement Maven's protocol as a dummy local directory that pretends to be online" territory21:23:59
@msgilligan:matrix.orgmsgilliganThis point! I feel I'm kinda at that point...21:24:33
@msgilligan:matrix.orgmsgilliganBut I think we might be able to get the bare minimum without going quite so far.21:25:21
@msgilligan:matrix.orgmsgilligan

I've been experimenting with using mvn deploy (using a local directory as the destination) in derivations using buildMavenPackage. In order to do this I need two new parameters to buildMavenPackage: mvnGoal and mvnOffline (which default to package and true.)

These two parameters (and sometimes the existing mvnParameters) are needed to use ``buildMavenPackagewith thedeploy` goal.

I made a PR that adds the two parameters: https://github.com/NixOS/nixpkgs/pull/525382

23:25:59
@msgilligan:matrix.orgmsgilliganThe idea is to generate output in Maven repo layout for publishing to Maven Central or for using in other derivations.23:33:33
29 May 2026
@britter:yatrix.orgBenedikt Ritter (britter)Why does running deploy to a local dir require online mode? 🤔05:46:43
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Maven is a bit silly05:47:56
@msgilligan:matrix.orgmsgilliganI feel like we should give some input and possibly even a few PRs upstream to Maven (and/or Ant!)15:10:37
@msgilligan:matrix.orgmsgilligan Can someone please review or merge my simple bug-fix for jextract on Darwin? 16:03:22
31 May 2026
@msgilligan:matrix.orgmsgilligan Merged! Now we can remove the unmaintained/obsolete jextract-21: https://github.com/NixOS/nixpkgs/pull/519958 16:17:51
@pyrox:pyrox.devdish [Fox/It/She]cheers, merged18:07:38
@msgilligan:matrix.orgmsgilligan Thanks, but I did a GitHub search after my last comment and found a project (chisel) using jextract-21. So maybe we shouldn't have removed it and give a warning instead. (It looks like swapping the JDK 25 version would break them, so the warnAlias would not be good for them.) 18:11:02
@msgilligan:matrix.orgmsgilligan * Thanks, but I did a GitHub search after my last comment and found a project (chisel) using jextract-21. So maybe we shouldn't have removed it and should give a warning instead. (It looks like swapping the JDK 25 version would break them, so the warnAlias would not be good for them.) 18:14:43
@msgilligan:matrix.orgmsgilliganI can make a PR to revert the change and add a warning upon use. Should I do that?18:17:25
@msgilligan:matrix.orgmsgilligan People really shouldn't be using jextract-21 though. It's an early-access build supporting a preview feature (FFM/Panama) of the JDK that didn't finalize until JDK 22 and is only supported by OpenJDK in version 25 and later. So we probably did the right thing. 18:36:16
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️I don't think it's worth reverting a good change for an outside project, unless it is a widespread dependency18:37:50
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️(Java 8 being the easiest example)18:37:57
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Projects pin Nixpkgs for a reason after all, they'll likely update to jextract 25 or stick with old Nixpkgs 18:38:37
@msgilligan:matrix.orgmsgilligan And we're struggling to properly maintain one jextract package properly. 18:39:29
@msgilligan:matrix.orgmsgilligan * And we're struggling to maintain one jextract package properly. 18:39:45
@pyrox:pyrox.devdish [Fox/It/She]yeah i would say leave the change18:54:27
@msgilligan:matrix.orgmsgilligan PR 519191 brings jextract up-to-date with the current (JDK 25-based) build from OpenJDK. 19:17:38
@pyrox:pyrox.devdish [Fox/It/She]merged19:24:28
1 Jun 2026
@msgilligan:matrix.orgmsgilligan

For jextract, I opened PRs to backport the darwin fix and 0-unstable-2025-11-12 update>

To release-25.11:

  • https://github.com/NixOS/nixpkgs/pull/526579
  • https://github.com/NixOS/nixpkgs/pull/526580

And to release-26.05:

  • https://github.com/NixOS/nixpkgs/pull/526581
  • https://github.com/NixOS/nixpkgs/pull/526587
02:46:20
@msgilligan:matrix.orgmsgilligan *

For jextract, I opened PRs to backport the darwin fix and 0-unstable-2025-11-12 update.

To release-25.11:

  • https://github.com/NixOS/nixpkgs/pull/526579
  • https://github.com/NixOS/nixpkgs/pull/526580

And to release-26.05:

  • https://github.com/NixOS/nixpkgs/pull/526581
  • https://github.com/NixOS/nixpkgs/pull/526587
02:46:41
@msgilligan:matrix.orgmsgilligan This will also help (especially on Darwin) users migrate away from jextract-21 02:49:28
@msgilligan:matrix.orgmsgilligan *

For jextract, I opened PRs to backport the darwin fix and 0-unstable-2025-11-12 update.

To release-25.11:

  • https://github.com/NixOS/nixpkgs/pull/526579 - merged ✅
  • https://github.com/NixOS/nixpkgs/pull/526580

And to release-26.05:

  • https://github.com/NixOS/nixpkgs/pull/526581
  • https://github.com/NixOS/nixpkgs/pull/526587
03:06:10
@msgilligan:matrix.orgmsgilligan *

For jextract, I opened PRs to backport the darwin fix and 0-unstable-2025-11-12 update.

To release-25.11:

  • https://github.com/NixOS/nixpkgs/pull/526579 - merged ✅
  • https://github.com/NixOS/nixpkgs/pull/526580

And to release-26.05:

  • https://github.com/NixOS/nixpkgs/pull/526581 - merged ✅
  • https://github.com/NixOS/nixpkgs/pull/526587
03:23:42

Show newer messages


Back to Room ListRoom Version: 6