There are a few books listed here:
https://maven.apache.org/articles.html
Also, here are a few books from Sonatype (the company behind Nexus):
(available as HTML and PDF, both for free):
Maven Cookbook: https://books.sonatype.com/mcookbook/reference/index.html
Maven by Example:
Re: catchall on the way: yay!
Re: plexus version: I was about to ask if the next version of the compiler
plugin will include this, but I see it's already there. Nice!
-Original Message-
From: Alexander Kriegisch
Sent: Saturday, December 23, 2023 11:48 PM
To: users@maven.apache.org
Okay, I tried again with more realistic settings and indeed it now works!
(That is, I gave it 700 megs of heap instead of one meg)
Thank you! This actually truly works!
(I still feel that there should be a "catchall" category of compiler output so
that anything that maven can't make sense of
Actually no, wait. I changed the pom as you described but I think the build is
still using the old plexus version.
Is there a way to be sure?
-Original Message-
From: mark.yagnatin...@barclays.com.INVALID
Sent: Saturday, December 23, 2023 1:51 PM
To: users@maven.apache.org
Subject:
Also: just tested with your new and improved version.
To speed up the build failures I gave it even less heap (just one meg).
It doesn't seem to help; all I get is "compilation failure"
And thanks for putting up with my attitude; I'll try to do better.
-Original Message-
From:
Okay you win, stack trace below. My bad, sorry, I should know better.
Also, thanks for explaining the parsing picture: that's not how I expected it
to work at all!
I never thought maven expected this much structure from the compiler messages.
The system is out of resources.
Consult the
There's nothing that special about MY stack trace... just run javac on a
largish module with a tiny heap.
(Our module was huge enough to fail with 800 megs, but there are plenty modules
that will fail with 8 megs, let alone one meg.)
Further, the exact stack trace is very sensitive to the exact
Okay, I think I got it. Here is the error I get when running with -J-Xmx800
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: GC overhead limit exceeded
-Original Message-
From: mark.yagnatin...@barclays.com.INVALID
Sent:
How can I can find out EXACTLY how maven invoked javac, so I can invoke it the
same way?
(While I await your response, I'll attempt to invoke it roughly the same way
and see if that works.)
-Original Message-
From: Alexander Kriegisch
Sent: Thursday, December 21, 2023 8:45 PM
To:
Forked: yes
Other questions: didn't check, because using a bigger heap ("maxmem") fixed it.
But thanks for this, that looks like it would have helped us!
(in a hypothetical world where that PR was merged ten years earlier)
(We're mostly using version 3.8 of maven-compiler-plugin...perhaps it's
Good guess. Turns out it doesn't though. I checked yesterday.
My latest theory is that it's running out of memory during compilation.
But that would presumably end up in the logs, so this theory has problems.
-Original Message-
From: Tomo Suzuki
Sent: Tuesday, December 19, 2023 6:15
That last part sounds promising actually! Sadly I'm not familiar with the
maven source code but still the ability to set breakpoints sounds very tempting!
-Original Message-
From: Mark Eggers
Sent: Tuesday, December 19, 2023 5:33 PM
To: users@maven.apache.org
Subject: Re: maven
Indeed, if there were ACTUAL error messages from the java compiler, this would
be far less mysterious :)
The trouble is that there are NOT any error messages coming from the Java
compiler.
There are a few warnings (from javac), followed soon after by "Compilation
failure" (from maven, NOT from
Thanks, I've heard of all three; the first two don't seem like they'd help here.
The third tends to spew junk and not useful stuff
-Original Message-
From: Mark Eggers
Sent: Tuesday, December 19, 2023 5:11 PM
To: users@maven.apache.org
Subject: Re: maven debugging frustrations
When my Java code does something I didn't expect, I can run it under a debugger
and step through it line by line until things make sense again.
When maven does something I didn't expect, my debugging strategy is usually
more like "try to think of something in my bag of tricks".
Sometimes I
Thank you! I'd seen [4] but not sure if I've seen [2]
-Original Message-
From: Maarten Mulders
Sent: Tuesday, December 19, 2023 9:07 AM
To: users@maven.apache.org
Subject: Re: Maven 4.0 release timeline
CAUTION: This email originated from outside our organisation -
Maybe in a few days; bit busy now
-Original Message-
From: Karl Heinz Marbaise
Sent: Monday, December 18, 2023 5:31 PM
To: Maven Users List ; Tamás Cservenák
Cc: subharaj.ma...@gmail.com
Subject: Re: Maven 4.0 release timeline
CAUTION: This email originated from outside our
IntelliJ ... usually I just use whatever maven version it happens to bundle,
but I've heard rumors that maven 4 should handle multi-module stuff better so
I've vaguely been keeping an eye on it
-Original Message-
From: Tamás Cservenák
Sent: Monday, December 18, 2023 5:20 PM
To: Maven
Thanks! Just tried in my IDE and it failed, but not sure if that's an issue
with maven or with IDE.
(I have a multi-module project and it tried to download the submodules instead
of using the local source code)
-Original Message-
From: Tamás Cservenák
Sent: Monday, December 18, 2023
Ah, much better! I guess I can ignore the cyclondex files and grab a plain old
zip?
-Original Message-
From: Tamás Cservenák
Sent: Monday, December 18, 2023 3:49 PM
To: Maven Users List
Cc: subharaj.ma...@gmail.com
Subject: Re: Maven 4.0 release timeline
CAUTION: This email
Navigating that directory tree seems a bit intimidating... can I try alpha-8 or
better wait for alpha-10 to officially come out?
-Original Message-
From: Tamás Cservenák
Sent: Monday, December 18, 2023 3:43 PM
To: Maven Users List
Cc: subharaj.ma...@gmail.com
Subject: Re: Maven 4.0
I'm not the original asker but this kind of answer tends to annoy me.
Yes, there is no "official" release timeline, you're obviously not going to
promise anything, all this is (hopefully?) clear, BUT!
You no doubt have GUESSES. And your guesses are no doubt better than that of
most uninformed
Look at the second answer to this stack overflow question (the one with 151
votes, not the one with 209)
https://stackoverflow.com/questions/67001968/how-to-disable-maven-blocking-external-http-repositories
Direct link to answer: https://stackoverflow.com/a/68394404/3273929
(but read the question
Sorry, I failed to read your email carefully enough.
Idea: try un-blocking HTTP, and see where it ends up downloading things from.
-Original Message-
From: mark.yagnatin...@barclays.com.INVALID
Sent: Wednesday, December 13, 2023 10:47 AM
To: users@maven.apache.org
Subject: RE: Question
See release notes for 3.8.1:
https://maven.apache.org/docs/3.8.1/release-notes.html
-Original Message-
From: Asaf Mesika
Sent: Wednesday, December 13, 2023 6:07 AM
To: users@maven.apache.org
Subject: Question about HTTP blocking WARN
CAUTION: This email originated from outside our
It would need to be added to the super pom, I suppose...
https://maven.apache.org/ref/3.9.6/maven-model-builder/super-pom.html
Note that based on the comment on line 50, I suspect they are not likely to
want to do this
-Original Message-
From: Damiano Albani
Sent: Saturday, December 9,
Pretty sure that plugin is flexible enough to just copy what you tell it to?
https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
-Original Message-
From: Dave Dyer
Sent: Tuesday, December 5, 2023 10:35 PM
To: Maven Users List ; Maven Users List
; Maven
Maybe try the help address mentioned here:
https://maven.apache.org/general.html#unsubscribing-from-mailing-lists
-Original Message-
From: Alex Orlov
Sent: Monday, November 13, 2023 2:44 PM
To: users
Subject: How to unsubscribe from this list?
CAUTION: This email originated from
Can't quite make sense of all this; given that you got no replies, maybe no one
else understood either.
Could you explain a bit better?
-Original Message-
From: yukai zhao
Sent: Monday, October 30, 2023 9:10 PM
To: users@maven.apache.org
Subject: Version Management in 'mvn
Much better... thanks!
So, basically I can just take the stuff on this page:
https://support.sonatype.com/hc/en-us/articles/213464088-Configuring-Maven-HTTP-Wagon-Detailed-Logging
And add it on command line instead of editing the properties file. I'm going
to try this now!
-Original
I have to edit the file? There's no way to set this from command line?
The issue is an a shared build server and I'd rather not affect all builds.
In fact, I'm not sure where the maven installation lives, or whether I have
write permissions for it.
-Original Message-
From: Stefan CORDES
Maven 3.6.3 ... no overides
-Original Message-
From: Tamás Cservenák
Sent: Monday, October 30, 2023 10:04 AM
To: Maven Users List
Subject: Re: how to log exact HTTP request and response maven sends over the
wire?
CAUTION: This email originated from outside our organisation -
I'm getting HTTP 400 errors from a repo I'm trying to connect to and I don't
understand why.
Is there an easy way to get maven to show exactly what HTTP request gets sent
over the wire and what comes back?
This message is for information purposes only. It is not a recommendation,
advice, offer
That sounds like it might actually work
-Original Message-
From: Siddharth Jain
Sent: Sunday, October 1, 2023 8:47 PM
To: Maven Users List
Subject: question on maven dependency scope
CAUTION: This email originated from outside our organisation -
siddh...@gmail.com Do not click on
This list has some books and articles about maven:
https://maven.apache.org/articles.html
Sonatype has 3 free maven books available on its website in both HTML and pdf
form
Is the policy to list basically anything or does someone have vouch that the
books are good or...?
This message is for
In the release notes for Maven 2.0.9:
http://people.apache.org/~jvanzyl/maven-3.1.1/docs/2.0.9/release-notes.html
It says: "introduced deterministic ordering of dependencies on the classpath.
In the past, natural set ordering was used and this lead to odd results. The
ordering is now preserved
Nice catch!
-Original Message-
From: Nick Stolwijk
Sent: Friday, July 28, 2023 7:10 PM
To: Maven Users List
Subject: Re: enforcing class path order using maven enforcer
CAUTION: This email originated from outside our organisation -
nick.stolw...@gmail.com Do not click on links, open
We have enough control that it's doable, but little enough that I'm reluctant
to bother.
Thanks again for everything, things make much more sense now!
-Original Message-
From: Nick Stolwijk
Sent: Friday, July 28, 2023 7:06 PM
To: Maven Users List
Subject: Re: enforcing class path
Thanks! That makes sense. Ideally don't want to slow down the build.
Actually, on second thought, it doesn't quite make sense.
Suppose I were willing to slow down the build.
How does unpacking help me with ... wait!
Okay, I just read the pom.xml fragment you posted much more carefully.
Now I
Oh, I see, you're suggesting doing that as part of every build, instead of
once, statically?
-Original Message-
From: Nick Stolwijk
Sent: Friday, July 28, 2023 6:40 PM
To: Maven Users List
Subject: Re: enforcing class path order using maven enforcer
CAUTION: This email originated
I think I'm missing something. Currently there is a big module on maven
central with many classes, including one called TextFormat.
In my project there is a small maven module with just ONE class: a tweaked
version of TextFormat.
If I understand you correctly (doubt it), the "right" way to do
I see, so the "proper" way to do this is to create a brand new maven artifact.
Sigh. That is more trouble than I was hoping for.
Re: upstream: they've already learned their lesson and newer versions don't
have this issue.
But they're also not backwards compatible with the version we're on.
I'd like to clarify one point about why I care about order:
I have a class name which clashes on purpose!
That is, I have a third-party dependency from maven central that does the Wrong
Thing in one of its classes.
I have my own "fork" of that class which does the Right Thing.
I want to make sure
I already asked this question on Stack Overflow but got no takers so I'm trying
again here:
Suppose I have a maven module M which declares a direct dependency on modules X
and Y.
I want the classes from X to come before classes from Y in the class path.
Is there any easy way to add a rule in
I'm kind of glad you didn't notice ... I appreciated a peek behind the scenes :)
Re: effective POM ... THANK YOU for that bit of info.
You just saved me some un-countably large number of hours
-Original Message-
From: Tamás Cservenák
Sent: Thursday, July 27, 2023 11:34 AM
To: Maven
Wow, so this stuff is literally "hot off the press"! Is this likely to end up
in the 3.x series, or need to upgrade to 4?
Also, once it goes in, can this please be documented somewhere more "official"
than a release notes thingy?
-Original Message-
From: Tamás Cservenák
Sent:
Thank you! I think my main takeaway here is that things (1) in flux (and
hopefully will improve in Maven 4) and (2) a bit complicated but
(3) I can still guarantee something comes first by listing it as the first
thing in the pom (is that right?)
Thanks once more!
Mark.
-Original
Re-sending... didn't go through I think:
In the release notes for Maven 2.0.9:
http://people.apache.org/~jvanzyl/maven-3.1.1/docs/2.0.9/release-notes.html
It says: "introduced deterministic ordering of dependencies on the classpath.
In the past, natural set ordering was used and this lead to odd
True, it is "just a file". It was actually my first idea, before I emailed
this list. But though it's "just a file", it's a file I'd have to keep editing
every time I updated maven.
It's likewise a file everyone else on the team needs to be taught to edit every
time they update maven.
Fun
> But if you insist, I heared you can remove the blocked tag in your maven/conf
> settings.. ;)
But I can't, right? I'd have edit the global settings file bundled with maven
itself.
Or no?
Sorry for broken threading; I wasn't subscribed to the mailing list so I never
got your reply; not sure how to fix it now. Now I'm subscribed.
Yes, we are using nexus. One of our nexus servers is even using HTTPS. The
rest are not.
As for why we have "many" ... I'm not entirely sure. It was
I hope this is the right mailing list; if I not, would appreciate a redirect.
In the release notes for maven 3.8.1, here:
https://maven.apache.org/docs/3.8.1/release-notes.html
There is a helpfully titled section "How to fix when I get a HTTP repository
blocked?"
52 matches
Mail list logo