Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-nexus
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
bailuntec-nexus
Commits
69c63de3
Commit
69c63de3
authored
Mar 10, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 文档
parent
fa7a9906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
README.md
README.md
+65
-0
No files found.
README.md
0 → 100644
View file @
69c63de3
# 百伦Java Maven依赖管理
## 如何使用
新项目继承
```
xml
<parent>
<artifactId>
bailuntec-parent
</artifactId>
<groupId>
com.bailuntec
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
```
新的二方库添加到bailuntec-bom/pom.xml
新的三方库添加到bailuntec-dependencies/pom.xml
## 项目结构
```
├── bailuntec-bom 二方库依赖
├── bailuntec-dependencies 三方库依赖
└── bailuntec-parent Java项目公共父亲pom
```
### 如何开发
#### 新增三方库依赖
bailuntec-dependencies/pom.xml添加
```
xml
<properties>
...
<commons-lang3.verson>
3.10
</commons-lang3.verson>
</properties>
<!--apache lang 工具包-->
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
${commons-lang3.verson}
</version>
</dependency>
```
#### 新增二方库依赖
bailuntec-bom/pom.xml添加
```
xml
<properties>
...
<bailuntec-cost-api.version>
1.0-SNAPSHOT
</bailuntec-cost-api.version>
</properties>
<dependency>
<groupId>
com.bailuntec
</groupId>
<artifactId>
bailuntec-cost-api
</artifactId>
<version>
${bailuntec-cost-api.version}
</version>
</dependency>
```
发布: bailuntec-nexus目录下执行
```
shell script
mvn clean deploy
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment