Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
2.0-beta-5
-
None
-
None
-
Windows, Maven 2.0.5, site plugin version 2.0-beta-5
Description
I work on a project with several modules, for example :
myproject
+ commons
+ business
+ ...
(myproject is also the parent project for all modules)
In the parent pom.xml, I define the distribution management in order to deploy my whole site on a network drive (which is not mapped):
<distributionManagement>
<site>
<id>website</id>
<url>file://///xxxx/yyy/sites/my-site</url>
</site>
</distributionManagement>
When I deploy the whole site (command mvn site-deploy run on the parent directory), the "core" site is correctly deployed on my network drive, but all modules are deployed on my C: drive (in the directory C:\xxxx\y\sites\my-site\...).
As the core site is correctly deployed, I think the problem is that the deployment URL is not correctly given to all project children. Maybe it is a Maven bug, not a Site Plugin problem?
The only way to make the deployment works correctly is to redefine, for each modules, the distributionManagement!
Note that this problem does not occur if the network drive is mapped (for example if the distribution URL is something like "F:/sites/my-site/").