github、maven、idea初始化一个项目
1.在github上面创建一个项目

2.将项目克隆到本地

3.新建maven项目


4.编辑.gitignore

5.初次提交
F:\git_code\github_test>git add .
warning: LF will be replaced by CRLF in pom.xml.
The file will have its original line endings in your working directory
F:\git_code\github_test>git status
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: .gitignore
new file: pom.xml
F:\git_code\github_test>git commit -m "第一次初始化"
[main 9c77134] 第一次初始化
2 files changed, 13 insertions(+)
create mode 100644 pom.xml
F:\git_code\github_test>git push
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 643 bytes | 643.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/Eric-chenjy/github_test.git
3cd1cc9..9c77134 main -> main
F:\git_code\github_test>
6.手动导入部分包(maven仓库中没有的包)
把jar中放在一个临时目录下,在当前目录执行mvn install命令即可
mvn install:install-file -Dfile=codegenerate-1.2.5.jar -DgroupId=org.jeecgframework.boot -DartifactId=codegenerate -Dversion=1.2.5 -Dpackaging=jar
mvn install:install-file -Dfile=codegenerate-1.2.5.jar --jar包名称
-DgroupId=org.jeecgframework.boot
-DartifactId=codegenerate
-Dversion=1.2.5 -- 版本 -Dpackaging=jar
We only live once, and time just goes by.

浙公网安备 33010602011771号