【发布时间】:2015-05-26 06:40:39
【问题描述】:
我在 OpenShift 上的 Java 环境中使用 WildFly 应用服务器。在我的pom.xml 文件中,我指定运行bower install(使用exec-maven-plugin)。
运行 bower install 和 exec-maven-plugin 需要在操作系统上存在 Bower,但默认情况下我的 OpenShift 实例没有安装 Node.js 和 Bower。
是否可以为每个 Action Hook 安装 Bower?
我已尝试使用“预构建操作挂钩”进行以下操作:
/.openshift/action_hooks/pre_build
#!/bin/bash
npm install -g bower
我还执行了以下操作:
git update-index --chmod=+x .openshift/action_hooks/pre_build
但是看起来我的 Action Hook 没有执行:
Not stopping cartridge wildfly because hot deploy is enabled
Repairing links for 1 deployments
Syncing git content to other proxy gears
Building git ref 'master', commit f330f6d
No such file or directory - /var/lib/openshift/54e8f8984382ecc9a1000047/app-root/runtime/repo/.openshift/action_hooks/pre_build
【问题讨论】:
标签: java openshift bower exec-maven-plugin action-hook