Error when deploying site of a maven multi module project with FTP

Posted by julien on Stack Overflow See other posts from Stack Overflow or by julien
Published on 2011-09-23T09:50:24Z Indexed on 2012/06/11 22:40 UTC
Read the original article Hit count: 201

Filed under:
|
|
|
|

I have a multi module project. When I launch mvn site:deploy, the deployment of the base module works fine, but it fails to create the directory of the module sites on the FTP server:

[INFO] Error uploading site
Embedded error: Required directory: '/myremoteftprepository/myproject-mymodule' is missing

When I create the missing directory by hand, it works fine, but I would like to avoid that. It is surprising that the deploy command do not create it. Do you how to force this directory creation? Is it a bug in the wagon-ftp plugin?

FYI, here is my POM:

<build>
    <extensions>
        <!-- Enabling the use of FTP -->
        <extension>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-ftp</artifactId>
            <version>1.0</version>
        </extension>
    </extensions>
</build>

I have chosen to include the javadoc with:

<reporting>
    <plugins>
        <!-- include javadoc in the site -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.8</version>
            <configuration>
                <show>public</show>
            </configuration>
        </plugin>
    </plugins>
</reporting>

and

<distributionManagement>
    <site>
        <id>site</id>
        <name>maven site</name>
        <url>ftp://ftp.blabla.org/myremoteftprepository</url>
    </site>
</distributionManagement>

and my settings.xml is good.

© Stack Overflow or respective owner

Related posts about java

Related posts about maven