|
site:generateゴールで作成したファイル群をWEBに公開したいですね。こんな時に使用するゴールが maven site:fsdeploy です。指定されたディレクトリにファイルをコピーするだけなんですが。 使い方は、project.xmlで <siteAddress>[サイトのURL(ホスト名)]</siteAddress> <siteDirectory>/var/www/html/ <-ディレクトリ</siteDirectory> と指定してsite:fsdeployを実行すると $ maven site:fsdeploy
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-rc2
build:start:
xdoc:init:
site:init:
site:fsdeploy:
[echo]
siteAddress = ホスト名
siteDirectory = ディレクトリ
[copy] Copying 259 files to ディレクトリ
BUILD SUCCESSFUL
Total time: 17 seconds
となって完了です。簡単ですね。*1 この記事は 現在のアクセス:5240 |