export M2_HOME=<%= node['maven']['m2_home'] %>
export JAVA_HOME=<%= node['java']['java_home'] %>

export MAVEN_OPTS="-Dmaven.repo.local=<%= node['maven']['repository_root'] %>/m2/repository"



export M2_HOME=<%= node['maven']['m2_home'] %>
export JAVA_HOME=<%= node['java']['java_home'] %>

# This line is causing trouble
#export MAVEN_OPTS="-Dmaven.repo.local=<%= node['maven']['repository_root'] %>/m2/repository"



Remove repointing for maven local user repo
Remove repointing for maven local user repo