site-deploy
当我在调用release:perform
目标时尝试让 wagon 插件在生命周期内上传文件时,我遇到了一个奇怪的问题。似乎 wagon 在我调用时正确上传了文件,mvn site-deploy
但它只是响应
没有可上传的
当调用mvn release:perform
which 应该调用site site-deploy
文档中所述的阶段时。
这是 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 告诉我正确的目标已经开始:
[INFO] Executing goals 'deploy site-deploy'...
[INFO] [INFO] Scanning for projects...
但 wagon 不上传任何东西:
[INFO] [INFO] --- wagon-maven-plugin:1.0-beta-3:upload (default) @ exp4j ---
[INFO] [INFO] Nothing to upload.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
有没有人发现我的问题导致 maven 在调用时按预期工作site-deploy
但在执行时失败release:perform
?