Skip to content

Commit 7cf717f

Browse files
author
bajins
committed
add
1 parent ca8fc51 commit 7cf717f

File tree

8 files changed

+72
-5
lines changed

8 files changed

+72
-5
lines changed

Java/Java构建管理.md

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,15 +353,14 @@
353353
* 运行检查: `mvn verify`
354354
* 清理maven项目: `mvn clean`
355355
* 生成eclipse项目: `mvn eclipse:eclipse`
356-
* 清理eclipse配置: `mvn eclipse:clean`
356+
* 清理eclipse配置: `mvn eclipse:clean` 删除`.settings``.project``.classpath``.factorypath`
357357
* 生成idea项目: `mvn idea:idea`
358358
* 安装项目到本地仓库: `mvn install`
359359
* 发布项目到远程仓库: `mvn:deploy`
360360
* 在集成测试可以运行的环境中处理和发布包: `mvn integration-test`
361361
* 显示maven依赖树: `mvn dependency:tree`
362362
* 显示maven依赖列表: `mvn dependency:list`
363363
* 下载依赖包的源码: `mvn dependency:sources`
364-
* 安装本地jar到本地仓库: `mvn install:install-file -DgroupId=packageName -DartifactId=projectName -Dversion=version -Dpackaging=jar -Dfile=path`
365364

366365

367366
**web项目相关命令**
@@ -376,6 +375,63 @@
376375
- 部署展开的war文件: `mvn war:exploded tomcat:exploded`
377376

378377

378+
#### 使用本地jar包
379+
380+
**将jar包安装到本地Maven仓库中**
381+
382+
`mvn install:install-file -Dfile=C:\Users\xx\Desktop\test-1.0-SNAPSHOT.jar -DgroupId=com.bajins -DartifactId=test -Dversion=1.0 -Dpackaging=jar`
383+
384+
- `-Dfile`:指定要安装的文件的路径。
385+
- `-DgroupId`:指定项目的groupId。
386+
- `-DartifactId`:指定项目的artifactId。
387+
- `-Dversion`:指定项目的版本号。
388+
- `-Dpackaging`:指定项目的打包类型。
389+
390+
391+
+ Eclipse -> `File` -> `Import` -> `Maven` -> `Install or deply an artifact to a Maven reposeitory` -> `Next` -> `Install artifact`
392+
+ Eclipse -> 项目右键 -> `Maven` -> `Update Project`
393+
394+
395+
396+
**引用本地jar包,非引用本地Maven仓库**
397+
398+
```xml
399+
<dependency>
400+
<groupId>com.xxx</groupId>
401+
<artifactId>xxx-sdk</artifactId>
402+
<version>${xxxSDK.version}</version>
403+
<scope>system</scope>
404+
<systemPath>${project.basedir}/lib/xxxSDK.jar</systemPath>
405+
</dependency>
406+
407+
<plugin>
408+
<groupId>org.springframework.boot</groupId>
409+
<artifactId>spring-boot-maven-plugin</artifactId>
410+
<!-- 加以下配置 打包时包括引用的本地jar -->
411+
<configuration>
412+
<includeSystemScope>true</includeSystemScope>
413+
</configuration>
414+
</plugin>
415+
<plugin>
416+
<groupId>org.apache.maven.plugins</groupId>
417+
<artifactId>maven-war-plugin</artifactId>
418+
<configuration>
419+
<webResources>
420+
<resource>
421+
<!-- 拷贝指定文件夹下的文件到指定目录 -->
422+
<directory>${project.basedir}/lib</directory>
423+
<targetPath>WEB-INF/lib</targetPath>
424+
<filtering>false</filtering>
425+
<includes>
426+
<include>**/*.jar</include>
427+
</includes>
428+
</resource>
429+
</webResources>
430+
</configuration>
431+
<version>2.1.1</version>
432+
</plugin>
433+
```
434+
379435

380436

381437
### Maven私服搭建
@@ -399,5 +455,3 @@
399455
* jitpack [https://jitpack.io](https://jitpack.io)
400456
* jcenter [http://jcenter.bintray.com](http://jcenter.bintray.com)
401457

402-
403-

Other/书籍和博客.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@
458458
* [https://github.com/xiaoguyu](https://github.com/xiaoguyu)
459459
* [https://www.letianbiji.com](https://www.letianbiji.com)
460460
* [https://blog.xygalaxy.com](https://blog.xygalaxy.com)
461+
* [https://github.com/mzlogin](https://github.com/mzlogin)
462+
* [归档 — 码志](https://mazhuang.org/archives)
461463

462464

463465

PL/人工智能.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171

7272
* [https://maeiee-garden.vercel.app](https://maeiee-garden.vercel.app)
7373
* 微调 [https://github.com/InternLM/xtuner](https://github.com/InternLM/xtuner)
74+
* 会议记录 [https://github.com/latentdream/watson.ai](https://github.com/latentdream/watson.ai)
75+
* 爬虫 [https://github.com/mendableai/firecrawl](https://github.com/mendableai/firecrawl)
7476

7577

7678

@@ -437,6 +439,7 @@
437439
* [https://github.com/facebookresearch/nougat](https://github.com/facebookresearch/nougat)
438440
* [https://github.com/Greedysky/TTKOCR](https://github.com/Greedysky/TTKOCR)
439441
* [https://github.com/tesseract-ocr/tesseract](https://github.com/tesseract-ocr/tesseract)
442+
* [https://github.com/xushengfeng/eSearch](https://github.com/xushengfeng/eSearch)
440443
* 百度飞桨 [https://github.com/PaddlePaddle/PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)
441444
* [https://github.com/hiroi-sora/Umi-OCR](https://github.com/hiroi-sora/Umi-OCR)
442445
* [https://github.com/miaomiaosoft/PandaOCR](https://github.com/miaomiaosoft/PandaOCR)

PL/表达式和编码.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
+ [https://github.com/topics/emoji](https://github.com/topics/emoji)
5353
+ [https://github.com/rotick/searchemoji](https://github.com/rotick/searchemoji)
5454
+ [https://github.com/hfg-gmuend/openmoji](https://github.com/hfg-gmuend/openmoji)
55+
+ [https://emojispark.com](https://emojispark.com)
5556

5657

5758
* Unicode最基本的知识 [https://tonsky.me/blog/unicode](https://tonsky.me/blog/unicode)

Shell/PowerShell命令.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@
1919
```powershell
2020
# 列出所有的环境变量
2121
Get-ChildItem env:
22-
gci env:
22+
gci env: | Format-Table -Property Name, Value
2323
dir env:
2424
ls env:
2525
# 获取环境变量的值
26+
gi env:path
27+
$environment["Path"]
2628
$env:变量名
2729
# 删除环境变量
2830
del env:变量名
2931
# 更新环境变量
3032
$env:变量名="变量值"
33+
gci env: | Where-Object {$_.Name -like "USER*"}
3134
# .NET方法操作可以全局生效
3235
# 修改当前用户的环境变量(永久),只对新进程有效
3336
[environment]::SetEnvironmentvariable("变量名", "值", [EnvironmentVariableTarget]::User)

Shell/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
+ [https://github.com/ynqa/jnv](https://github.com/ynqa/jnv)
8989
+ HTML [https://github.com/ericchiang/pup](https://github.com/ericchiang/pup)
9090
+ Find [https://github.com/sharkdp/fd](https://github.com/sharkdp/fd)
91+
+ 便捷运行 [https://github.com/casey/just](https://github.com/casey/just)
9192

9293

9394
**`terminal``shell``tty``console` 之间的区别**

System/内网穿透.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ log_level = info
407407
* [https://github.com/jedisct1/vtun](https://github.com/jedisct1/vtun)
408408
* [https://github.com/mullvad](https://github.com/mullvad)
409409
* [https://github.com/ProtonVPN](https://github.com/ProtonVPN)
410+
* [https://github.com/amnezia-vpn/amnezia-client](https://github.com/amnezia-vpn/amnezia-client)
410411
* Tinc VPN [https://github.com/gsliepen/tinc](https://github.com/gsliepen/tinc)
411412
* [https://gitlab.com/gsliepen/tinc](https://gitlab.com/gsliepen/tinc)
412413
* [使用 Tinc VPN 实现远程办公](https://21ki.github.io/post/tinc-vpn-build)

Web/CSS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
* [https://www.purecss.cn](https://www.purecss.cn)
118118
* [https://github.com/wintermute-cell/magick.css](https://github.com/wintermute-cell/magick.css)
119119
* [https://github.com/louismerlin/concrete.css](https://github.com/louismerlin/concrete.css)
120+
* [https://github.com/milligram/milligram](https://github.com/milligram/milligram)
121+
* [https://github.com/dhg/Skeleton](https://github.com/dhg/Skeleton)
120122
* [https://github.com/necolas/normalize.css](https://github.com/necolas/normalize.css)
121123
* [https://github.com/picturepan2/spectre](https://github.com/picturepan2/spectre)
122124
* [https://github.com/semantic-org/semantic-ui](https://github.com/semantic-org/semantic-ui)

0 commit comments

Comments
 (0)