RE: Maven Book recommendation

2022-01-27 Thread Marc Hoppins
I am not sure anything exists, but I would appreciate such a thing also. -Original Message- From: Bruno Melloni Sent: Thursday, January 27, 2022 3:10 PM To: users@maven.apache.org Subject: Maven Book recommendation EXTERNAL It became very clear to me that my current approach of googli

Re: Maven Book recommendation

2022-01-27 Thread Delany
Hi Bruno. The online Maven documentation is excellent - took me a while to get comfortable navigating it though. What I'd like from Maven for myself and people learning is to maintain a curated list of open source projects that use Maven. I've learnt a lot from other github projects. Delany On Fr

Re: Maven Book recommendation

2022-01-27 Thread Alexander Kriegisch
Talking about real books: My quick search in a well-known online book store yielded several results. One of them is the now unmaintained Sonatype book from 2008 (available for free online), which somebody else mentioned in this thread. The others, most of them more recent, I do not know, but mayb

Re: Maven Book recommendation

2022-01-27 Thread Manfred Moser
Just keep in mind that we have stopped maintenance on these books a long time ago and things like plugin versions and such are outdated. The general concepts and so however all still apply. manfred Thad Humphries wrote on 2022-01-27 16:29 (GMT -08:00): > I started with "Maven by Example" which

Re: SOLVED: Strange ClassCastException during maven install

2022-01-27 Thread Nils Breunese
Bruno wrote: > I read that BOM article and many others that I googled. If I understood > correctly, it seems that the ideal POM structure is: > > * To have a master BOM POM that specifies key library versions and > pre-supplied BOMs (like spring-framework-bom) in the > dependencyManagemen

Re: Maven Book recommendation

2022-01-27 Thread Thad Humphries
I started with "Maven by Example" which is free from Sonatype: https://books.sonatype.com/mvnex-book/reference/index.html I worked by way though this book over two days, then using it and "Maven: The Complete Reference" ( https://books.sonatype.com/mvnref-book/reference/index.html) and Apache's we

RE: Problems with the maven-failsafe-plugin and loading of resources from (test-)jars

2022-01-27 Thread Falko Modler
Hi Christofer, you might want to try disabling https://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#useModulePath You could also try to use the TCCL instead (Thread.currentThread().getContextClassloader()). Cheers, Falko

Maven Book recommendation

2022-01-27 Thread Bruno Melloni
It became very clear to me that my current approach of googling tutorials, guides and solutions is a wildly inadequate approach to learn Maven.  Mainly because all of those are either far too basic for "real life" projects, or because they assume prior knowledge that I don't yet have. So, I a

RE: Problems with the maven-failsafe-plugin and loading of resources from (test-)jars

2022-01-27 Thread Christofer Dutz
As usual, as soon as I take the time to write the email, I seem to find a solution shortly after that ... So, it seems that I managed to load the resource by changing: this.testsuiteDocumentXml = getClass().getResourceAsStream(testsuiteDocument); To: this.testsuiteDocumentXml = getClass().ge

RE: Problems with the maven-failsafe-plugin and loading of resources from (test-)jars

2022-01-27 Thread Christofer Dutz
Sorry for the double posting ... guess my mailserver had hickups and now I know why I had to write it twice 😉 I think this version might be the better one .. Chris -Original Message- From: Christofer Dutz Sent: Donnerstag, 27. Januar 2022 22:57 To: Maven Users List (users@maven.apache

Problems with the maven-failsafe-plugin and loading of resources from (test-)jars

2022-01-27 Thread Christofer Dutz
Hi, in the Apache PLC4X build we recently noticed that surefire and failsafe 2.22.2 were missing to pickup some of our tests, which we use with @TestFactory annotation. It turns out that when switching to 3.0.0-M5 this problem is resolved. However, a new problem is now causing problems. In our

Problems loading resources in maven-failsafe-plugin 3.0.0-M5 integration tests

2022-01-27 Thread Christofer Dutz
Hi, in the Apache PLC4X project we've got some tests that use @TestFactory and we've seen failsafe 2.22.2 and surefire 2.22.2 sometimes skip finding these. So we recently updated to 3.0.0-M5 and noticed that now all tests are correctly found. However we now have a different problem: In these t

Re: SOLVED: Strange ClassCastException during maven install

2022-01-27 Thread Bruno
Thank you Nils, I apologize for my ignorance, as I am still fairly new to Maven. I understand the basics well enough but it is very obvious to me that there is a lot of specialized knowledge that is assumed and not well explained in most of the tutorials/guides I googled. My library is a pri