2015-04-02 156 views
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] 

我尝试以下步骤来解决编译:

  1. 我在安装了最新的Maven 3.3.1 $OPENSHIFT_HOMEDIR\app-root\runtime\apache-maven
  2. 试着在两个动作钩子中添加下面的导出: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/,仍然没有工作。

回答

2

我有同样的问题。降级插件的一个版本来解决这个问题:

<groupId>com.github.eirslett</groupId> 
<artifactId>frontend-maven-plugin</artifactId> 
<version>0.0.22</version> 

而不是0.0.23

不过,我跑然后进入下一个问题,这是NPM安装不工作,由于缺乏根本的。