File tree Expand file tree Collapse file tree 2 files changed +41
-2
lines changed
Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66
77 <groupId >org.example</groupId >
8- <artifactId >mail </artifactId >
8+ <artifactId >review </artifactId >
99 <version >1.0-SNAPSHOT</version >
1010
1111 <properties >
2222 </dependency >
2323 </dependencies >
2424
25+ <build >
26+ <finalName >review</finalName >
27+ <plugins >
28+ <plugin >
29+ <groupId >org.apache.maven.plugins</groupId >
30+ <artifactId >maven-compiler-plugin</artifactId >
31+ <version >3.8.0</version >
32+ <configuration >
33+ <source >1.8</source >
34+ <target >1.8</target >
35+ <encoding >UTF-8</encoding >
36+ </configuration >
37+ </plugin >
38+ <plugin >
39+ <artifactId >maven-assembly-plugin</artifactId >
40+ <configuration >
41+ <archive >
42+ <manifest >
43+ <mainClass >com.foolgry.review.App</mainClass >
44+ </manifest >
45+ </archive >
46+ <descriptorRefs >
47+ <descriptorRef >jar-with-dependencies</descriptorRef >
48+ </descriptorRefs >
49+ </configuration >
50+ <!-- 下面是为了使用 mvn package命令,如果不加则使用mvn assembly-->
51+ <executions >
52+ <execution >
53+ <phase >package</phase >
54+ <goals >
55+ <goal >single</goal >
56+ </goals >
57+ </execution >
58+ </executions >
59+ </plugin >
60+
61+ </plugins >
62+ </build >
63+
2564
2665</project >
Original file line number Diff line number Diff line change 55## 使用
66修改 app.java 中的目录名和其他配置,
77方法 1:使用 ide 运行 app 类的 main 方法
8- 方法 2:使用命令行编译,然后运行
8+ 方法 2:直接下载jar包,然后命令行运行
99
1010## 扩展
1111程序本身没有定时运行的能力,可以用 java 的定时任务去做,ScheduledThreadPoolExecutor
You can’t perform that action at this time.
0 commit comments