Skip to content

Commit

Permalink
配置pom文件,将项目打包成jar包
Browse files Browse the repository at this point in the history
  • Loading branch information
helltractor committed Jul 8, 2024
1 parent 91b8986 commit 52f96c5
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
**/test/
docker/
logs/
*.rdb
*.rdb
!**/target/*.jar
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@
1. run `EnjoyApplication.java`
2. open `http://localhost/#/login` in browser

# Run jar package

1. `java -jar enjoy-server-0.0.1.jar`
2. open `http://localhost/#/login` in browser

# Next steps

- [x] 打包成jar包(0.0.1),参考[javafx的maven项目打jar包配置](https://www.bingbaihanji.com/archives/javafxPackagingConfiguration#javafx%E7%9A%84maven%E9%A1%B9%E7%9B%AE%E6%89%93jar%E5%8C%85%E9%85%8D%E7%BD%AE)
- [ ] 数据库无数据时,能够导出数据表格
- [ ] 数据库主从复制,参考[使用docker-compose配置mysql主从备份](https://www.enjoytoday.cn/2024/01/11/%E4%BD%BF%E7%94%A8docker-compose%E9%85%8D%E7%BD%AEmysql%E4%B8%BB%E4%BB%8E%E5%A4%87%E4%BB%BD/)
- [ ] 数据库主从复制,参考[使用docker-compose配置mysql主从备份](https://www.enjoytoday.cn/2024/01/11/%E4%BD%BF%E7%94%A8docker-compose%E9%85%8D%E7%BD%AEmysql%E4%B8%BB%E4%BB%8E%E5%A4%87%E4%BB%BD/)
14 changes: 13 additions & 1 deletion enjoy-build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,20 @@
<parent>
<groupId>com.enjoy</groupId>
<artifactId>enjoy-delicious-food</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.0.1</version>
</parent>

<artifactId>enjoy-build</artifactId>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
16 changes: 14 additions & 2 deletions enjoy-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<artifactId>enjoy-delicious-food</artifactId>
<groupId>com.enjoy</groupId>
<version>1.0-SNAPSHOT</version>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>enjoy-common</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.0.1</version>

<dependencies>
<dependency>
Expand Down Expand Up @@ -64,4 +64,16 @@
<artifactId>knife4j-spring-boot-starter</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
13 changes: 11 additions & 2 deletions enjoy-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>enjoy-delicious-food</artifactId>
<groupId>com.enjoy</groupId>
<version>1.0-SNAPSHOT</version>
<version>0.0.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.enjoy</groupId>
<artifactId>enjoy-common</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.0.1</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -116,4 +116,13 @@
<artifactId>pagehelper-spring-boot-starter</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<groupId>com.enjoy</groupId>
<artifactId>enjoy-delicious-food</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<version>0.0.1</version>

<modules>
<module>enjoy-common</module>
Expand Down

0 comments on commit 52f96c5

Please sign in to comment.