Thursday, March 26, 2015

Set the p2 location during maven clean build

We tend to remove or rename default repository when we need to clean build our maven component. Rather doing that simply create a new directory (may be within /tmp) and use that as the repository while building.
mvn clean install -Dmaven.repo.local=<PATH_TO_REPOSITORY>

2 comments:

  1. mvn clean install -Dmaven.repo.local= -DskipUiTests=false -Dwebdriver.firefox.bin=

    mvn clean install -Dmaven.repo.local=/tmp/es-m2 -DskipUiTests=false -Dwebdriver.firefox.bin=/home/udara/wso2/playground/firefox/firefox-bin

    ReplyDelete
  2. running UI tests in headless mode,

    sudo Xvfb :10 -ac
    export DISPLAY=:10

    ReplyDelete