mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-27 05:23:46 +00:00
Update 构建工具.md
按 Maven 文档调整仓库的搜索顺序为本地仓库、远程仓库、中央仓库;JUnit 拼写。
This commit is contained in:
+2
-2
@@ -24,7 +24,7 @@ Ant 具有编译、测试和打包功能,其后出现的 Maven 在 Ant 的功
|
||||
|
||||
Gradle 和 Maven 的区别是,它使用 Groovy 这种特定领域语言(DSL)来管理构建脚本,而不再使用 XML 这种标记性语言。因为项目如果庞大的话,XML 很容易就变得臃肿。
|
||||
|
||||
例如要在项目中引入 Junit,Maven 的代码如下:
|
||||
例如要在项目中引入 JUnit,Maven 的代码如下:
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
@@ -63,7 +63,7 @@ dependencies {
|
||||
|
||||
### 仓库
|
||||
|
||||
仓库的搜索顺序为:本地仓库、中央仓库、远程仓库。
|
||||
仓库的搜索顺序为:本地仓库、远程仓库、中央仓库。
|
||||
|
||||
- 本地仓库用来存储项目的依赖库;
|
||||
- 中央仓库是下载依赖库的默认位置;
|
||||
|
||||
Reference in New Issue
Block a user