Giter VIP home page Giter VIP logo

kobalt-maven-local's Introduction

Maven Local Repository plug-in for Kobalt

License (3-Clause BSD) Build Status Download

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:

val bs = buildScript {
    plugins("net.thauvin.erik:kobalt-maven-local:")
}

val p = project {
    name = "example"
}

To publish to the Maven Local Repository use the publishToMavenLocal task:

./kobaltw publishToMavenLocal

View Example

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.

kobalt-maven-local's People

Contributors

ethauvin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

kobalt-maven-local's Issues

apt broken in 1.0.72

erik@Havok 11:39 /k/java/semver/example                                                                                                          
$ ./kobaltw assemble                                                                                                                             
              __ __           __              __   __                                                                                            
             / //_/  ____    / /_   ____ _   / /  / /_                                                                                           
            / ,<    / __ \  / __ \ / __ `/  / /  / __/                                                                                           
           / /| |  / /_/ / / /_/ // /_/ /  / /  / /_                                                                                             
          /_/ |_|  \____/ /_.___/ \__,_/  /_/   \__/  1.0.71                                                                                     
                                                                                                                                                 
  Regular compilation time: 7350 ms                                                                                                              
Parallel build starting                                                                                                                          
     ╔══════════════════╗                                                                                                                        
     ║ Building example ║                                                                                                                        
     ╚══════════════════╝                                                                                                                        
───── example:compile                                                                                                                            
  Java compiling 1 file                                                                                                                          
javac: directory not found: ./kobaltBuild/generated/source/apt/sources                                                                           
Usage: javac <options> <source files>                                                                                                            
use -help for a list of possible options                                                                                                         
Compilation errors, command:                                                                                                                     
C:\Program Files\Java\jdk1.8.0_121\bin\javac.exe -d .\kobaltBuild\classes -classpath C:\Users\erik\.kobalt\cache\net\thauvin\erik\semver\0.9.6-be
ta\semver-0.9.6-beta.jar;C:\Users\erik\.kobalt\cache\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Users\erik\.k
obalt\cache\commons-lang\commons-lang\2.4\commons-lang-2.4.jar;C:\Users\erik\.kobalt\cache\org\apache\velocity\velocity\1.7\velocity-1.7.jar -s .
\kobaltBuild\generated/source/apt\sources .\src\main\java\net\thauvin\erik\semver\example\Example.java .\src\main\java\net\thauvin\erik\semver\ex
ample\Example.java                                                                                                                               
Something went wrong running javac, need to switch to RunCommand                                                                                 
*****                                                                                                                                            
***** ERROR Compilation errors, command:                                                                                                         
C:\Program Files\Java\jdk1.8.0_121\bin\javac.exe -d .\kobaltBuild\classes -classpath C:\Users\erik\.kobalt\cache\net\thauvin\erik\semver\0.9.6-be
ta\semver-0.9.6-beta.jar;C:\Users\erik\.kobalt\cache\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Users\erik\.k
obalt\cache\commons-lang\commons-lang\2.4\commons-lang-2.4.jar;C:\Users\erik\.kobalt\cache\org\apache\velocity\velocity\1.7\velocity-1.7.jar -s .
\kobaltBuild\generated/source/apt\sources .\src\main\java\net\thauvin\erik\semver\example\Example.java .\src\main\java\net\thauvin\erik\semver\ex
ample\Example.java                                                                                                                               
Something went wrong running javac, need to switch to RunCommand                                                                                 

Looks like outputDir is no longer created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.