MyBatis源码编译环境构建

Posted by Sunfy on 2019-11-15
Words 115 and Reading Time 1 Minutes
Viewed Times
Viewed Times
Visitors In Total

MyBatis源码阅读环境编译,能够更方便阅读源码,可以切换源码版本!

1、源码下载

下载地址:https://github.com/mybatis/mybatis-3

image-20201022133141200

1
2
3
4
5
--下载源码
git clone https://github.com/mybatis/mybatis-3
--进入到刚clone的目录文件
--创建分支,切换至最新版本(from tag)
git checkout -b [branchname] [tagname]

2、build

IDEA打开刚才创建的分支,Maven先clean intstall

或者命令行操作

1
2
3
mvn clean 

mvn install -Dmaven.test.skip=true

最终结果:

image-20201022133938087


Copyright 2021 sunfy.top ALL Rights Reserved

...

...

00:00
00:00