Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread garym
Hi Karl, Thank you for the suggestion to use maven-shade/maven-assembly-plugin(s). I was planning to use them, but haven't gotten around to them yet. I was hung up on the checkout/build thing. :- Maybe on Tuesday. The libraries are in 7 modules to manage the development cycle, specifically

Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread Karl Heinz Marbaise
Hi Gary, On 24.03.19 17:55, ga...@oedata.com wrote: Hi Nick, Thanks for the questions, I'll try to explain. The parent pom aggregates a library (jar) from different and sometimes interdependent modules. The parent pom checks out the module sources with the poms and compiles them into a

Re: Using maven-dependency-plugin:unpack in "mvn compile" build

2019-03-24 Thread Christofer Dutz
Hi Thomas, thanks for that info ... I had totally forgotten the prepare-package phase ... of course using this would reduce a lot of problems. I changed our build accordingly. I guess if someone does a "mvn prepare-package" ... well I guess then he's just looking for trouble ;-) Chris Am

Re: Using maven-dependency-plugin:unpack in "mvn compile" build

2019-03-24 Thread Thomas Broyer
Rule of thumb: in a react build, don't ever use any lifecycle phase prior to package, and if you want to skip tests, use -DskipTests or -Dmaven.test.skip. Corollary: stick with "package" and "verify" (I consider "mvn install" is an anti-pattern). BTW, as another rule of thumb, use "processClasses"

Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread garym
Hi Nick, Thanks for the questions, I'll try to explain. The parent pom aggregates a library (jar) from different and sometimes interdependent modules. The parent pom checks out the module sources with the poms and compiles them into a single jar. I was using the modules pattern in in the

Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread Kyle Marek
You can arbitrarily switch to other tags and branches with submodules. It is just a simple `git checkout X` from the submodule's directory. -Kyle On 3/24/19 9:51 AM, ga...@oedata.com wrote: > Hi Nick, > > Thank you for that suggestion. That was also suggested on stackoverflow by > Karl. That

Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread garym
Hi Nick, Thank you for that suggestion. That was also suggested on stackoverflow by Karl. That method is better suited for static-ish configurations. I need a BOM type system where I can dynamically switch between tags and branches for different modules, much like clear case. I'll be moving

Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread Nikki Novak
Gary, Having modules residing in other repositories is not a problem... ...but why do they not have a pom.xml ? ...Is the POM on a different branch ? ...Are the modules using ANT or gradle instead ? ...Are you auto-generating POMs ? Like, I'm really scratching my head trying to figure out what

Re: Using maven-dependency-plugin:unpack in "mvn compile" build

2019-03-24 Thread Christofer Dutz
Hi Maxim, unfortunately that doesn't help. The problem is that if we do a "mvn compile" no archiving (jar/war building) is done at all ... Guess what we would need, would be profiles based on the last maven phase being built. So if: - "last phase < package" --> Copy the content without