完成第一章的内容。

开始第二章。

+YUCHENG HU+

git-svn-id: https://svn.code.sf.net/p/hawebs/svn@408 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
YuCheng Hu
2010-07-03 03:18:51 +00:00
parent 8f05960553
commit e8e63ed0ff
11 changed files with 316 additions and 9 deletions
@@ -1,10 +1,10 @@
#Tue Jun 29 21:03:12 EDT 2010
#Fri Jul 02 23:17:32 EDT 2010
copytosourcelist=
hreftargetslist=tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita
hreftargetslist=tasks/chapter1/chapter1_7.dita,tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter2/chapter2.dita,tasks/chapter1/chapter1_8.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/chapter2/chapter2_1.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita
fullditatopicfile=fullditatopic.list
fullditamapandtopicfile=fullditamapandtopic.list
fullditatopiclist=tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita
fullditamapandtopiclist=tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,definitive_guide.ditamap,tasks/chapter1/chapter1_5.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita
fullditatopiclist=tasks/chapter1/chapter1_7.dita,tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter2/chapter2.dita,tasks/chapter1/chapter1_8.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/chapter2/chapter2_1.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita
fullditamapandtopiclist=tasks/chapter1/chapter1_7.dita,tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter2/chapter2.dita,tasks/chapter1/chapter1_8.dita,tasks/chapter1/chapter1_2.dita,definitive_guide.ditamap,tasks/chapter1/chapter1_5.dita,tasks/chapter2/chapter2_1.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita
hrefditatopicfile=hrefditatopic.list
hrefditatopiclist=tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,tasks/info/hacopyright.dita
user.input.file=definitive_guide.ditamap
@@ -27,7 +27,7 @@ imagelist=images/halogo.jpg
htmlfile=html.list
htmllist=
canditopicsfile=canditopics.list
canditopicslist=tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita
canditopicslist=tasks/chapter1/chapter1_7.dita,tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter2/chapter2.dita,tasks/chapter1/chapter1_8.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/chapter2/chapter2_1.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita
keyreffile=keyref.list
subjectschemefile=subjectscheme.list
keyreflist=
@@ -3,11 +3,11 @@
SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="copytosourcelist"></entry>
<entry key="hreftargetslist">tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita</entry>
<entry key="hreftargetslist">tasks/chapter1/chapter1_7.dita,tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter2/chapter2.dita,tasks/chapter1/chapter1_8.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/chapter2/chapter2_1.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita</entry>
<entry key="fullditatopicfile">fullditatopic.list</entry>
<entry key="fullditamapandtopicfile">fullditamapandtopic.list</entry>
<entry key="fullditatopiclist">tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita</entry>
<entry key="fullditamapandtopiclist">tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,definitive_guide.ditamap,tasks/chapter1/chapter1_5.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita</entry>
<entry key="fullditatopiclist">tasks/chapter1/chapter1_7.dita,tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter2/chapter2.dita,tasks/chapter1/chapter1_8.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/chapter2/chapter2_1.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita</entry>
<entry key="fullditamapandtopiclist">tasks/chapter1/chapter1_7.dita,tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter2/chapter2.dita,tasks/chapter1/chapter1_8.dita,tasks/chapter1/chapter1_2.dita,definitive_guide.ditamap,tasks/chapter1/chapter1_5.dita,tasks/chapter2/chapter2_1.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita</entry>
<entry key="hrefditatopicfile">hrefditatopic.list</entry>
<entry key="hrefditatopiclist">tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,tasks/info/hacopyright.dita</entry>
<entry key="user.input.file">definitive_guide.ditamap</entry>
@@ -30,7 +30,7 @@
<entry key="htmlfile">html.list</entry>
<entry key="htmllist"></entry>
<entry key="canditopicsfile">canditopics.list</entry>
<entry key="canditopicslist">tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita</entry>
<entry key="canditopicslist">tasks/chapter1/chapter1_7.dita,tasks/info/apachelicense.dita,tasks/chapter1/chapter1_1.dita,tasks/chapter1/chapter1_6.dita,tasks/chapter1/chapter1.dita,tasks/chapter1/chapter1_3.dita,tasks/chapter2/chapter2.dita,tasks/chapter1/chapter1_8.dita,tasks/chapter1/chapter1_2.dita,tasks/chapter1/chapter1_5.dita,tasks/chapter2/chapter2_1.dita,tasks/info/hacopyright.dita,tasks/chapter1/chapter1_4.dita</entry>
<entry key="keyreffile">keyref.list</entry>
<entry key="subjectschemefile">subjectscheme.list</entry>
<entry key="keyreflist"></entry>
@@ -16,6 +16,8 @@
<meta name="DC.Relation" scheme="URI" content="../../tasks/chapter1/chapter1_4.html"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/chapter1/chapter1_5.html"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/chapter1/chapter1_6.html"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/chapter1/chapter1_7.html"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/chapter1/chapter1_8.html"/>
<meta name="prodname" content="Maven权威指南"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS Maven"/>
@@ -52,6 +54,10 @@
</li>
<li class="ulchildlink"><strong><a href="../../tasks/chapter1/chapter1_6.html">Maven是Ant的另一种选择吗</a></strong><br/>
</li>
<li class="ulchildlink"><strong><a href="../../tasks/chapter1/chapter1_7.html">比较Maven和Ant</a></strong><br/>
</li>
<li class="ulchildlink"><strong><a href="../../tasks/chapter1/chapter1_8.html">总结</a></strong><br/>
</li>
</ul>
</div>
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="总结"/>
<meta name="DC.subject" content="Apache, Maven, 介绍"/>
<meta name="keywords" content="Apache, Maven, 介绍"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/chapter1/chapter1.html"/>
<meta name="prodname" content="Maven权威指南"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS Maven"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="chapter1_8"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>总结</title>
</head>
<body id="chapter1_8"><a name="chapter1_8"><!-- --></a>
<h1 class="topictitle1">总结</h1>
<div>
<p>我们刻意的使这篇介绍保持得简短。 我们略述了一些Maven定义的要点,它们合起来是什么,它是基于什么改进的,同时介绍了其它构建工具。 下一章将深入一个简单的项目,看 Maven 如何能够通过最小数量的配置来执行典型的任务。</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题:</strong> <a href="../../tasks/chapter1/chapter1.html" title="主要对 Apache Maven 进行了简要的描述。">介绍 Apache Maven</a></div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="安装与运行Maven"/>
<meta name="abstract" content="本章包含了在许多不同平台上安装Maven的详细指令。我们会介绍得尽可能详细以减少安装过程中可能出现的问题,而不去假设你已经熟悉安装软件和设置环境变量。本章的唯一前提是你已经安装了恰当的JDK。如果你仅仅对安装感兴趣,读完下载Maven和安装Maven后,你就可以直接去看本书其它的部分。如果你对Maven安装的细节感兴趣,本章将会给你提供一个简要的介绍,以及Apache软件许可证,版本2.0的介绍。"/>
<meta name="description" content="本章包含了在许多不同平台上安装Maven的详细指令。我们会介绍得尽可能详细以减少安装过程中可能出现的问题,而不去假设你已经熟悉安装软件和设置环境变量。本章的唯一前提是你已经安装了恰当的JDK。如果你仅仅对安装感兴趣,读完下载Maven和安装Maven后,你就可以直接去看本书其它的部分。如果你对Maven安装的细节感兴趣,本章将会给你提供一个简要的介绍,以及Apache软件许可证,版本2.0的介绍。"/>
<meta name="DC.subject" content="Apache, Maven, 安装"/>
<meta name="keywords" content="Apache, Maven, 安装"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/chapter2/chapter2_1.html"/>
<meta name="prodname" content="Maven权威指南"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS Maven"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="chapter2"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>安装与运行Maven</title>
</head>
<body id="chapter2"><a name="chapter2"><!-- --></a>
<h1 class="topictitle1">安装与运行Maven</h1>
<div><p>本章包含了在许多不同平台上安装Maven的详细指令。我们会介绍得尽可能详细以减少安装过程中可能出现的问题,而不去假设你已经熟悉安装软件和设置环境变量。本章的唯一前提是你已经安装了恰当的JDK。如果你仅仅对安装感兴趣,读完下载Maven和安装Maven后,你就可以直接去看本书其它的部分。如果你对Maven安装的细节感兴趣,本章将会给你提供一个简要的介绍,以及Apache软件许可证,版本2.0的介绍。 </p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="../../tasks/chapter2/chapter2_1.html">验证你的Java安装</a></strong><br/>
</li>
</ul>
</div>
</body>
</html>
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="concept"/>
<meta name="DC.Title" content="验证你的Java安装"/>
<meta name="DC.subject" content="Apache, Maven, 安装"/>
<meta name="keywords" content="Apache, Maven, 安装"/>
<meta name="DC.Relation" scheme="URI" content="../../tasks/chapter2/chapter2.html"/>
<meta name="prodname" content="Maven权威指南"/>
<meta name="version" content="1.0.0.0"/>
<meta name="brand" content="HAWEBS Maven"/>
<meta name="copyright" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Rights.Owner" content="HAWEBS信息技术股份有限公司 2006, 2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="chapter2_1"/>
<meta name="DC.Language" content="zh"/>
<link rel="stylesheet" type="text/css" href="../../css/commonltr.css"/>
<link rel="stylesheet" type="text/css" href="../../css/public.css"/>
<title>验证你的Java安装</title>
</head>
<body id="chapter2_1"><a name="chapter2_1"><!-- --></a>
<h1 class="topictitle1">验证你的Java安装 </h1>
<div>
<p>尽管Maven可以运行在Java 1.4上,但本书假设你在至少Java 5上运行。尽管使用你操作系统上最新的稳定版本的JDK。本书的例子在Java 5或者Java 6上都能运行。 </p>
<div class="p"><pre class="codeblock">C:\Documents and Settings\YUCHENGHU&gt;java -version
java version "1.5.0_21"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_21-b01)
Java HotSpot(TM) Client VM (build 1.5.0_21-b01, mixed mode, sharing)
C:\Documents and Settings\YUCHENGHU&gt;</pre>
</div>
<p>Maven能在所有的验证过的JavaTM 兼容的JDK上工作,也包括一些未被验证JDK实现。本书的所有样例是基于Sun官方的JDK编写和测试的。如果你正在使用Linux,你可能需要自己下载Sun的JDK,并且确定JDK的版本(运行 <span class="cmdname">java -version</span>)。目前Sun已经将Java开源,因此这种情况将来有希望得到改进,将来很有可能Sun JRE和JDK会被默认安装在Linux上。但直到现在为止,你还是需要自己去下载。 </p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题:</strong> <a href="../../tasks/chapter2/chapter2.html" title="本章包含了在许多不同平台上安装Maven的详细指令。我们会介绍得尽可能详细以减少安装过程中可能出现的问题,而不去假设你已经熟悉安装软件和设置环境变量。本章的唯一前提是你已经安装了恰当的JDK。如果你仅仅对安装感兴趣,读完下载Maven和安装Maven后,你就可以直接去看本书其它的部分。如果你对Maven安装的细节感兴趣,本章将会给你提供一个简要的介绍,以及Apache软件许可证,版本2.0的介绍。">安装与运行Maven</a></div>
</div>
</div>
</body>
</html>
@@ -21,6 +21,12 @@
<li><a href="tasks/chapter1/chapter1_5.html">一个“项目”的概念模型</a></li>
<li><a href="tasks/chapter1/chapter1_6.html">Maven是Ant的另一种选择吗</a></li>
<li><a href="tasks/chapter1/chapter1_7.html">比较Maven和Ant</a></li>
<li><a href="tasks/chapter1/chapter1_8.html">总结</a></li>
</ul>
</li>
<li><a href="tasks/chapter2/chapter2.html">安装与运行Maven</a>
<ul>
<li><a href="tasks/chapter2/chapter2_1.html">验证你的Java安装</a></li>
</ul>
</li>
</ul>
@@ -67,5 +67,9 @@
<topicref href="tasks/chapter1/chapter1_5.dita"/>
<topicref href="tasks/chapter1/chapter1_6.dita"/>
<topicref href="tasks/chapter1/chapter1_7.dita"/>
<topicref href="tasks/chapter1/chapter1_8.dita"/>
</topicref>
<topicref href="tasks/chapter2/chapter2.dita">
<topicref href="tasks/chapter2/chapter2_1.dita"/>
</topicref>
</map>
@@ -0,0 +1,49 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- This document was created with Syntext Serna Free. --><!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []>
<!--
**
* Copyright (C) 2006-2010 YUCHENG HU
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
* HA WEBSYSTEMS
* http://www.hawebs.net
* http://www.tcivis.com
*
* Contact
* [email protected] / [email protected]
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
* GNU GENERAL PUBLIC LICENSE
* APACHE LICENSE, VERSION 2.0
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
-->
<concept id="chapter1_8" xml:lang="zh">
<title>总结</title>
<prolog>
<metadata>
<keywords>
<indexterm>Apache</indexterm>
<indexterm>Maven</indexterm>
<indexterm>介绍</indexterm>
</keywords>
</metadata>
</prolog>
<conbody>
<p>我们刻意的使这篇介绍保持得简短。 我们略述了一些Maven定义的要点,它们合起来是什么,它是基于什么改进的,同时介绍了其它构建工具。 下一章将深入一个简单的项目,看 Maven 如何能够通过最小数量的配置来执行典型的任务。</p>
</conbody>
</concept>
@@ -0,0 +1,48 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- This document was created with Syntext Serna Free. --><!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []>
<!--
**
* Copyright (C) 2006-2010 YUCHENG HU
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
* HA WEBSYSTEMS
* http://www.hawebs.net
* http://www.tcivis.com
*
* Contact
* [email protected] / [email protected]
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
* GNU GENERAL PUBLIC LICENSE
* APACHE LICENSE, VERSION 2.0
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
-->
<concept id="chapter2" xml:lang="zh">
<title>安装与运行Maven</title>
<shortdesc>本章包含了在许多不同平台上安装Maven的详细指令。我们会介绍得尽可能详细以减少安装过程中可能出现的问题,而不去假设你已经熟悉安装软件和设置环境变量。本章的唯一前提是你已经安装了恰当的JDK。如果你仅仅对安装感兴趣,读完下载Maven和安装Maven后,你就可以直接去看本书其它的部分。如果你对Maven安装的细节感兴趣,本章将会给你提供一个简要的介绍,以及Apache软件许可证,版本2.0的介绍。 </shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm>Apache</indexterm>
<indexterm>Maven</indexterm>
<indexterm>安装</indexterm>
</keywords>
</metadata>
</prolog>
<conbody/>
</concept>
@@ -0,0 +1,56 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- This document was created with Syntext Serna Free. --><!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []>
<!--
**
* Copyright (C) 2006-2010 YUCHENG HU
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
* HA WEBSYSTEMS
* http://www.hawebs.net
* http://www.tcivis.com
*
* Contact
* [email protected] / [email protected]
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
* GNU GENERAL PUBLIC LICENSE
* APACHE LICENSE, VERSION 2.0
*
* +++++++++++++++++++++++++++++++++++++++++++++++++
-->
<concept id="chapter2_1" xml:lang="zh">
<title>验证你的Java安装 </title>
<prolog>
<metadata>
<keywords>
<indexterm>Apache</indexterm>
<indexterm>Maven</indexterm>
<indexterm>安装</indexterm>
</keywords>
</metadata>
</prolog>
<conbody>
<p>尽管Maven可以运行在Java 1.4上,但本书假设你在至少Java 5上运行。尽管使用你操作系统上最新的稳定版本的JDK。本书的例子在Java 5或者Java 6上都能运行。 </p>
<p><codeblock>C:\Documents and Settings\YUCHENGHU&gt;java -version
java version &quot;1.5.0_21&quot;
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_21-b01)
Java HotSpot(TM) Client VM (build 1.5.0_21-b01, mixed mode, sharing)
C:\Documents and Settings\YUCHENGHU&gt;</codeblock></p>
<p>Maven能在所有的验证过的JavaTM 兼容的JDK上工作,也包括一些未被验证JDK实现。本书的所有样例是基于Sun官方的JDK编写和测试的。如果你正在使用Linux,你可能需要自己下载Sun的JDK,并且确定JDK的版本(运行 <cmdname>java -version</cmdname>)。目前Sun已经将Java开源,因此这种情况将来有希望得到改进,将来很有可能Sun JRE和JDK会被默认安装在Linux上。但直到现在为止,你还是需要自己去下载。 </p>
</conbody>
</concept>