As we know, maven use repository to save project artifacts, but maven doesn’t do a well maintenance job on its repository, e.g. my local maven repository size has increased to 1.7G, but most of old version of artifacts inside my local maven repository won’t use by me forever.
My suggestion is: maven should have a new plugin, use algorithm like LRU, has a target like “repository.maintenance”, if I run command below, maven will cleanup repository based on its history records.
$mvn repository.maintenance
分享到:
相关推荐
本文将详细介绍如何构建一个高效且便捷的开发环境,通过Myeclipse、Maven、Nexus以及m2eclipse插件的集成,解决添加依赖无索引、下载速度慢的问题。这个组合可以极大地提升开发效率,避免因网络问题导致的困扰。 ...
这个插件使得开发者可以方便地将他们的构建工件(artifacts)上传到Bintray平台,这是一个广泛使用的软件托管和分发服务。下面我们将深入探讨Gradle Bintray插件的工作原理、配置方法以及其在Java开发中的应用。 ...
在Jenkins作业配置中,增加一个构建后操作,选择“Deploy artifacts to a remote server”,配置对应Maven的部署配置。 通过以上步骤,你已经成功地在CentOS 7上建立了基于Maven和Git的Jenkins自动化部署环境。...
`gradle-pom-plugin`是连接Gradle和Maven世界的桥梁,它使Gradle项目能够生成符合Maven规范的POM文件,从而与Maven生态无缝对接。通过配置POM信息,发布到Maven仓库,以及从Maven POM导入依赖,这个插件为Gradle项目...
The path to the local repository maven will use to store artifacts. Default: ~/.m2/repository <localRepository>/path/to/local/repo</localRepository>--> <!— 下面的配置文件,其实是用来存放 appfuse ...
repo = 'maven' name = 'gmsdk' desc = 'A description of the package' websiteUrl = siteUrl vcsUrl = gitUrl licenses = ['Apache-2.0'] labels = ['android', 'aar'] publicDownloadNumbers = true } ...
<artifactId>maven-compiler-plugin <source>1.8 <target>1.8 </plugin> <elasticsearch.version>5.6.0 <spring-version>5.0.0.RC3 <fastjson-version>1.2.7 <junit-version>4.12 ...
repo = '你的仓库名' name = '你的包名' websiteUrl = '你的库网站链接' vcsUrl = '你的库Git仓库链接' licenses = ['Apache-2.0'] desc = '你的库描述' publicDownloadNumbers = true // 是否公开下载次数 ...
credentials += Credentials("Repo " + id, "repo-host", "username", "password") } ``` 二、sbt-publish-more的工作原理 `sbt-publish-more`插件扩展了sbt的发布机制,允许用户为每个定义的存储库创建独立的发布...