Added example local repository.
This commit is contained in:
parent
3c3a23b9f6
commit
ceceac34d7
2 changed files with 5 additions and 1 deletions
4
example/m2/repository/.gitignore
vendored
Normal file
4
example/m2/repository/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Ignore everything in this directory
|
||||||
|
*
|
||||||
|
# Except this file
|
||||||
|
!.gitignore
|
|
@ -76,7 +76,7 @@ public class MavenLocalPlugin : BasePlugin(), ILocalMavenRepoPathInterceptor {
|
||||||
settings.userSettingsFile = File(userHome, ".m2/settings.xml")
|
settings.userSettingsFile = File(userHome, ".m2/settings.xml")
|
||||||
|
|
||||||
val m2Home = System.getenv("M2_HOME")
|
val m2Home = System.getenv("M2_HOME")
|
||||||
if (m2Home != null) {
|
if (!m2Home.isNullOrBlank()) {
|
||||||
settings.globalSettingsFile = File(m2Home, "conf/settings.xml")
|
settings.globalSettingsFile = File(m2Home, "conf/settings.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue