Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.7
-
None
-
None
Description
Here is the test case to reproduce this problem. Take the following two pom.xml files
<?xml version="1.0" encoding="UTF-8"?> <project> <groupId>org.bar</groupId> <artifactId>foo</artifactId> <name>foo</name> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <modelVersion>4.0.0</modelVersion> <distributionManagement> <site> <id>foo-site</id> <url>file://C:/Documents and Settings/foo/.m2/site/${project.artifactId}</url> </site> </distributionManagement> </project>
<?xml version="1.0" encoding="UTF-8"?> <project> <groupId>org.bar</groupId> <artifactId>baz</artifactId> <name>baz</name> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>foo</artifactId> <groupId>org.bar</groupId> <version>1.0-SNAPSHOT</version> </parent> </project>
And run the site-deploy goal on each. What you get under the site directory is this
- site /- foo ---/site docs /- baz ---/- baz (extra directory) --- ---/site docs
This is the simplest test case. In the case where I have a "grandparent" pom, the site directory uses the grandparent/parent as the path to the site, and doesn't use the actual artifactId of the artifact I'm creating the site for.
Attachments
Attachments
Issue Links
- duplicates
-
MNG-5951 add an option to avoid path addition to inherited URLs
- Closed
- is depended upon by
-
MPIR-234 SCM-link in site of multimodule projects should not append module name by default (at least for git)
- Closed
- is duplicated by
-
MNG-5034 Wrong evaluation of {project.artifactId} variable in child POMs if included in <url> element
- Closed
- is related to
-
MSITE-579 SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
- Closed
-
MNG-4508 No way to avoid adding artifactId to site urls
- Closed
- is superceded by
-
MNG-5951 add an option to avoid path addition to inherited URLs
- Closed
- relates to
-
MNG-3133 DefaultModelInheritence::appendPath assumes it is operating on interpolated/literal paths
- Closed
-
MNG-3254 artifactId is not appended any more in distributionManagement.site.url in multi modules when it's not defined in a child
- Closed
-
MNG-4878 Inheritance of URLs behaves differently for aggregated and non-aggregated child projects
- Closed
-
MNG-3846 [regression] Inherited URLs are not automatically extended with the child's artifactId
- Closed
-
MNG-2872 Don't append artifactId when parent pom already has artifactId in URL
- Closed
-
MNG-4670 SCM uses artifactId in multi module builds, regardeless of the module name
- Closed
-
MSITE-277 site:deploy possibility to choose directory tree when using sub-modules
- Closed
-
MNG-4507 missing IT for site urls
- Closed
- supercedes
-
MNG-2290 Generated URLs in POMs of child modules
- Closed