-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #12391: Make maven faster and correct MAVEN_OPS
- Loading branch information
Showing
6 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ license.sign | |
*.pubkey | ||
*.privkey | ||
pom.xml | ||
makefiles/m2_location.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# This file help find M2_REPO. | ||
# This is not trivial as M2_REPO can be defined in a multitude of | ||
# place, so the safe solution is to ask mvn directly. | ||
# But even that is not easy, because mvn doesn't reply simply. | ||
# And as it is very long, we want to cache the result | ||
# | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
M2_REPO_LOC_CACHE=${SCRIPT_DIR}/m2_location.cache | ||
|
||
case $1 in | ||
|
||
"clean") | ||
rm -f ${M2_REPO_LOC_CACHE} | ||
;; | ||
|
||
*) | ||
if [ ! -f ${M2_REPO_LOC_CACHE} ]; then | ||
mvn ${MVN_PARAMS} help:evaluate -Dexpression="localRepository" | grep basedir | sed -e "s/.*>\(.*\)<.*/\1/" > ${M2_REPO_LOC_CACHE} | ||
fi | ||
cat ${M2_REPO_LOC_CACHE} | ||
|
||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters