maven学习
2015-10-20 18:41
218 查看
1、创建一个POM之前,我们应该先决定项目组(groupId),它的名字(artifactId)和它的版本,因为这些属性在仓库中的唯一标识项目的帮助
所有的 POM 文件要求的项目元素和三个必填字段: groupId,artifactId,version。
在库中的项目符号是:groupId:artifactId:version.
根元素 pom.xml是项目,它有三个主要的子节点:
节点描述
groupId This is an Id of project's group. This is
generally unique amongst an organization or a project. For example, a banking group com.company.bank has all bank related projects.
artifactId This is an Id of the project.This is generally
name of the project. For example, consumer-banking. Along with the groupId, the artifactId defines the artifact's location within the repository.versionThis is the version of the project.Along with the
groupId, It is used within an artifact's repository
to separate versions from each other. For example:
com.company.bank:consumer-banking:1.0
com.company.bank:consumer-banking:1.1.
所有的 POM 文件要求的项目元素和三个必填字段: groupId,artifactId,version。
在库中的项目符号是:groupId:artifactId:version.
根元素 pom.xml是项目,它有三个主要的子节点:
节点描述
groupId This is an Id of project's group. This is
generally unique amongst an organization or a project. For example, a banking group com.company.bank has all bank related projects.
artifactId This is an Id of the project.This is generally
name of the project. For example, consumer-banking. Along with the groupId, the artifactId defines the artifact's location within the repository.versionThis is the version of the project.Along with the
groupId, It is used within an artifact's repository
to separate versions from each other. For example:
com.company.bank:consumer-banking:1.0
com.company.bank:consumer-banking:1.1.
相关文章推荐
- Android 沉浸模式
- 提交表单post和get乱码
- Windows Server 2012 R2 里面如何安装Net Framework 3.5
- linux畅聊系统乱码问题
- Java 冒泡、选择、二分法排序
- Android Activity的LaunchMode
- JNI调用问题(部分机型崩溃)
- 学习笔记02-java内部类
- IMSI附着、GPRS附着、联合附着
- Word-O-Nomics - Word for the Day 【2015-10-20】
- java BigInteger,BigDecimal学习
- android环形弹出菜单的实现
- 深入理解计算机系统第二章家庭作业
- 144_多线程(线程间通信-等待唤醒机制)
- Installing MySQL on Microsoft Windows Using a noinstall Zip Archive,在Windows上使用非安装压缩包安装MySQL
- http://doc.okbase.net/fengshizty/archive/126397.html
- 在一个字符串中找到第一个只出现一次的字符。
- indexOf和lastIndexOf方法
- 微软算法100题03 求子数组的最大和
- onActivityResult与singleTask或singleInstance的冲突问题