Im having a strange problem when im trying to let the wagon plugin upload files during the site-deploy
lifecycle when i'm invoking the release:perform
goal.
It seems wagon uploads the files correctly when im invoking mvn site-deploy
but it just responds with
Nothing to upload
when calling mvn release:perform
which is supposed to invoke the phases site site-deploy
as stated in the documentation.
this is the plugin config for wagon.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-3</version>
<executions>
<execution>
<id>upload-jars</id>
<phase>deploy site-deploy</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<fromDir>target/checkout/target</fromDir>
<includes>*.jar</includes>
<url>scpexe://nohost.com</url>
<toDir>/var/www/projects/test</toDir>
<serverId>server - projects</serverId>
</configuration>
</execution>
</executions>
</plugin>
maven tells me the right goals were started:
[INFO] Executing goals 'deploy site-deploy'...
[INFO] [INFO] Scanning for projects...
but wagon doesn't upload anything:
[INFO] [INFO] --- wagon-maven-plugin:1.0-beta-3:upload (default) @ exp4j ---
[INFO] [INFO] Nothing to upload.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
Does anyone spot my problem that causes maven to work as expected when invoking site-deploy
but failing when doing a release:perform
?