1 |
e4e551bd
|
Andreas Kohlbecker
|
#!/bin/bash
|
2 |
|
|
|
3 |
6a62b0e6
|
Andreas Kohlbecker
|
echo -n "Clear eclipse project? [y,N]"
|
4 |
e1e6ddc7
|
Andreas Kohlbecker
|
read choice
|
5 |
|
|
|
6 |
|
|
if [ "$choice" == "y" ]; then
|
7 |
7872e2e8
|
Andreas Müller
|
#remove all ".classpath" and ".project" files and ".settings" folders
|
8 |
f1ae6ccd
|
Patrick Plitzner
|
find . -type f \( -name ".classpath" -o -name "*.project" \) -prune -exec rm -f {} \;
|
9 |
|
|
find . -type d -name ".settings" -prune -exec rm -rf {} \;
|
10 |
e1e6ddc7
|
Andreas Kohlbecker
|
fi
|
11 |
|
|
|
12 |
6a62b0e6
|
Andreas Kohlbecker
|
echo -n "Use the local repo? [y,N]"
|
13 |
e4e551bd
|
Andreas Kohlbecker
|
read choice
|
14 |
|
|
|
15 |
|
|
if [ "$choice" == "y" ]; then
|
16 |
|
|
mvn_profile='-P local-repository'
|
17 |
|
|
fi
|
18 |
|
|
|
19 |
2cd5eebf
|
Andreas Kohlbecker
|
# cp -f eu.etaxonomy.taxeditor.cdmlib/.classpath.template eu.etaxonomy.taxeditor.cdmlib/.classpath
|
20 |
|
|
|
21 |
592cf090
|
Andreas Kohlbecker
|
mvn clean install -U -DskipTests -DskipITs
|
22 |
5d0c723b
|
Andreas Kohlbecker
|
mvn $mvn_profile -U -Dlocalrepo=~/.m2/repository validate -pl eu.etaxonomy.taxeditor.cdmlib,eu.etaxonomy.taxeditor.molecular.lib
|