當我在調用release:perform
目標時,我試圖讓無人機插件在site-deploy
生命週期中上傳文件,我有一個奇怪的問題。 看來旅行車正確上傳文件時,即時通訊援引mvn site-deploy
但它只是用maven-wagon-plugin上傳問題
沒有迴應上傳
調用mvn release:perform
這是應該調用階段site site-deploy
如文檔中表示,當
。
這是旅行車的插件配置。
<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>
行家告訴我正確的目標是開始:
[INFO] Executing goals 'deploy site-deploy'...
[INFO] [INFO] Scanning for projects...
,但貨車沒有任何上傳:
[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
時失敗?
評論? – fasseg 2011-03-31 07:01:41
antrun運行ant scp任務。 – bmargulies 2011-03-31 12:45:12
我無法評論其他旅行車供應商,但對於WebDAV,它按預期工作。 – 2011-09-22 16:50:37