Maven Local Repository Plug-in for the Kobalt build system
https://github.com/ethauvin/kobalt-maven-local
example | ||
kobalt | ||
libs | ||
src | ||
.gitignore | ||
.travis.yml | ||
kobalt-maven-local.iml | ||
kobalt-maven-local.ipr | ||
kobaltw | ||
kobaltw.bat | ||
LICENSE.TXT | ||
README.md |
Maven Local Repository plug-in for Kobalt
The plug-in will detect the Maven Local Repository location, similarly to Gradle's mavenLocal() repository handler.
To use the plug-in include the following in your Build.kt
file:
import net.thauvin.erik.kobalt.plugin.maven.local.*
val pl = plugins("net.thauvin.erik:kobalt-maven-local:")
val p = project {
name = "example"
}
Use the lovalMaven()
directive to tell Kobalt to look for artifacts in the Maven Local Repository:
val repos = repos(localMaven())
To publish to the Maven Local Repository use the publishToMavenLocal
task:
./kobaltw publishToMavenLocal
Locations
The plug-in looks for the Maven Local Repository in the following locations:
maven.repo.local
Either as a system property or in the project's local.properties
file.
To set the system property use:
./kobaltw -Dmaven.repo.local=~/foo/repository ...
or in local.properties
add:
maven.repo.local=~/foo/repository
~/.m2/settings.xml
If <localRepository>
is set:
<localRepository>~/foo/repository</localRepository>
$M2_HOME/conf/settings.xml
If the $M2_HOME
environment variable and <localRepository>
are set.
~/.m2/repository
If the directory exists.