Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0.7
-
Fix Version/s: Issues to be reviewed for 3.x
-
Component/s: Inheritance and Interpolation, Sites & Reporting
-
Labels:None
-
Number of attachments :
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.
Issue Links
- is duplicated by
-
MNG-5034
Wrong evaluation of {project.artifactId} variable in child POMs if included in <url> element
-
- is related to
-
MSITE-579
SCM URLs Incorrect for Multi-Module Build Where Module Name != artifactId
-
-
MNG-4508
No way to avoid adding artifactId to site urls
-
- relates to
-
MNG-3133
DefaultModelInheritence::appendPath assumes it is operating on interpolated/literal paths
-
-
MNG-3254
artifactId is not appended any more in distributionManagement.site.url in multi modules when it's not defined in a child
-
-
MNG-4878
Inheritance of URLs behaves differently for aggregated and non-aggregated child projects
-
-
MNG-3846
[regression] Inherited URLs are not automatically extended with the child's artifactId
-
-
MNG-2872
Don't append artifactId when parent pom already has artifactId in URL
-
-
MNG-4670
SCM uses artifactId in multi module builds, regardeless of the module name
-
-
MSITE-277
site:deploy possibility to choose directory tree when using sub-modules
-
-
MNG-4507
missing IT for site urls
-
- supercedes
-
MNG-2290
Generated URLs in POMs of child modules
-
I hereby kindly ask you to fix the bug.
I really have problems convincing my colleagues to switch to Maven when such a bug is not fixed for month.