We have the following project structure in SVN with a parent (not an aggregator) project that defines the overall configuration. The parent is individually managed and freed.
trunk +parent pom.xml +project1 pom.xml +project1_1 pom.xml +project1_2 pom.xml +project2 pom.xml
Thus, each real project (project1, project2) is used as an aggregator for its subprojects. General configuration parameters (Java Compiler version, other plugins) are stored in the parent object, which is used as the Maven parent in all projects (project1, project2).
One of the options that I would like to define in the parent is the SCM URL for Subversion, for example. http://svnhost/base/trunk/parent in parent pom.xml.
When I do this, individual projects inherit this option, but, of course, do not reflect the relative nature of the path. In project 1, this is allowed http://svnhost/base/trunk/parent/ - I checked this with mvn help:effective-pom .
Is there a way to specify an SCM connection so that it is resolved relative to the parent? Or do I need to provide an SCM URL in each individual project?
source share