File tree Expand file tree Collapse file tree 1 file changed +66
-1
lines changed
Expand file tree Collapse file tree 1 file changed +66
-1
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >com.snowcattle.future</groupId >
88 <artifactId >future</artifactId >
9- <version >1.0 -SNAPSHOT</version >
9+ <version >1.1 -SNAPSHOT</version >
1010
1111
12+ <properties >
13+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
14+ </properties >
15+
16+ <build >
17+ <resources >
18+ <resource >
19+ <directory >src/main/Java</directory >
20+ <!-- 包含 -->
21+ <includes >
22+ <include >**/*.vm</include >
23+ <include >**/*.properties</include >
24+ </includes >
25+ <!-- 排除 -->
26+ <excludes >
27+ <exclude >**/*.xml</exclude >
28+ </excludes >
29+ </resource >
30+ </resources >
31+
32+ <plugins >
33+ <plugin >
34+ <groupId >org.apache.maven.plugins</groupId >
35+ <artifactId >maven-compiler-plugin</artifactId >
36+ <version >3.1</version >
37+ <configuration >
38+ <source >1.7</source >
39+ <target >1.7</target >
40+ <encoding >${project.build.sourceEncoding} </encoding >
41+ <generatedSourcesDirectory >${project.build.directory} </generatedSourcesDirectory >
42+ </configuration >
43+ </plugin >
44+
45+ <plugin >
46+ <groupId >org.apache.maven.plugins</groupId >
47+ <artifactId >maven-jar-plugin</artifactId >
48+ <version >2.4</version >
49+ <!-- 定义在prepare-package时将classes/com打jar -->
50+ <goals >
51+ <goal >jar</goal >
52+ </goals >
53+ <configuration >
54+ <classesDirectory >${project.basedir} /target/classes</classesDirectory >
55+ <includes >
56+ <include >com/**</include >
57+ </includes >
58+ </configuration >
59+ </plugin >
60+
61+ <plugin >
62+ <groupId >org.apache.maven.plugins</groupId >
63+ <artifactId >maven-source-plugin</artifactId >
64+ <version >2.4</version >
65+ <executions >
66+ <execution >
67+ <id >attach-sources</id >
68+ <phase >verify</phase ><!-- 要绑定到的生命周期的阶段 在verify之后,install之前执行下面指定的goal -->
69+ <goals >
70+ <goal >jar-no-fork</goal ><!-- 类似执行mvn source:jar -->
71+ </goals >
72+ </execution >
73+ </executions >
74+ </plugin >
75+ </plugins >
76+ </build >
1277</project >
You can’t perform that action at this time.
0 commit comments