X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/blobdiff_plain/e1e6ddc7ad50e7e0191c1b52f52bf4bed3206203..430c589545ff1761016b54051a8731651cb40a9f:/setup-project.sh diff --git a/setup-project.sh b/setup-project.sh index c3fafc348..1e7352ed7 100755 --- a/setup-project.sh +++ b/setup-project.sh @@ -1,14 +1,14 @@ #!/bin/bash -echo -n "Clear eclipse project? [y,n]" +echo -n "Clear eclipse project? [y,N]" read choice if [ "$choice" == "y" ]; then - find -type f -name ".classpath" -or -name ".project" -prune -exec rm -f {} \; - find -type d -name ".settings" -prune -exec rm -rf {} \; + 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]" +echo -n "Use the local repo? [y,N]" read choice if [ "$choice" == "y" ]; then @@ -17,5 +17,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 +mvn $mvn_profile -U -Dlocalrepo=~/.m2/repository validate -pl eu.etaxonomy.taxeditor.cdmlib,eu.etaxonomy.taxeditor.molecular.lib