`
alexgreenbar
  • 浏览: 87089 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

maven need new plugin to maintenance its artifacts repo

阅读更多

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
分享到:
评论
8 楼 netment 2007-08-06  
I think it's the local intranet repository's duty(such as artifactory), if the maven cache in your local hard driver grows to big in size , you just choose to delete it.
7 楼 maomaode 2007-08-03  
OK, we can go further, what about generate a small web-app, and basically a report page will be generated, and you have all the links to the local repository, and you have the (delete) at the end of the links...

not a good idea though, too much complex
6 楼 maomaode 2007-08-03  
I got an idea, and the idea actually used in fant,
when you do a 'ant install', you actually register the source basedir into the 'source-repository' (the term i used for fant), it's like a central source db, which maintain the  groupid-artifactid-version to the source basedir relationship, you can do the same in 'mvn install', after that if you run 'mvn maintaince' it will go ask the source-repo, and then load the all the dependencies, finally you just knew which one is redundant. :-)
5 楼 alexgreenbar 2007-08-03  
good question!
- for local repository, you installed maven will record all those used information for you, use a Algorithm like LRU

- for remote repository, it's a little bit of difficult, but some Maven repository software like MavenProxy or Artifactory can do this

at least, we can use that plugin to manage our local repository
4 楼 maomaode 2007-08-03  
Hummm.... most of the problem is caused by the snapshots,and elder jars it's not hard to write such a plugin for maven.

Actuall, it's a good idea, i'll add this to fant, which already take advantage of the maven repository.

But hang on... there's one question, you maybe have dozens of projects, and one depend on commons-io 1.0, one depend on commons-io 2.0, you have 1.0, 2.0, 3.0 in your local maven repository, how are you going to remove the redundant 3.0? the tool you mentioned MUST go through all the projects...
3 楼 alexgreenbar 2007-07-26  
- for local repository, your maven should record those accessing data
- for remote repository, maven repository server like mavenProxy or repositoryfactory should record those accessing data
2 楼 xyz20003 2007-07-25  
可项目是分散的,你怎么决定哪些应该保留,哪些应该删除?
1 楼 yeshucheng 2007-07-25  
有同感,绝对赞同

相关推荐

    Maven exec-maven-plugin:执行外部命令的实践指南

    exec-maven-plugin是Maven生态系统中的一个插件,它允许用户在Maven构建过程中执行外部命令或脚本。这使得Maven项目可以集成更多的自定义操作,比如运行特定的脚本、调用系统命令等。本文将详细介绍exec-maven-...

    Maven使用tomcat8-maven-plugin插件.docx

    Maven 使用 tomcat8-maven-plugin 插件 Maven 是一个流行的构建自动化工具,它可以帮助开发者自动完成项目的编译、测试、打包、部署等任务。 Tomcat 是一个流行的 Web 服务器,Maven 提供了一个插件 tomcat8-maven-...

    eclipse-maven3-plugin Maven插件离线安装包

    eclipse-maven3-plugin.7z 解压缩到 plugins 目录下 3. 在 links 目录下创建一个maven.link(名字可以随便取,但必须是.link结尾的文件)文件 打开并输入:path= D:/Development/eclipse-JavaEE/eclipse/plugins...

    ECLIPSE MAVEN3插件文件(eclipse-maven3-plugin工具)

    ECLIPSE MAVEN3插件文件(eclipse-maven3-plugin工具)

    eclipse-maven3-plugin

    Eclipse Maven3 Plugin的安装过程相对简单,首先,你需要在Eclipse的“Help”菜单中选择“Install New Software”,然后在添加的更新站点中输入插件的下载地址,通常可以从Eclipse Marketplace或者Maven官方网站获取...

    maven3-plugin-3.0.1-sources.jar

    maven3-plugin-3.0.1-sources.jar

    maven-jetty-plugin

    ** Maven Jetty Plugin 知识点详解 ** Maven Jetty Plugin是一款强大的工具,它将Jetty服务器集成到了Maven的构建流程中。这个插件允许开发者在开发过程中快速、便捷地运行和测试Java Web应用程序,而无需进行完整...

    eclipse-maven3-plugin离线maven插件

    本人卸载了Myeclipse8.5自带的恶心maven,在线安装n次失败,无奈之下找离线版本的,本人找了又找,看了又看,花了九牛二虎之力,终于终于找到一个离线版本的maven了,别嫌弃分数高,确实给力的,下载完记得好评噢!

    eclipse-maven3-plugin工具

    Eclipse Maven3 Plugin是Eclipse集成开发环境中的一个插件,用于支持Maven项目管理和构建。这个插件使得开发者在Eclipse内部就能方便地管理Maven依赖、执行Maven生命周期阶段以及配置Maven项目,无需离开IDE。在描述...

    xjar_maven_plugin.rar

    【xjar_maven_plugin.rar】是一个压缩包,包含与Java开发相关的工具,特别是针对Maven项目的xjar-maven-plugin插件。这个插件是用于帮助Java开发者在构建过程中对jar包进行加密,以保护其中的代码和资源不被轻易访问...

    tomcat-maven-plugin

    maven-tomcat-plugin让maven与tomcat配合得很好。它可以把应用部署到Tomcat服务器,也可以把tomcat作为内嵌服务器启动,就像jetty一样。 使用JPDA启动tomcat的远程调试功能。这样就能与eclipse配合起来,轻松地实现...

    maven3-plugin-3.0.0-1-sources.jar

    maven3-plugin-3.0.0-1-sources.jar

    maven集成jetty所需jar包maven-jetty-plugin,多版本

    本文将详细讨论如何将Jetty与Maven进行集成,并介绍关键的`maven-jetty-plugin`插件及其不同版本。 1. Maven与Jetty集成的意义: Maven通过其强大的依赖管理功能,使得项目构建变得简单和规范。而Jetty作为轻量级...

    maven-compiler-plugin-3.8.0-source-release插件

    `maven-compiler-plugin-3.8.0-source-release` 版本是 Maven 编译插件的一个特定版本,该版本包含了对 Maven 3.x 系列的支持。这个插件的主要任务包括: 1. **源代码编译**:默认使用 JDK 的 `javac` 编译器进行 ...

    dockerfile-maven-plugin 配置记录

    dockerfile-maven-plugin 支持 maven 直接发布项目至 docker 镜像库

    eclipse maven3 plugin.zip

    直接离线安装eclipse中的maven插件,在你的eclipse安装根目录下创建两个文件夹:links,myplugins(文件夹名字可以自定义),所在路径D:\eclipse。将下载下来的maven插件放到myplugins下。载links目录下创建一个...

    maven-deploy-plugin-2.8.2.jar

    maven-deploy-plugin-2.8.2.jar

    maven-antrun-plugin-3.0.0.jar

    maven-antrun-plugin-3.0.0.jar

    maven3 eclipse plugin

    要将Maven3 Eclipse Plugin集成到Eclipse中,开发者首先需要确保Eclipse版本支持,并通过Eclipse的“Help” -> “Install New Software”菜单添加插件更新站点。在“Work with”下拉框中输入官方的M2E(Maven for ...

Global site tag (gtag.js) - Google Analytics