Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
bajins committed Aug 30, 2024
1 parent ca8fc51 commit 7cf717f
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 5 deletions.
62 changes: 58 additions & 4 deletions Java/Java构建管理.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,14 @@
* 运行检查: `mvn verify`
* 清理maven项目: `mvn clean`
* 生成eclipse项目: `mvn eclipse:eclipse`
* 清理eclipse配置: `mvn eclipse:clean`
* 清理eclipse配置: `mvn eclipse:clean` 删除`.settings``.project``.classpath``.factorypath`
* 生成idea项目: `mvn idea:idea`
* 安装项目到本地仓库: `mvn install`
* 发布项目到远程仓库: `mvn:deploy`
* 在集成测试可以运行的环境中处理和发布包: `mvn integration-test`
* 显示maven依赖树: `mvn dependency:tree`
* 显示maven依赖列表: `mvn dependency:list`
* 下载依赖包的源码: `mvn dependency:sources`
* 安装本地jar到本地仓库: `mvn install:install-file -DgroupId=packageName -DartifactId=projectName -Dversion=version -Dpackaging=jar -Dfile=path`


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


#### 使用本地jar包

**将jar包安装到本地Maven仓库中**

`mvn install:install-file -Dfile=C:\Users\xx\Desktop\test-1.0-SNAPSHOT.jar -DgroupId=com.bajins -DartifactId=test -Dversion=1.0 -Dpackaging=jar`

- `-Dfile`:指定要安装的文件的路径。
- `-DgroupId`:指定项目的groupId。
- `-DartifactId`:指定项目的artifactId。
- `-Dversion`:指定项目的版本号。
- `-Dpackaging`:指定项目的打包类型。


+ Eclipse -> `File` -> `Import` -> `Maven` -> `Install or deply an artifact to a Maven reposeitory` -> `Next` -> `Install artifact`
+ Eclipse -> 项目右键 -> `Maven` -> `Update Project`



**引用本地jar包,非引用本地Maven仓库**

```xml
<dependency>
<groupId>com.xxx</groupId>
<artifactId>xxx-sdk</artifactId>
<version>${xxxSDK.version}</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/xxxSDK.jar</systemPath>
</dependency>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!-- 加以下配置 打包时包括引用的本地jar -->
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<!-- 拷贝指定文件夹下的文件到指定目录 -->
<directory>${project.basedir}/lib</directory>
<targetPath>WEB-INF/lib</targetPath>
<filtering>false</filtering>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
</configuration>
<version>2.1.1</version>
</plugin>
```



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



2 changes: 2 additions & 0 deletions Other/书籍和博客.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@
* [https://github.com/xiaoguyu](https://github.com/xiaoguyu)
* [https://www.letianbiji.com](https://www.letianbiji.com)
* [https://blog.xygalaxy.com](https://blog.xygalaxy.com)
* [https://github.com/mzlogin](https://github.com/mzlogin)
* [归档 — 码志](https://mazhuang.org/archives)



Expand Down
3 changes: 3 additions & 0 deletions PL/人工智能.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@

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



Expand Down Expand Up @@ -437,6 +439,7 @@
* [https://github.com/facebookresearch/nougat](https://github.com/facebookresearch/nougat)
* [https://github.com/Greedysky/TTKOCR](https://github.com/Greedysky/TTKOCR)
* [https://github.com/tesseract-ocr/tesseract](https://github.com/tesseract-ocr/tesseract)
* [https://github.com/xushengfeng/eSearch](https://github.com/xushengfeng/eSearch)
* 百度飞桨 [https://github.com/PaddlePaddle/PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)
* [https://github.com/hiroi-sora/Umi-OCR](https://github.com/hiroi-sora/Umi-OCR)
* [https://github.com/miaomiaosoft/PandaOCR](https://github.com/miaomiaosoft/PandaOCR)
Expand Down
1 change: 1 addition & 0 deletions PL/表达式和编码.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
+ [https://github.com/topics/emoji](https://github.com/topics/emoji)
+ [https://github.com/rotick/searchemoji](https://github.com/rotick/searchemoji)
+ [https://github.com/hfg-gmuend/openmoji](https://github.com/hfg-gmuend/openmoji)
+ [https://emojispark.com](https://emojispark.com)


* Unicode最基本的知识 [https://tonsky.me/blog/unicode](https://tonsky.me/blog/unicode)
Expand Down
5 changes: 4 additions & 1 deletion Shell/PowerShell命令.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@
```powershell
# 列出所有的环境变量
Get-ChildItem env:
gci env:
gci env: | Format-Table -Property Name, Value
dir env:
ls env:
# 获取环境变量的值
gi env:path
$environment["Path"]
$env:变量名
# 删除环境变量
del env:变量名
# 更新环境变量
$env:变量名="变量值"
gci env: | Where-Object {$_.Name -like "USER*"}
# .NET方法操作可以全局生效
# 修改当前用户的环境变量(永久),只对新进程有效
[environment]::SetEnvironmentvariable("变量名", "值", [EnvironmentVariableTarget]::User)
Expand Down
1 change: 1 addition & 0 deletions Shell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
+ [https://github.com/ynqa/jnv](https://github.com/ynqa/jnv)
+ HTML [https://github.com/ericchiang/pup](https://github.com/ericchiang/pup)
+ Find [https://github.com/sharkdp/fd](https://github.com/sharkdp/fd)
+ 便捷运行 [https://github.com/casey/just](https://github.com/casey/just)


**`terminal``shell``tty``console` 之间的区别**
Expand Down
1 change: 1 addition & 0 deletions System/内网穿透.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ log_level = info
* [https://github.com/jedisct1/vtun](https://github.com/jedisct1/vtun)
* [https://github.com/mullvad](https://github.com/mullvad)
* [https://github.com/ProtonVPN](https://github.com/ProtonVPN)
* [https://github.com/amnezia-vpn/amnezia-client](https://github.com/amnezia-vpn/amnezia-client)
* Tinc VPN [https://github.com/gsliepen/tinc](https://github.com/gsliepen/tinc)
* [https://gitlab.com/gsliepen/tinc](https://gitlab.com/gsliepen/tinc)
* [使用 Tinc VPN 实现远程办公](https://21ki.github.io/post/tinc-vpn-build)
Expand Down
2 changes: 2 additions & 0 deletions Web/CSS.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
* [https://www.purecss.cn](https://www.purecss.cn)
* [https://github.com/wintermute-cell/magick.css](https://github.com/wintermute-cell/magick.css)
* [https://github.com/louismerlin/concrete.css](https://github.com/louismerlin/concrete.css)
* [https://github.com/milligram/milligram](https://github.com/milligram/milligram)
* [https://github.com/dhg/Skeleton](https://github.com/dhg/Skeleton)
* [https://github.com/necolas/normalize.css](https://github.com/necolas/normalize.css)
* [https://github.com/picturepan2/spectre](https://github.com/picturepan2/spectre)
* [https://github.com/semantic-org/semantic-ui](https://github.com/semantic-org/semantic-ui)
Expand Down

0 comments on commit 7cf717f

Please sign in to comment.