使用下面命令部署只有j2-admin portlet应用的Jetspeed。
$mvn jetspeed:mvn -Dtarget=min 真的不掉线吗??、????????????
Build and installation options Overview 使用jetspeed:mvn插件,一些被定义的自定义构建和安装任务(targets)被提供给Jetspeed Portal project本身。
可利用的targets的完整列表可以使用特定的命令行参数 –Dlist来查询。
$mvn -o jetspeed:mvn -Dlist 对于Jetspeed 2.2.0版本,上面命令将显示下列输出:
[INFO] [jetspeed:mvn] Available jetspeed:mvn targets: testdb [testdb] test [test] proddb [proddb] demo-install [demo-install] demo-seed [demo-seed] min-seed [min-seed] demo-deploy [demo-deploy] demo-deploy-min [demo-deploy-min] demo-deploy-dbpsml [demo-deploy-dbpsml] test-install [testdb, test-install] demo-seed-dbpsml [proddb, demo-seed, demo-db, demo-seed-dbpsml] min-seed-dbpsml [proddb, demo-seed, demo-db, min-seed-dbpsml] 真的不掉线吗??、????????????
demo-db [proddb, demo-seed, demo-db] min-db [proddb, min-seed, min-db] demo-db-psml [proddb, demo-seed, demo-db, demo-seed-dbpsml, demo-db-psml] demo [demo-install, proddb, demo-seed, demo-db, demo-deploy, demo] min [demo-install, proddb, demo-seed, demo-db, demo-deploy-min, min] min-dbpsml [demo-install, proddb, demo-seed, demo-db, demo-deploy-min, demo-deploy-dbpsml, min-seed-dbpsml, min-dbpsml] demo-dbpsml [proddb, demo-seed, demo-db, demo-seed-dbpsml, demo-db-psml, demo-deploy, demo-deploy-dbpsml, demo-dbpsml] 上表的左边列表显示的是可利用的targets,这些targets可以使用 -Dtarget=
命令行参数来执行。
右边列显示了targets的实际的链集,这些target将按照上面的循序依次被执行。
每个jetspeed:mvn targets都在下面被详细的描述。请查看Mvn Plugin配臵文档来获得更多的参考资