maven
ccssddnnbbookkee
这个作者很懒,什么都没留下…
展开
-
Maven by Example
As developers, we understand that you don't want to spend years reading documentation about your build tool. We get it. You just want to get to work. On the other hand, if you don't take a little bit转载 2014-12-22 09:07:38 · 798 阅读 · 0 评论 -
Maven by Example 2.1. Verify your Java Installation
While Maven can run on Java 1.4, this book assumes that you arerunning at least Java 5. Go with the most recent stable JavaDevelopment Kit (JDK) available for your operating system. Either Java5 or Ja转载 2014-12-22 10:47:58 · 688 阅读 · 0 评论 -
Maven by Example 2.2. Downloading Maven
You can download Maven from the Apache Maven project website athttp://maven.apache.org/download.html.When downloading Maven, make sure you choose the latest version of Apache Maven from the Maven we转载 2014-12-22 11:06:33 · 1067 阅读 · 0 评论 -
Maven实战(二)——POM重构之增还是删
重构是广大开发者再熟悉不过的技术,在Martin Fowler的《重构——改善既有代码的设计》一书中,其定义为“重构(名词):对软件内部结构的一种调整,目的是在不改变软件之可察行为前提下,提高其可理解性,降低其修改成本.”以及“重构(动词):使用一系列重构准则(手法),在不改变软件之可察行为前提下,调整其结构.”。重构能够改善软件设计,使代码更易读,更容易找出bug,并帮助你更快速地编码。较之于一转载 2014-12-22 14:43:38 · 557 阅读 · 0 评论 -
Maven by Example 3.5. Core Concepts
Having just run Maven for the first time, it is a good time to introduce a few of the core concepts of Maven. In the previous example, you generated a project which consisted of a POM and some code as转载 2014-12-22 16:16:04 · 952 阅读 · 0 评论 -
Maven Tutorial
Apache Maven is a software project management and comprehension(n. 理解;包含) tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation fro转载 2015-05-15 12:31:01 · 391 阅读 · 0 评论 -
是goal还是phase?Maven插件(plugin)goal的执行与生命周期(lifecycle)phase的关系
背景知识maven对构建(build)的过程进行了抽象和定义,这个过程被称为构建的生命周期(lifecycle)。生命周期(lifecycle)由多个阶段(phase)组成,每个阶段(phase)会挂接一到多个goal。goal是maven里定义任务的最小单元,相当于ant里的target。以phase为目标构建以phase为目标进行构建是最常见的,如我们平时经常执行的mvn compile,mvn转载 2015-05-18 13:46:17 · 668 阅读 · 0 评论 -
Maven中的几个重要概念(二):lifecycle, phase and goal
当我们在使用Maven做一些工作,如打包,编译,运行测试等等任务时,我们已经使用到了Maven中的几个重要概念: lifecycle, phase and goal。 例如,如果我们使用ant打包,我们需要清晰的在脚本中告诉ant: 源代码在哪,打包的目标文件类型如jar,目标文件夹在哪。首先要编译,然后运行测试,最后打包。 而Maven为了在最大程度上简化我们的工作,因而定义了lifecy转载 2015-05-18 15:57:12 · 1178 阅读 · 0 评论 -
Maven的基本原理和Maven2的新特性
用Maven做项目管理在Java世界中我们很多开发人员选择用Ant来构建项目,一个build.xml能够完成编译、测试、打包、部署等很多任务,但我们也碰到了很多的问题,如jar文件管理混乱,各个项目结构和build.xml相差很大等等。而Maven的出现,给项目提供了更多的支持。1 简介Maven作为Apache的一个开源项目,旨在给项目管理提供更多的支持,主页地址为http://ma转载 2015-05-18 16:32:19 · 513 阅读 · 0 评论 -
Maven - Build & Test Project
What we learnt in Project Creation chapter is how to create a Java application using Maven. Now we’ll see how to build and test the application. Go to C:/MVN directory where you’ve created your java a转载 2015-05-19 09:25:17 · 526 阅读 · 0 评论 -
What are the phases of the maven default lifecycle?
validate package等都是phase,每个phase必须绑定一个goal,否则不会执行 goal是插件的一个功能,真正做事情的是插件的功能,即goal,所以phase中必须绑定goal,否则这个phase都没有具体功能了。多个phase可以组成一个lifecycle。 The phases of the default (build) maven lifecycle are list转载 2015-05-18 13:18:24 · 564 阅读 · 0 评论 -
Maven by Example 1.7. Comparing Maven with Ant
The authors of this book have no interest in creating a feud(不和;争执;封地) between Apache Ant and Apache Maven, but we are also cognizant(审理的;已认知的) of the fact that most organizations have to make a decis转载 2014-12-22 10:12:22 · 670 阅读 · 0 评论 -
Maven by Example 1.2. Convention Over Configuration
Convention(大会;[法] 惯例;[计] 约定;[法] 协定;习俗) over configuration is a simple concept. Systems, libraries,and frameworks should assume reasonable defaults. Without requiring unnecessary configuration, systems转载 2014-12-22 09:23:53 · 748 阅读 · 0 评论 -
Maven by Example 1.1. Maven… What is it?
The answer to this question depends on your own perspective. The great majority of Maven users are going to call Maven a “build tool”: a tool used to build deployable artifacts from source code. Build转载 2014-12-22 09:13:14 · 575 阅读 · 0 评论 -
Maven by Example 1.3. A Common Interface
Before Maven provided a common interface for building software, every single project had someone dedicated to managing a fully customized build system. Developers had to take time away from developing转载 2014-12-22 09:31:45 · 601 阅读 · 0 评论 -
Maven by Example 1.4. Universal Reuse through Maven Plugins
Plugins are more than just a trick to minimize the download size of the Maven distribution.(插件不只只是减少要下载的maven安装包的大小的诡计) Plugins add new behavior to your project’s build.Maven retrieves both dependenci转载 2014-12-22 09:41:53 · 622 阅读 · 0 评论 -
Maven by Example Chapter 2. Installing Maven
Java Development Kit (JDK). If you are just interested in installation, you can move on to the rest of the book after reading throughSection 2.2, “Downloading Maven” and Section 2.3, “Installing M转载 2014-12-22 10:45:58 · 524 阅读 · 0 评论 -
Maven Archetype Plugin
The Archetype Plugin allows the user to create a Maven project from an existing template called an archetype.It also allows the user to create an archetype from an existing project.UsageInst转载 2014-12-22 13:10:50 · 610 阅读 · 0 评论 -
archetype:generate
Full name:org.apache.maven.plugins:maven-archetype-plugin:2.2:generateDescription:Generates a new project from an archetype, or updated the actual project if using a partial archetype. If the pr转载 2014-12-22 13:16:59 · 611 阅读 · 0 评论 -
Maven by Example 3.1. Introduction
In this chapter, we introduce a simple project created from scratch using the Maven Archetype plugin. This elementary(基本的;初级的;[化学] 元素的) application provides us with the opportunity to discuss some cor转载 2014-12-22 13:29:58 · 1022 阅读 · 0 评论 -
Maven实战(七)——常用Maven插件介绍(上)
我们都知道Maven本质上是一个插件框架,它的核心并不执行任何具体的构建任务,所有这些任务都交给插件来完成,例如编译源代码是由maven-compiler-plugin完成的。进一步说,每个任务对应了一个插件目标(goal),每个插件会有一个或者多个目标,例如maven-compiler-plugin的compile目标用来编译位于src/main/java/目录下的主源码,testCompile转载 2014-12-22 14:09:09 · 636 阅读 · 0 评论 -
Maven实战(一)——坐标规划
坐标是什么?为什么要规划?坐标是Maven最基本的概念,它就像每个构件的身份证号码,有了它我们就可以在数以千万计的构件中定位任何一个我们感兴趣的构件。举个最简单的例子,如果没有坐标,使用JUnit的时候,用户就需要去下载依赖jar包,用依赖的方式,简单配置使用如junit:junit:4.8.2就可以了。这里第一个junit是groupId,第二个junit是artifactId,4.8.2是转载 2014-12-22 14:34:59 · 715 阅读 · 0 评论 -
Maven实战(三)——多模块项目的POM重构
在本专栏的上一篇文章POM重构之增还是删中,我们讨论了一些简单实用的POM重构技巧,包括重构的前提——持续集成,以及如何通过添加或者删除内容来提高POM的可读性和构建的稳定性。但在实际的项目中,这些技巧还是不够的,特别值得一提的是,实际的Maven项目基本都是多模块的,如果仅仅重构单个POM而不考虑模块之间的关系,那就会造成无谓的重复。本文就讨论一些基于多模块的POM重构技巧。重复,还是重转载 2014-12-22 15:17:40 · 642 阅读 · 0 评论 -
六年磨一剑,Github 发布 Atom 编辑器
以“社区化编程( Social Coding )”著称的 Github 今日推出了一款重量级新产品: Atom 。 按照 Github 的说法,这是一款非同一般的编辑器,是 21 世纪的创新产品,他们希望将来“从菜鸟到黑客都在使用 Atom 编写代码”。喔,请前几排使用 Vim 的同学安静一下,对对,旁边 Emacs 的朋友请先坐下好吗。 这款编辑器历时 6 年研发才得以完成,无疑是有点料在里面转载 2015-05-19 09:26:35 · 420 阅读 · 0 评论