@@ -33,25 +33,20 @@ _mvn_settings_opt() {
3333 local mavenInstallDir=" ${2} "
3434
3535 if [ -n " $MAVEN_SETTINGS_PATH " ]; then
36- mcount " mvn.settings.path"
3736 echo -n " -s $MAVEN_SETTINGS_PATH "
3837 elif [ -n " $MAVEN_SETTINGS_URL " ]; then
3938 local settingsXml=" ${mavenInstallDir} /.m2/settings.xml"
4039 mkdir -p " $( dirname " ${settingsXml} " ) "
4140 curl --retry 3 --retry-connrefused --connect-timeout 5 --silent --max-time 10 --location " ${MAVEN_SETTINGS_URL} " --output " ${settingsXml} "
42- mcount " mvn.settings.url"
4341 if [ -f " ${settingsXml} " ]; then
4442 echo -n " -s ${settingsXml} "
4543 else
46- mcount " mvn.settings.url.fail"
4744 error " Could not download settings.xml from the URL defined in MAVEN_SETTINGS_URL!"
4845 return 1
4946 fi
5047 elif [ -f " ${home} /settings.xml" ]; then
51- mcount " mvn.settings.file"
5248 echo -n " -s ${home} /settings.xml"
5349 else
54- mcount " mvn.settings.default"
5550 echo -n " "
5651 fi
5752}
@@ -86,15 +81,11 @@ run_mvn() {
8681 cache_copy " .m2/wrapper" " ${mavenInstallDir} " " ${home} "
8782 chmod +x " ${home} /mvnw"
8883 local mavenExe=" ./mvnw"
89- mcount " mvn.version.wrapper"
9084 else
9185 # shellcheck disable=SC2164
9286 cd " ${mavenInstallDir} "
93- local start
94- start=$( nowms)
9587
9688 install_maven " ${mavenInstallDir} " " ${home} "
97- mtime " mvn.${scope} .time" " ${start} "
9889 PATH=" ${mavenInstallDir} /.maven/bin:$PATH "
9990 local mavenExe=" mvn"
10091 # shellcheck disable=SC2164
@@ -115,21 +106,13 @@ run_mvn() {
115106 status " Executing Maven"
116107 echo " $ ${mavenExe} ${mvnOpts} " | indent
117108
118- local cache_status
119- cache_status=" $( get_cache_status " ${mavenInstallDir} " ) "
120- local start
121- start=$( nowms)
122-
123109 # We rely on word splitting for mvn_settings_opt and mvnOpts:
124110 # shellcheck disable=SC2086
125111 if ! ${mavenExe} -DoutputFile=target/mvn-dependency-list.log -B ${mvn_settings_opt} ${mvnOpts} | indent; then
126112 error " Failed to build app with Maven
127113We're sorry this build is failing! If you can't find the issue in application code,
128114please submit a ticket so we can help: https://help.heroku.com/"
129115 fi
130-
131- mtime " mvn.${scope} .time" " ${start} "
132- mtime " mvn.${scope} .time.cache.${cache_status} " " ${start} "
133116}
134117
135118write_mvn_profile () {
0 commit comments