Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Duplicate
-
Affects Version/s: 2.0.5
-
Fix Version/s: None
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
I want to define the url for all my projects from one central pom. the pom project itself has the same url structure as the child projects.
This is for all urls that can be inherited, e.g. distribution site, deployment url, etc.
I would like to specify some complete url like
protocol:/my.server.com/some/path/to/the/${groupId}/${artifactId}
For example, with the actual implementation I get either the parent pom site deployed to the groupId directory, or I get the child projects deployed to the grouId/artifactId/artifactId directory.
At the moment I have add the urls on every project, although they always have the same pattern.
I ran into this one, too.
despite http://maven.apache.org/guides/mini/guide-site.html saying
"Note: the trailing slash in the URL above indicates that any subprojects that inherit this value should append their artifact ID to the path instead of using it as-is."
this seems not to be honoured if the <distributionManagement><site><url> is defined in a inherited (parent) pom.