Skip to content

Commit

Permalink
Run maven in batch mode (-B)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanluisrp committed May 21, 2020
1 parent ded3a1a commit 9c85af9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions checkup_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function build_docs() {

git submodule update --init
echo "=======> Build "${BRANCH_OR_TAG}" docs"
mvn -q clean install -DskipTests $MAVEN_PROFILES
mvn -B -q clean install -DskipTests $MAVEN_PROFILES
echo "=======> "$BRANCH_OR_TAG" manuals created"

}
Expand Down Expand Up @@ -86,7 +86,7 @@ git submodule update --init --recursive
echo "=========> Build "$tag210" tag manuals"
# Build website docs for 2.10.x tag
cd docs
mvn clean install -DskipTests
mvn -B clean install -DskipTests
echo "=========> "$tag210" manuals created"

# -------------------------------------------------------
Expand Down Expand Up @@ -125,13 +125,12 @@ mkdir -p $current_dir/docsrc/build/html/manuals/${pre_release}/eng/users
mkdir -p $current_dir/docsrc/build/html/manuals/${pre_release}/fra/users

# ... Users
# 2.10.x
# 3.x.y
cd $current_dir/target/doc_$tagold/target/doc/en/
cp -R * $current_dir/docsrc/build/html/manuals/$tagold/eng/users
cd $current_dir/target/doc_$tagold/target/doc/fr/
cp -R * $current_dir/docsrc/build/html/manuals/$tagold/fra/users

# 3.x.y
cd $current_dir/target/doc_$current/target/doc/en/
cp -R * $current_dir/docsrc/build/html/manuals/$current/eng/users
cd $current_dir/target/doc_$current/target/doc/fr/
Expand Down Expand Up @@ -175,3 +174,4 @@ cp -R html/* $current_dir/docsrc/build/html/manuals/$tag210/eng/developer
cp -R latex/GeoNetworkDeveloperManual.pdf $current_dir/docsrc/build/html/manuals/$tag210/eng/developer

echo "=======> Website creation finished"
echo "=======> Website files are in ${current_dir}/docsrc/build/html"

0 comments on commit 9c85af9

Please sign in to comment.