Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.3
-
None
-
None
Description
When using a profile for specifying the site url the links to the sub-modules get broken.
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.company.application</groupId> <artifactId>application</artifactId> <packaging>pom</packaging> <version>04.00.02-9_19-SNAPSHOT</version> <name>application</name> <prerequisites> <maven>2.2.1</maven> </prerequisites> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.3</version> </plugin> </plugins> </pluginManagement> </build> <profiles> <profile> <id>company</id> <distributionManagement> <site> <id>application.site</id> <url>scpexe://projects.company.com/srv/filestore/application/site/siteFixing/</url> </site> </distributionManagement> </profile> </profiles> <modules> <module>com.company.application.module</module> </modules> </project>
Executed command: mvn clean site-deploy -P company
Reproducible with: maven-site-plugin 2.3 but not with 2.2.
When specifying the distributionManagement section outside of a profile everything works fine.
The site of the parent module is deployed to https://projects.company.com/application/filestore/site/siteFixing/index.html but the link to the sub-module points to https://projects.company.com/module/index.html even though the sub-module has been deployed to https://projects.company.com/application/filestore/site/siteFixing/module/index.html .