3
maven plugin frontend-maven-plugin:0.0.23需要maven 3.1.0,但openshift有默认的3.0.4。如何将openshift默认的maven版本从3.0.4升级到3.1.0?
下面是对 “混帐推” Maven的错误,以openshift:
remote: [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:install-node
-and-npm (install node and npm) on project taxtab-controllers: The plugin com.github.eirslett:fronte
nd-maven-plugin:0.0.23 **requires Maven version 3.1.0** -> [Help 1]
我尝试以下步骤来解决编译:
- 我在安装了最新的Maven 3.3.1
$OPENSHIFT_HOMEDIR\app-root\runtime\apache-maven
。 - 试着在两个动作钩子中添加下面的导出:pre_build和build,但仍然不起作用。
export M2_HOME=/var/lib/openshift/5497cdff4382ec255f00002c/app-root/runtime/apache-maven/apache-maven-3.3.1 export M2=$M2_HOME/bin export PATH=$M2:$PATH
我也试图与上述变量的设置添加.bash_profile
在~/app-root/data/
,仍然没有工作。