Merge branch 'release/5.19.0'
[taxeditor.git] / setup-project.sh
1 #!/bin/bash
2
3 echo -n "Clear eclipse project? [y,N]"
4 read choice
5
6 if [ "$choice" == "y" ]; then
7 find . -type f \( -name ".classpath" -o -name "*.project" \) -prune -exec rm -f {} \;
8 find . -type d -name ".settings" -prune -exec rm -rf {} \;
9 fi
10
11 echo -n "Use the local repo? [y,N]"
12 read choice
13
14 if [ "$choice" == "y" ]; then
15 mvn_profile='-P local-repository'
16 fi
17
18 # cp -f eu.etaxonomy.taxeditor.cdmlib/.classpath.template eu.etaxonomy.taxeditor.cdmlib/.classpath
19
20 mvn clean install -U -DskipTests -DskipITs
21 mvn $mvn_profile -U -Dlocalrepo=~/.m2/repository validate -pl eu.etaxonomy.taxeditor.cdmlib,eu.etaxonomy.taxeditor.molecular.lib