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 <its_toas...@yahoo.com.INVALID> 
Sent: Tuesday, December 19, 2023 5:11 PM
To: users@maven.apache.org
Subject: Re: maven debugging frustrations


CAUTION: This email originated from outside our organisation - 
its_toas...@yahoo.com.INVALID Do not click on links, open attachments, or 
respond unless you recognize the sender and can validate the content is safe.
Some commands that might help you get started:

What are you using to build the artifact
----------------------------------------------------
mvn help:effective-pom
mvn help:effective-pom -Dverbose

What artifacts are being brought in
----------------------------------------------
mvn dependency:tree
mvn dependency:tree -Dverbose

Debug output
------------------
mvn -X package

I'm sure that there are more, but this might get you started.

. . . just my two cents
/mde/

On 12/19/2023 1:56 PM, mark.yagnatin...@barclays.com.INVALID wrote:
> 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 suddenly have an epiphany and I realize "oh, it must have broken 
> because of that thing I changed".
> But in the absence of epiphanies, I don't have any good ways to ask maven to 
> tell me what on earth is going on.
> 
> Example from today: some is failing on our build server with "Compilation 
> failure".
> Looking at the build log, there are no compiler errors in sight.
> There are a few compiler warnings, and those seem to logged twice: once at 
> warning level, and then again at error level.
> It only fails on SOME (not all) of our build configs, even though our configs 
> are pretty darn similar to each other.
> 
> So I'm left flailing around more or less at random (try compiling on a 
> different server!  Try copying the command line flags from the one that work! 
>  Etc.) What I actually want is for maven to give me some CRUMB of visibility 
> into what on earth is going wrong.
> 
> I don't even know what "Compilation failure" actually means.
> Did some process exit with non-zero status?
> Did the process fail to launch in the first place?
> Maybe there is no extra process, and the compilation is taking place in the 
> same JVM that's running maven?
> If so, what went wrong?  Did an exception get thrown?  Something else?
> 
> You get the idea.
> 
> 
> This message is for information purposes only. It is not a recommendation, 
> advice, offer or solicitation to buy or sell a product or service, nor an 
> official confirmation of any transaction. It is directed at persons who are 
> professionals and is intended for the recipient(s) only. It is not directed 
> at retail customers. This message is subject to the terms at: 
> https://clicktime.symantec.com/15t5z4LpKs5nXMa3HxmPT?h=ISgjwiKtVs_26S9D5WklDpkGWg5FN4KBfDXNiomU8xw=&u=https://www.cib.barclays/disclosures/web-and-email-disclaimer.html.
> 
> For important disclosures, please see: 
> https://clicktime.symantec.com/15t5uE9XsFQC7Qk7kQNEq?h=GqPl7-MY2KIl75o5H8ob4oRWV5EdZOb-0TiUB8Oz1g8=&u=https://www.cib.barclays/disclosures/sales-and-trading-disclaimer.html
>  regarding marketing commentary from Barclays Sales and/or Trading desks, who 
> are active market participants; 
> https://clicktime.symantec.com/15t5ejZgVQMQsaGM7jAny?h=TSMoSLWLMSCFVE_msBvk3E-bNX152eJ1jQtsfE-VVu0=&u=https://www.cib.barclays/disclosures/barclays-global-markets-disclosures.html
>  regarding our standard terms for Barclays Corporate and Investment Bank 
> where we trade with you in principal-to-principal wholesale markets 
> transactions; and in respect to Barclays Research, including disclosures 
> relating to specific issuers, see: 
> https://clicktime.symantec.com/15t5ZuNQ2nfpTdSRaAmeM?h=skuGBe0-9p6Q6bKdLkfmjGMNe-r_OrCz4yP_Du-cGJI=&u=http://publicresearch.barclays.com.
> ______________________________________________________________________
> ____________ If you are incorporated or operating in Australia, read 
> these important disclosures: 
> https://clicktime.symantec.com/15t5jZkxx231HX6GfHZwb?h=59l9AYOa74derd2shOK9ydN_NsfU5EV4DDyy0lC20Qk=&u=https://www.cib.barclays/disclosures/important-disclosures-asia-pacific.html.
> ______________________________________________________________________
> ____________ For more details about how we use personal information, 
> see our privacy notice: 
> https://clicktime.symantec.com/15t5pPxFQdibhTvCCqy6D?h=M5qHmn-V09pHP54DC8CQtxPowDPpTqQn567A_MYEi38=&u=https://www.cib.barclays/disclosures/personal-information-use.html.
> ______________________________________________________________________
> ____________
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


This message is for information purposes only. It is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service, nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is intended for the recipient(s) only. It is not directed at 
retail customers. This message is subject to the terms at: 
https://www.cib.barclays/disclosures/web-and-email-disclaimer.html. 

For important disclosures, please see: 
https://www.cib.barclays/disclosures/sales-and-trading-disclaimer.html 
regarding marketing commentary from Barclays Sales and/or Trading desks, who 
are active market participants; 
https://www.cib.barclays/disclosures/barclays-global-markets-disclosures.html 
regarding our standard terms for Barclays Corporate and Investment Bank where 
we trade with you in principal-to-principal wholesale markets transactions; and 
in respect to Barclays Research, including disclosures relating to specific 
issuers, see: http://publicresearch.barclays.com.
__________________________________________________________________________________
 
If you are incorporated or operating in Australia, read these important 
disclosures: 
https://www.cib.barclays/disclosures/important-disclosures-asia-pacific.html.
__________________________________________________________________________________
For more details about how we use personal information, see our privacy notice: 
https://www.cib.barclays/disclosures/personal-information-use.html. 
__________________________________________________________________________________

Reply via email to