I'm completely new to OpenShift and so far ran in hundreds of bugs while trying to create my first application. Now I want to configure Maven to use my own goals. So far I tried:
- adding a Jenkins and configuring the Maven Build - the Jenkins didn't take up the changes and finally stopped building altogether
- adding a file .openshift/action_hook/pre_build with the content
export MAVEN_ARGS="clean package -Popenshift"
as explained here - adding a file .openshift/action_hook/build with the content
mvn clean package -Popenshift
as explained there
Evidently, the documentation is somewhat obsolete... so what is the correct way?