Skip to content

Commit

Permalink
mvn idea+docker 部署项目
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspercliff committed Dec 9, 2024
1 parent e9cb219 commit ea0e2bd
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
9 changes: 7 additions & 2 deletions docs/java/devTools/buildTools/gradle/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

---


### 代码示例

假设有一个模块 `library`,它依赖 `commons-lang3`,而另一个模块 `app` 依赖 `library`
Expand Down Expand Up @@ -68,4 +67,10 @@
### 总结

`implementation` 是 Gradle 中用于声明模块内部依赖的最佳实践,除非需要显式暴露依赖给其他模块(这种情况用 `api`),大部分场景都应使用
`implementation`。这样可以实现模块间的高内聚和低耦合,同时提高构建效率。
`implementation`。这样可以实现模块间的高内聚和低耦合,同时提高构建效率。

gradlew:这是在 Unix 类系统(包括 macOS 和 Linux)上运行 Gradle 的可执行脚本。它是一个 shell 脚本,用于包装 Gradle
Wrapper,确保使用正确的 Gradle 版本来执行构建任务。
gradlew.bat:这是在 Windows 系统上运行 Gradle 的批处理文件。它是一个批处理脚本,用于包装 Gradle Wrapper,确保使用正确的
Gradle 版本来执行构建任务。
这些文件通常位于项目的根目录下,并且是通过运行 gradle wrapper 命令自动生成的。
18 changes: 17 additions & 1 deletion docs/java/devTools/buildTools/maven/basic.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# basic
# basic

构建:编译、运行单元测试、生成文档、打包、部署的过程
构建的步骤:
● 清理 clean:将以前编译得到的旧文件 class 字节码文件删除。
● 编译 compile:将 java 源程序编译成 class 字节码文件。
● 测试 test:自动测试,自动调用 junit 程序。
● 报告 report:测试程序执行的结果。
● 打包 package:动态 Web 工程打 War 包,java 工程打 jar 包。
● 安装 install:将打包得到的文件复制到 “仓库” 中的指定位置(Maven特定的概念)。
● 部署 deploy:将动态 Web 工程生成的 war 包复制到 Servlet 容器下,使其可以运行。


- mvn archetype:generate 使用预定义的模板(称为 archetypes)来生成项目的基本目录结构和必要的配置文件



2 changes: 2 additions & 0 deletions docs/java/devTools/idea/docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# docker

4 changes: 3 additions & 1 deletion docs/java/devTools/idea/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
## debug

- [debug](debug.md)
- [自动补全](./自动补全.md)
- [自动补全](./自动补全.md)
- [idea+docker部署项目](./docker.md)
- [idea开发插件](./)
23 changes: 23 additions & 0 deletions docs/java/devTools/idea/plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# idea插件的开发

1. 安装devkit插件
2. 创建项目








## plugin.xml

- add-to-group 插件的位置
- keyboard-shortcut 快捷键




## gradle

IU 表示 IntelliJ Ultimate Edition。

0 comments on commit ea0e2bd

Please sign in to comment.