• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Multi Module Maven Project using SVN

 
Marshal
Posts: 3180
466
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a multi-module Maven project which is version controlled using SVN.  I need to be able to release the modules independently, so each module has it's own trunk and maven version.

The directory structure is like this:
Since the Maven reactor expects the modules to be located directly below the parent, maven complains that it cannot find the modules because the modules are below it's trunk directory.

To work-around this, I appended /trunk to the module path in the parent pom:
I also needed to add a relativePath element to each module pom so that they could find the parent:
Is this normal, or is there some way to make the reactor SCM-aware, and deal with trunks and branches without the need to specify the path in each pom?
 
author & internet detective
Posts: 40181
812
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ron McLeod wrote:I have a multi-module Maven project which is version controlled using SVN.  I need to be able to release the modules independently, so each module has it's own trunk and maven version.


I'm not sure that you need to have a separate trunk/tags. I know you can have unrelated projects in the same trunk like:


That lets you use a relatie path in your aggregator pom and not to have to deal with the /trunk hack.

Cow for an excellent question!
 
A tiny monkey bit me and I got tiny ads:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic