I would like to use Maven to upload the content of my website on Sourceforge, I don't want to generate and upload the reports, the project info, the CSS and the images of the skin. I have succeeded in generating no report but there are still the two unwanted directories containing the CSS and the images of the skin:
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mygroupid</groupId>
<artifactId>myartifactid</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>myname</name>
<description>mydescription</description>
<url>http://www.somewhere.fr</url>
<inceptionYear>2016</inceptionYear>
<distributionManagement>
<site>
<id>myproject.sf.net</id>
<url>scp://shell.sourceforge.net/home/project-web/myproject/htdocs/tmp/www_somewhere_fr</url>
</site>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
<reportSets>
<reportSet>
<reports></reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<build>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.5.1</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Question: How can I get rid of those directories?
I tried the very last suggestion in this tutorial but it doesn't work in my case. Setting generateReports
and generateProjectInfo
to false
didn't help. Feel free to suggest a more appropriate plugin to do this task if maven-site-plugin isn't the right one.