`
lingqi1818
  • 浏览: 252229 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

maven开篇

阅读更多
今天开始记录学习MAVEN的笔记,当然这里的maven指的是maven2。

首先介绍什么是maven?
根据官网介绍,maven在犹太词里的意思是知识的仓库,这个创意源于Jakarta Turbine这个项目,由于多个project都需要用ant来bulid,并且把jar包check into到CVS,他们需要有一个标准的方法去构建,编译,组合,发布project,并且能共享JARs。maven就这样诞生了。

maven能解决什么?
maven的主要目的是允许程序员在短期内领会在开发中的所有状态。为了达到这个目的,maven考虑了以下几个方面来处理:
Making the build process easy
Providing a uniform build system
(每个项目一个project object model (POM) ,并且共享plugs)
Providing quality project information
Providing guidelines for best practices development
最佳开发实践:


Keeping your test source code in a separate, but parallel source tree
Using test case naming conventions to locate and execute tests
Have test cases setup their environment and don't rely on customizing the build for test preparation.
Maven also aims to assist in project workflow such as release management and issue tracking.

Maven also suggests some guidelines on how to layout your project's directory structure so that once you learn the layout you can easily navigate any other project that uses Maven and the same defaults.



Allowing transparent migration to new features
(应该是提供自定义的plug来保证这点)


特性:
大致有以下几个:
1.方便编译,打包,发布。
2.可扩展的plug
3.可统一管理2方库,3方库
以上三点比较吸引我。



下面的官网原话。

The following are the key features of Maven in a nutshell:

Simple project setup that follows best practices - get a new project or module started in seconds
Consistent usage across all projects means no ramp up time for new developers coming onto a project
Superior dependency management including automatic updating, dependency closures (also known as transitive dependencies)
Able to easily work with multiple projects at the same time
A large and growing repository of libraries and metadata to use out of the box, and arrangements in place with the largest Open Source projects for real-time availability of their latest releases
Extensible, with the ability to easily write plugins in Java or scripting languages
Instant access to new features with little or no extra configuration
Ant tasks for dependency management and deployment outside of Maven
Model based builds: Maven is able to build any number of projects into predefined output types such as a JAR, WAR, or distribution based on metadata about the project, without the need to do any scripting in most cases.
Coherent site of project information: Using the same metadata as for the build process, Maven is able to generate a web site or PDF including any documentation you care to add, and adds to that standard reports about the state of development of the project. Examples of this information can be seen at the bottom of the left-hand navigation of this site under the "Project Information" and "Project Reports" submenus.
Release management and distribution publication: Without much additional configuration, Maven will integrate with your source control system such as CVS and manage the release of a project based on a certain tag. It can also publish this to a distribution location for use by other projects. Maven is able to publish individual outputs such as a JAR, an archive including other dependencies and documentation, or as a source distribution.
Dependency management: Maven encourages the use of a central repository of JARs and other dependencies. Maven comes with a mechanism that your project's clients can use to download any JARs required for building your project from a central JAR repository much like Perl's CPAN. This allows users of Maven to reuse JARs across projects and encourages communication between projects to ensure that backward compatibility issues are dealt with. We are collaborating with the folks at Ibiblio who have graciously allowed the central repository to live on their servers.

分享到:
评论

相关推荐

    《Maven实战》

    本书它内容全面,以从专家的角度阐释Maven的价值开篇,全面介绍了Maven的安装、配置和基本使用方法,以便于初学者参考;详细讲解了坐标和依赖、Maven仓库、生命周期和插件、聚合与继承等Maven的核心概念,建议所有...

    Maven实战 高清版pdf

    本书它内容全面,以从专家的角度阐释Maven的价值开篇,全面介绍了Maven的安装、配置和基本使用方法,以便于初学者参考;详细讲解了坐标和依赖、Maven仓库、生命周期和插件、聚合与继承等Maven的核心概念,建议所有...

    Maven实战 高清版

    本书它内容全面,以从专家的角度阐释Maven的价值开篇,全面介绍了Maven的安装、配置和基本使用方法,以便于初学者参考;详细讲解了坐标和依赖、Maven仓库、生命周期和插件、聚合与继承等Maven的核心概念,建议所有...

    maven 教程

    本书内容全面,以从专家的角度阐释Maven的价值开篇,全面介绍了Maven的安装、配置和基本使用方法,以便于初学者参考;详细讲解了坐标和依赖、Maven仓库、生命周期和插件、聚合与继承等Maven的核心概念,建议所有读者...

    最新Java全栈工程师企业级开发视频教程(17G)

    开篇-程序员的玄学与佛学.mp4---003.开篇-程序员的玄学与佛学.mp4---004.第01章-使用IntellijIDEA-IDEA简介.mp4---005.第01章-使用IntellijIDEA-第一个IDEA应用程序.mp4---006.小知识-使用Markdown记笔记.mp4---007....

    【Spring-Boot开篇】

    【Spring-Boot开篇】是关于Spring Boot技术的初步介绍,Spring Boot是现代Java开发中的一个关键框架,它简化了创建独立、生产级别的基于Spring的应用程序。这篇博文可能涵盖了Spring Boot的基本概念、核心特性以及...

    hibernate3.2开篇

    1. Maven集成:介绍如何在Maven项目中配置Hibernate3.2依赖,以及如何利用Maven插件进行数据库脚本生成和测试。 2. IDE支持:探讨Eclipse、IntelliJ IDEA等主流IDE如何提供对Hibernate3.2的集成,包括代码提示、...

    从零搭建Spring Boot脚手架,开篇以及技术选型.docx

    ### 从零搭建Spring Boot脚手架:开篇与技术选型 #### 一、引言 当前,Spring Boot已成为主流的Java Web开发框架之一,它简化了开发流程,提升了开发效率,尤其受到广大Java开发者的青睐。对于已经具备一定Spring ...

    2023版全新SSM框架实战精讲 视频教程 下载下载 因为太大存百度云盘3.zip

    下面目录只是部分 001_全新SSM课程-开篇介绍.mp4 002_maven_介绍和作用.mp4 003_maven_安装和配置.mp4 004-maven-项目定位属性.mp4 005-maven-工程快速搭建.mp4 006-maven-核心功能依赖管理.mp4 007-maven-...

    2023版全新SSM框架实战精讲 视频教程 下载下载 因为太大存百度云盘4.zip

    下面目录只是部分 001_全新SSM课程-开篇介绍.mp4 002_maven_介绍和作用.mp4 003_maven_安装和配置.mp4 004-maven-项目定位属性.mp4 005-maven-工程快速搭建.mp4 006-maven-核心功能依赖管理.mp4 007-maven-...

    2023版全新SSM框架实战精讲 视频教程 下载下载 因为太大存百度云盘2.zip

    下面目录只是部分 001_全新SSM课程-开篇介绍.mp4 002_maven_介绍和作用.mp4 003_maven_安装和配置.mp4 004-maven-项目定位属性.mp4 005-maven-工程快速搭建.mp4 006-maven-核心功能依赖管理.mp4 007-maven-...

    2023版全新SSM框架实战精讲 视频教程 下载下载 因为太大存百度云盘1.zip

    下面目录只是部分001_全新SSM课程-开篇介绍.mp4 002_maven_介绍和作用.mp4 003_maven_安装和配置.mp4 004-maven-项目定位属性.mp4 005-maven-工程快速搭建.mp4 006-maven-核心功能依赖管理.mp4 007-maven-依赖...

    开篇词:为什么要学 Spring Boot1

    1. 快速起步:Spring Boot提供了起步依赖(Starter Dependency),通过简单的Maven或Gradle配置,即可引入所需的框架,如Web、Data JPA等,大大简化了项目的构建过程。 2. 自动配置:Spring Boot根据项目依赖自动...

    springboot中文手册

    手册开篇介绍了Spring Boot的基本概念,包括系统要求,如Java版本和Servlet容器的需求。在安装指南中,手册详细说明了如何为Java开发者准备Spring Boot环境,包括Maven和Gradle这两种流行的构建工具的安装步骤,以及...

    spring boot指导手册

    手册的开篇强调了Spring Boot的重要性,指出其作为开发必备工具的地位,并介绍了Spring Boot的核心概念。接下来,手册分为几个主要部分,对Spring Boot的功能和使用方法进行了深入的讲解。 首先,介绍部分为读者...

    spring-boot-reference.pdf

    Spring Boot文档开篇首先介绍了文档本身,包括文档的版权信息、合法声明、关于文档的一些基本信息,以及如何获取帮助。接着,文档指导了用户如何从早期版本升级到新版本,提供了快速开始Spring Boot开发的指导,包括...

    SpringBoot模拟面试题.docx

    通过提供预配置的 starter POMs(Maven 依赖),Spring Boot 可以帮助开发者快速启动新项目,避免了大量手动配置的繁琐工作。此外,它还内置了 Tomcat 或 Jetty 服务器,使得应用可以直接以独立的 JAR 或 WAR 形式...

    java 开发实战经典

    "Java学习概述笔记"这部分内容,作为课程的开篇,旨在为初学者提供一个全面的Java学习视角,帮助他们了解Java的核心概念,以及如何在实际项目中应用这些知识。 Java是一种广泛使用的面向对象的编程语言,由Sun ...

Global site tag (gtag.js) - Google Analytics