Giter VIP home page Giter VIP logo

maven's Introduction

Maven依赖管理

多模块开发的时候,会存在依赖版本冲突的问题,这是因为每个模块都拥有属于自己的maven依赖管理文件。 根据资料的查阅,找到了一些依赖管理的方法,为了记录下来并作为参考,创建了该项目。

管理方案

maven依赖管理方法
maven依赖管理.ppt

项目参考

依赖排查小工具

为了更方便明了地排查依赖冲突问题,本项目还编写了一个小程序,可以将冲突的依赖以表格形式展示。
小程序主体在test-use包下
使用说明:

  1. 将所有需要排查的module都引入到test-use的pom
  2. 使用maven clean package > filename命令打包,利用enforcer插件的特性,将冲突全部列出来,同时输出到文件中
  3. 将冲突列表文件加入到排查入口代码中,修改方法DependencyAnalyzer.checkConflictFromEnforcer()中的参数
  4. 运行代码,最终会将整理结果输出到自己定义的outputFilename文件中,csv格式存储

maven's People

Contributors

alliamchang avatar

Watchers

James Cloos avatar  avatar

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.