ref #10204, ref #10205 add commons-beanutils and json-lib to .gitignore in taxeditor
[taxeditor.git] / setup-project.sh
index 1799023631dcd5af1fb79cb9db1f9a88df8b2c9e..8aa20be9ccd5602b42628b5e4fdac4232452af23 100755 (executable)
@@ -1,6 +1,15 @@
 #!/bin/bash
 
-echo -n "Use the local repo? [y,n]"
+echo -n "Clear eclipse project? [y,N]"
+read choice
+
+if [ "$choice" == "y" ]; then
+    #remove all ".classpath" and ".project" files and ".settings" folders
+       find . -type f \( -name ".classpath" -o -name "*.project" \) -prune -exec rm -f {} \;
+       find . -type d -name ".settings" -prune -exec rm -rf {} \;
+fi
+
+echo -n "Use the local repo? [y,N]"
 read choice
 
 if [ "$choice" == "y" ]; then
@@ -9,5 +18,5 @@ fi
 
 # cp -f eu.etaxonomy.taxeditor.cdmlib/.classpath.template eu.etaxonomy.taxeditor.cdmlib/.classpath
 
-mvn clean install -DskipTests
-mvn $mvn_profile  -Dlocalrepo=~/.m2/repository validate -pl eu.etaxonomy.taxeditor.cdmlib,eu.etaxonomy.taxeditor.molecular.lib
+mvn clean install -U -DskipTests -DskipITs
+mvn $mvn_profile  -U -Dlocalrepo=~/.m2/repository validate -pl eu.etaxonomy.taxeditor.cdmlib,eu.etaxonomy.taxeditor.molecular.lib