Maven 2 & 3

Don't append artifactId when parent pom already has artifactId in URL

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Duplicate
  • Affects Version/s: 2.0.5
  • Fix Version/s: None
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

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.

Issue Links

Activity

Hide
M. Rohrmoser added a comment - - edited

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.

Show
M. Rohrmoser added a comment - - edited 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.

People

Vote (5)
Watch (5)

Dates

  • Created:
    Updated:
    Resolved: