summaryrefslogtreecommitdiff
path: root/doc/note/setup/setup-maven-env.txt
blob: e4ce16d86f0ff1834cbdaacc2ff15649ce8f539b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# Maven build env.
#
# Use this to share your hosts repository with the container:
#
#   mount -t cifs //10.0.2.2/path/to/.m2/repository /var/tmp/.m2/repository
#
set -e


### Made for alpine 3.16.0
true \
  && apk add maven \
  && sed -i "s,</settings>,  <localRepository>/var/tmp/.m2/repository</localRepository>\n</settings>,g" /usr/share/java/maven-3/conf/settings.xml \
  && true