adapt master to develop
[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 #remove all ".classpath" and ".project" files and ".settings" folders
8 find . -type f \( -name ".classpath" -o -name "*.project" \) -prune -exec rm -f {} \;
9 find . -type d -name ".settings" -prune -exec rm -rf {} \;
10 fi
11
12 echo -n "Use the local repo? [y,N]"
13 read choice
14
15 if [ "$choice" == "y" ]; then
16 mvn_profile='-P local-repository'
17 fi
18
19 # cp -f eu.etaxonomy.taxeditor.cdmlib/.classpath.template eu.etaxonomy.taxeditor.cdmlib/.classpath
20
21 mvn clean install -U -DskipTests -DskipITs
22 mvn $mvn_profile -U -Dlocalrepo=~/.m2/repository validate -pl eu.etaxonomy.taxeditor.cdmlib,eu.etaxonomy.taxeditor.molecular.lib