Many additions and changes
This commit is contained in:
@@ -96,7 +96,9 @@ build_mvn() {
|
||||
echo "[INFO] Realizando build Maven:"
|
||||
echo " ${build_cur#"$repo_dir"}"
|
||||
|
||||
mvn --quiet clean install --file ./pom.xml --settings ~/.m2/settings.xml
|
||||
# mvn --quiet clean install -DskipTests --update-snapshots --file ./pom.xml --settings ~/.m2/settings.xml
|
||||
# mvn --quiet clean install -DskipTests --file ./pom.xml --settings ~/.m2/settings.xml
|
||||
mvn clean install -DskipTests --file ./pom.xml --settings ~/.m2/settings.xml
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "[INFO] A build Maven resultou em erros. O script irá encerrar agora."
|
||||
@@ -139,20 +141,55 @@ get_substring_after_string() {
|
||||
|
||||
sort_pom_paths_for_compilation_order() {
|
||||
local unsorted_pom_paths=("$@")
|
||||
local -A compilation_order_list=(
|
||||
['main']=''
|
||||
['commons']=''
|
||||
['security']=''
|
||||
['tools']=''
|
||||
['geo']=''
|
||||
['meta']=''
|
||||
['framework']=''
|
||||
['faces']=''
|
||||
['application']=''
|
||||
['plugins']=''
|
||||
['cdk']=''
|
||||
['auditing']=''
|
||||
)
|
||||
local -A compilation_order_list=()
|
||||
|
||||
if [[ $repo_dir == *"cdk"* ]]; then
|
||||
compilation_order_list=(
|
||||
['main']=''
|
||||
['commons']=''
|
||||
['security']=''
|
||||
['tools']=''
|
||||
['geo']=''
|
||||
['meta']=''
|
||||
['framework']=''
|
||||
['faces']=''
|
||||
['application']=''
|
||||
['plugins']=''
|
||||
['cdk']=''
|
||||
['auditing']=''
|
||||
)
|
||||
elif [[ $repo_dir == *"gp"* ]]; then
|
||||
compilation_order_list=(
|
||||
['prepare']=''
|
||||
['parents']=''
|
||||
['toggle']=''
|
||||
['landbase']=''
|
||||
['eai']=''
|
||||
['oss']=''
|
||||
['paralelismo1']=''
|
||||
['lmcm']=''
|
||||
['eng']=''
|
||||
['paralelismo2']=''
|
||||
['dbmanager']=''
|
||||
['oper']=''
|
||||
['oper:legacy']=''
|
||||
['osp']=''
|
||||
['isp']=''
|
||||
['recon']=''
|
||||
['geoa']=''
|
||||
['feasibility']=''
|
||||
['pxp']=''
|
||||
['services']=''
|
||||
['udo']=''
|
||||
['etics']=''
|
||||
['customers']=''
|
||||
['appserver']=''
|
||||
['client']=''
|
||||
)
|
||||
else
|
||||
printf "%s\n" "${unsorted_pom_paths[@]}"
|
||||
fi
|
||||
|
||||
local sorted_pom_paths=()
|
||||
|
||||
for dir in "${!compilation_order_list[@]}"; do
|
||||
@@ -275,7 +312,7 @@ pom_paths=()
|
||||
# TODO, add support for html, js and Messages_*.properties files
|
||||
# html_files=()
|
||||
# js_files=()
|
||||
# msg_files=()
|
||||
# msg_files=() # probably is at cdk/application/implementacao/admweb/jar/src/main/resources
|
||||
|
||||
for i in ${target_paths_uniq[@]}; do
|
||||
if [[ $i == *.java ]]; then
|
||||
@@ -289,6 +326,7 @@ done
|
||||
pom_paths_uniq=$(for i in "${pom_paths[@]}"; do echo $i; done | sort -u)
|
||||
|
||||
sorted_pom_paths_uniq=($(sort_pom_paths_for_compilation_order "${pom_paths_uniq[@]}"))
|
||||
echo "sorted_pom_paths_uniq: ${sorted_pom_paths_uniq[@]}"
|
||||
|
||||
echo "[INFO] Pom order"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user