Skip to content

Commit 72b595d

Browse files
authored
mvn package : get the jar of the project ~
1 parent 4c70425 commit 72b595d

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

memo/pom.xml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,37 @@
6363
</dependency>
6464
</dependencies>
6565

66-
<!-- 解决: org.apache.ibatis.binding.BindingException:Invalid bound statement (not found) -->
67-
<build>
66+
<build>
67+
<plugins>
68+
<!-- Quick start: mvn package -->
69+
<plugin>
70+
<groupId>org.springframework.boot</groupId>
71+
<artifactId>spring-boot-maven-plugin</artifactId>
72+
<executions>
73+
<execution>
74+
<goals>
75+
<goal>repackage</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
</plugin>
80+
</plugins>
6881
<resources>
82+
<!-- IDEA-解决: org.apache.ibatis.binding.BindingException:Invalid bound statement (not found) -->
6983
<resource>
7084
<directory>src/main/java</directory>
7185
<includes>
7286
<include>**/*.xml</include>
7387
</includes>
7488
</resource>
89+
<!-- IDEA-解决: 项目打包后其jar中未包含'static/'及'application.properties'配置文件问题 -->
90+
<resource>
91+
<directory>src/main/resources</directory>
92+
<includes>
93+
<include>**/**</include>
94+
</includes>
95+
</resource>
7596
</resources>
7697
</build>
7798

78-
</project>
99+
</project>

0 commit comments

Comments
 (0)