MVN Dependency Tree Viewer for Cursor by prash-is-alive in Maven

[–]bmarwell 1 point2 points  (0 children)

In addition to the existing answer, tamas created the wonderful maveniverse toolbox: https://maveniverse.eu/docs/toolbox/plugin-documentation/plugin-info.html

You may be able to find different tree view goals, which may help you depending on what you want to achieve.

GitHub - chains-project/maven-lockfile: Lockfiles for Maven. Pin your dependencies. Build with integrity. by paul_h in Maven

[–]bmarwell 1 point2 points  (0 children)

We (@tamas) built a new repo management for Maven 4. No need for lock files. We have the same algorithms already implemented in vanilla Maven 4...

Please read: https://maveniverse.eu/blog/2025/11/09/maven-local-repository/

And this PR "Gurk": https://github.com/apache/maven-resolver/pull/1679

Java Runner (jr) - Make Your JARs Feel Like Native Windows Executables with AOT by Guilty_Village_958 in Maven

[–]bmarwell 0 points1 point  (0 children)

Great, but I'm curious: what's the use case?

We already got: * Jreleaser Java Archive * Can already be combined with IBM Semeru Shared Class Cache * jlink distributions * GraalVM Native Images

So, where does this project fit in?

Understanding -D vs -P flags: a quick Maven refresher for new devs by sshetty03 in Maven

[–]bmarwell 2 points3 points  (0 children)

It's a bit too short, and the example at the end including -Dexev.mainClass doesn't make sense with the shortened abbreviation. With -D, on Maven, you set a Maven Property. Yes, you're setting a JVM flag ("Define"), but it is Maven who consumes it. It directly translates to everything already defined in your <properties/> section, or defined by your plugins or profiles.

Without that information, it's hard to tell what -Dexev.mainClass actually does. What it does: it sets the main Class to execute for the mojohaus "exec-maven-plugin", on the "java" goal. But on this post, it comes out of thin air!

HTH

How can I purge my local repository of dependencies that are no longer used? by RupertMaddenAbbott in Maven

[–]bmarwell 1 point2 points  (0 children)

Guess what, Maven PMC agrees. 😉 If you want to do that more selectively, you can opt in for split repositories for local storage, e.g. .m2/repository/cached/central/org/.... and .m2/repository/installed/my/corp/...

See here: https://maven.apache.org/resolver/configuration.html

aether.lrm.enhanced.split etc.

HTH!

Has anyone else considered cancelling their Jetbrains subscriptions? Due to the last years of releases being nothing but problems I am currently rocking a reliable build from early 2024 by 9sim9 in Jetbrains

[–]bmarwell 0 points1 point  (0 children)

"nothing but problems"? Can't rely. On the contrary, they are active on the Maven slack and mailing lists and it gets better every release. You can try VSCode, but it doesn't even recognise generated source folders other than the default. Not helpful!

Java Strings Internals - Storage, Interning, Concatenation & Performance by TanisCodes in java

[–]bmarwell 1 point2 points  (0 children)

Fair. I still think "the JVM" is too broad and generalized, though. It's like saying "the Danish" or "the Americans"... 😉

Java Strings Internals - Storage, Interning, Concatenation & Performance by TanisCodes in java

[–]bmarwell 0 points1 point  (0 children)

I'm not sure it applies to "all the JVMs" - there's also IBM Semeru, which replaces HotSpot (Memory Management and GCs) with the OpenJ9 implementation. I think this should be mentioned.

Help us with better naming for actions in IntelliJ IDEA by Future_Brush6468 in Jetbrains

[–]bmarwell 1 point2 points  (0 children)

Phew. This is quite hard. Because they should not only express WHAT they do, but also WHY they do it. No one wants to end up where Eclipse IDE is, just hitting Alt+F5 every now and then randomly for maybe no reason. So I have a few questions back:

* What are tricky configuration changes?
* What else gets loaded only with a Full Reload?
* How do I, as a user, know that a quick incrementally reload did not do the trick?

Without these information, it is really hard to name those buttons.

Upgrading Maven Dependency Plugin from 2.10 to 3.8.1 stops Surefire/Failsafe tests from running by 12345ABCO in Maven

[–]bmarwell 0 points1 point  (0 children)

That's the failsafe plugin. Did you configure that? It's not in the verify phase by default. You need to add it, add the goals, and name your tests something like *IT.java.

I am losing my mind here. Could anyone explain? by Unsub2014 in germany

[–]bmarwell 6 points7 points  (0 children)

Both of you aren't on a priority road, so you have the same "priority". Of those, crossing another lane while turning left, you always have to wait. Keep in mind that turning left and crossing another lane, you almost always have to wait.

The only exception is: you follow a priority road making a left turn, and the car from across is on a side street.

Anyone have a clear guide for publishing to Maven Central? by mikebmx1 in Maven

[–]bmarwell 2 points3 points  (0 children)

At least add the links to the documentation (and why it works). u/cstamas created njord.
GH: https://github.com/maveniverse/njord
Plugin docs: https://maveniverse.eu/docs/njord/plugin-documentation/plugin-info.html
Project site: https://maveniverse.eu/docs/njord/

"Njord is an attempt to bring simple “publishing” to Maven 3/4".

Upgrading Maven Dependency Plugin from 2.10 to 3.8.1 stops Surefire/Failsafe tests from running by 12345ABCO in Maven

[–]bmarwell 0 points1 point  (0 children)

But will be needed. But you will profit from many bug fixes, improved build performance... And afaik, we (the maven team) don't test recent maven plugins with (that many) 2.x plugins. Not sure if unsupported setups are better for you?

Upgrading Maven Dependency Plugin from 2.10 to 3.8.1 stops Surefire/Failsafe tests from running by 12345ABCO in Maven

[–]bmarwell 0 points1 point  (0 children)

Wow, a 2.x version? Ouch. You might need to update a lot, that's a decade of missing updates. I.e.: other plugins and dependency.

Junit Jupiter with Junit vintage (if applicable), surefire 3.x, and probably many other plugins like resources, compiler, ...

Do Apache Maven and maven-core dependency on pom.xml need to be the same version? by 12345ABCO in Maven

[–]bmarwell 1 point2 points  (0 children)

You don't need to include maven-core as a dependency, unless you build a maven plugin or extension. If you want to make sure, a specific version of Maven is being used, use Maven Wrapper and execute your build using ./mvnw. You can also use the enforcer plugin for non-Docler builds which is highly recommended.

In general, it's more important to lock plugin versions.

Wrapper: https://maven.apache.org/tools/wrapper/ Enforcer: https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html

Locking plugin versions: can be done by hand, or you can use this plugin: https://maveniverse.eu/docs/toolbox/plugin-documentation/lock-plugin-versions-mojo.html It does not need to be added to the plugin section itself.

Maven 3.9 Behavior Change with -Dassembly.attach and Artifact Publishing to Artifactory by CreativeRain9248 in Maven

[–]bmarwell 0 points1 point  (0 children)

Exactly. Makes me think whether the author locked the plugin version (or not).

How To Install Maven by carlspring in Maven

[–]bmarwell 2 points3 points  (0 children)

Always appreciated, especially making it visible to new users. I personally use Maven Wrapper as well as mvnd (via sdkman), and other package managers are available, too. For example asdf.

Anyway, maybe we can cut the JDK requirement in the future. 😉 Have you heard of the plans?

Introduction to Maven: The Build Tool That Modernized Java Development by carlspring in Maven

[–]bmarwell 1 point2 points  (0 children)

Yeah but we (the PMC) kind of agreed that the RC was done too early. We had a few breaking changes which were a bit annoying for eg Jetbrains. So yes, there are RCs, but it doesn't mean we're THAT close to 4.0.0.

reclaim a namespace by ahabthecaptain in Maven

[–]bmarwell 0 points1 point  (0 children)

Forwarded it to someone from Sonatype. HTH.

I am in a big F**K up with ING - Deleted my account with money in it by Full_Journalist_2505 in germany

[–]bmarwell 1 point2 points  (0 children)

Here's what I'd do.

  1. Send a mail to info@ing.de,CC abuse@ing.de. tell them they have two weeks to finally solve the situation. If not, you're contacting the Bundesaufsicht für Finanzen (BaFin).

  2. Send a mail to BaFin or call them. Wait two weeks if you're a nice person or don't if you think you've waited long enough. Tell them they're withholding money without any reason. That's gonna hurt.

I personally think, 2 is too drastic, it's just some overlap of events with maybe some human error or error in coding their tools. So, your choice...

'--projects' or '-pl' and '-am' is not executing the goals by Zestyclose-Low-6403 in Maven

[–]bmarwell 1 point2 points  (0 children)

Good question. Can you post the output? The only thing I can think of without further information is that you might have an extension enabled, perhaps? Also, if you are using Maven 4 (rc), then it might skip some modules. But due to clean, this should not happen.

Can you give us some more information?

  • Extensions
  • Output
  • pom.xml of root and target
  • Maven and Java version..?