• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

kumarshantanu/lein-localrepo: Work with local Maven repository

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

kumarshantanu/lein-localrepo

开源软件地址(OpenSource Url):

https://github.com/kumarshantanu/lein-localrepo

开源编程语言(OpenSource Language):

Clojure 100.0%

开源软件介绍(OpenSource Introduction):

lein-localrepo

Leiningen plugin to work with local Maven repository.

Installation

Lein 2 users

The recommended way is to install as a global plugin in ~/.lein/profiles.clj (for Windows users %USERPROFILE%\.lein\profiles.clj):

{:user {:plugins [[lein-localrepo "0.5.4"]]}}

You may also install as a project plugin in project.clj:

:plugins [[lein-localrepo "0.5.4"]]

Lein 1.x users

Either install as a plugin:

$ lein plugin install lein-localrepo "0.3"

Or, include as a dev-dependency:

:dev-dependencies [lein-localrepo "0.3"]

Usage

Guess Leiningen (Maven) coordinates of a file

$ lein localrepo coords <filename>

Example:

$ lein localrepo coords foo-bar-1.0.6.jar

Output:

foo-bar-1.0.6.jar foo-bar/foo-bar 1.0.6

Install artifacts to local Maven repository

$ lein localrepo install [-r repo-path] [-p pom-file] <filename> <[groupId/]artifactId> <version>

If no POM file is specified, a minimal POM will be automatically generated.

Examples:

$ lein localrepo install foo-1.0.6.jar com.example/foo 1.0.6
$ lein localrepo install foomatic-1.3.9.jar foomatic 1.3.9
$ lein localrepo coords /tmp/foobar-1.0.0-SNAPSHOT.jar | xargs lein localrepo install

List artifacts in local Maven repository:

$ lein localrepo list [-r repo-path] [-s | -f | -d]

Examples:

$ lein localrepo list       # lists all artifacts, all versions
$ lein localrepo list -s    # lists all artifacts with description
$ lein localrepo list -f    # lists all artifacts and filenames
$ lein localrepo list -d    # lists all artifacts with detail

Remove artifacts from local Maven repository (Not Yet Implemented):

$ lein localrepo remove <[groupId/]artifactId> [<version>]

Examples:

$ lein localrepo remove com.example/foo        # removes all versions
$ lein localrepo remove foomatic               # removes all versions
$ lein localrepo remove com.example/foo 1.0.3  # removes only specified version

Note: As an alternative while this feature is being implemented, removing artifacts is composed of two steps: First, find the path to the artifact with lein classpath | tr ":" "\n" | grep m2.*<YOUR ARTIFACT ID HERE>. Second, delete the directory of that artifact from the group ID or the root of that artifact.

Getting in touch

On Twitter: @kumarshantanu

On Leiningen mailing list: http://groups.google.com/group/leiningen

License

Copyright (C) 2011-2017 Shantanu Kumar

Distributed under the Eclipse Public License, the same as Clojure.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap