Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-258

Deployment on network drive for multi-modules fails for modules sites

    XMLWordPrintableJSON

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/").

      Attachments

        Activity

          People

            Unassigned Unassigned
            romaintaz Romain Linsolas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: