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://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. __________________________________________________________________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org