Apache Maven
Apache Maven,是一个软件(特别是Java软件)项目管理及自动构建工具,由Apache软件基金会所提供。基于项目对象模型(缩写:POM)概念,Maven利用一个中央信息片断能管理一个项目的构建、报告和文档等步骤。
![]() | |
開發者 | Apache软件基金会 |
---|---|
穩定版本 | |
源代码库 | ![]() |
编程语言 | Java |
操作系统 | 跨平台 |
类型 | 构建自动化 |
许可协议 | Apache许可证 2.0 |
网站 | maven |

Maven中心仓库中的组建数目呈指数级增长
Maven也可被用于构建和管理各种项目,例如C#,Ruby,Scala和其他语言编写的项目。Maven曾是Jakarta项目的子项目,现为由Apache软件基金会主持的独立Apache项目。
示例
Maven项目使用项目对象模型(Project Object Model,POM)来配置。
项目对象模型存储在名为 pom.xml 的文件中。
以下是一个简单的示例:
<project>
<!-- model version is always 4.0.0 for Maven 2.x POMs -->
<modelVersion>4.0.0</modelVersion>
<!-- project coordinates, i.e. a group of values which
uniquely identify this project -->
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1.0</version>
<!-- library dependencies -->
<dependencies>
<dependency>
<!-- coordinates of the required library -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<!-- this dependency is only used for running and compiling tests -->
<scope>test</scope>
</dependency>
</dependencies>
</project>
参见
补充阅读
- 有免费的PDF供下载和在线阅读:http://www.sonatype.com/documentation/books页面存档备份,存于 (英文)
參考資料
- Maven 3.5.4 页面存档备份,存于(英文)
- Maven版本历史 页面存档备份,存于(英文)
- https://www.baidu1.com/s?ie=UTF-8&wd=Maven%E6%95%99%E7%A8%8B https://www.runoob.com/maven/maven-creating-project.html 页面存档备份,存于
- 使用maven.aliyun.com中的仓库地址作为下载源,速度更快更稳定。 https://help.aliyun.com/document_detail/102512.html?spm=a2c40.aliyun_maven_repo.0.0.36183054g039s5 页面存档备份,存于
外部链接
- Maven项目官方网站页面存档备份,存于(英文)
- Maven 2新手教程:Maven 2用户练习指南- 教程在 页面存档备份,存于(英文)
- 完整参考页面存档备份,存于,一本已出版的并可免费在线阅读的书(英文)
- 用Maven 2构建Web应用程序(英文)
- Maven 2 POM揭秘页面存档备份,存于 - 文章在JavaWorld(英文)
- 在你的POM中验证依赖(英文)
- Maven的历史页面存档备份,存于(英文)
- 用于PHP的Maven页面存档备份,存于(英文)
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.