Closed cmoulliard closed 9 years ago
I propose to add a new step called setup_maven to create what is missing into the gear/application with this script
cd $OPENSHIFT_DATA_DIR
M2_HOME="$OPENSHIFT_DATA_DIR/.m2"
export M2_HOME
mkdir -p $M2_HOME
mkdir -p $M2_HOME/repository
echo -e "<settings>\n <localRepository>$OPENSHIFT_DATA_DIR/.m2/repository</localRepository>\n</settings>\n" > $M2_HOME/settings.xml
Advantage to have a local Maven repo is that a user can clone a project into the gear and upload it next into the Fuse Maven repo to install its own project or profiles
When an artifact is not retrieved from the local Karaf system maven repository, our code is looking into .m2/repository which is not created by default on a gear machine
We should update the cartridge definition to create .m2 directory like also the repository folder and also perhaps create a settings.xml file pointing to that local directory too