Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to specify multiple (s) in a POM at a greater depth than 1 level?

0
Posted

Is it possible to specify multiple (s) in a POM at a greater depth than 1 level?

0

Yes. This can be done in two ways: 1. add the extra path in the top level POM, or 2. add extra parent poms at different levels, if approriate. For example, you have the following structure: /A/pom.xml (multi-module POM) /A/B/C/pom.xml /A/B/C/D/pom.xml And you want the modules at level C and D built when the multi-module POM is built. For the first solution: Add the following at the top level POM: A/B For the second solution: Add the following at the top level POM: B And in directory A/B/, add an extra parent POM and add the following: C Both ways are effectively the same, but if you have that inheritance structure, the second gives a more natural grouping (eg, you can cd into “B” and build all its subprojects only). If you do the first solution, the children poms should have the following hint in the parent element: A ..

0

Yes. This can be done in two ways: 1. add the extra path in the top level POM, or 2. add extra parent poms at different levels, if approriate. For example, you have the following structure: /A/pom.xml (multi-module POM) /A/B/C/pom.xml /A/B/C/D/pom.xml And you want the modules at level C and D built when the multi-module POM is built.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.