|
1 | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 3 | <modelVersion>4.0.0</modelVersion>
|
4 | 4 |
|
5 | 5 | <groupId>com.msw</groupId>
|
|
12 | 12 |
|
13 | 13 | <properties>
|
14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
15 |
| - <encoding>UTF-8</encoding> |
| 15 | + <encoding>UTF-8</encoding> |
16 | 16 | <java.version>1.8</java.version>
|
17 | 17 | </properties>
|
18 | 18 |
|
19 | 19 | <dependencies>
|
20 | 20 | <dependency>
|
21 |
| - <groupId>junit</groupId> |
22 |
| - <artifactId>junit</artifactId> |
23 |
| - <version>4.12</version> |
24 |
| - <scope>test</scope> |
25 |
| - </dependency> |
26 |
| - <dependency> |
27 |
| - <groupId>mysql</groupId> |
28 |
| - <artifactId>mysql-connector-java</artifactId> |
29 |
| - <version>5.1.37</version> |
30 |
| - </dependency> |
31 |
| - <dependency> |
32 |
| - <groupId>com.oracle</groupId> |
33 |
| - <artifactId>ojdbc6</artifactId> |
34 |
| - <version>11.2.0.3</version> |
35 |
| - </dependency> |
36 |
| - <dependency> |
37 |
| - <groupId>com.deepoove</groupId> |
38 |
| - <artifactId>poi-tl</artifactId> |
39 |
| - <version>1.3.1</version> |
40 |
| - </dependency> |
41 |
| - <dependency> |
42 |
| - <groupId>org.slf4j</groupId> |
43 |
| - <artifactId>slf4j-log4j12</artifactId> |
44 |
| - <version>1.7.5</version> |
| 21 | + <groupId>junit</groupId> |
| 22 | + <artifactId>junit</artifactId> |
| 23 | + <version>4.12</version> |
| 24 | + <scope>test</scope> |
45 | 25 | </dependency>
|
46 |
| - <dependency> |
47 |
| - <groupId>log4j</groupId> |
48 |
| - <artifactId>log4j</artifactId> |
49 |
| - <version>1.2.14</version> |
| 26 | + <dependency> |
| 27 | + <groupId>mysql</groupId> |
| 28 | + <artifactId>mysql-connector-java</artifactId> |
| 29 | + <version>5.1.37</version> |
| 30 | + </dependency> |
| 31 | + <dependency> |
| 32 | + <groupId>com.oracle</groupId> |
| 33 | + <artifactId>ojdbc6</artifactId> |
| 34 | + <version>11.2.0.3</version> |
| 35 | + </dependency> |
| 36 | + <dependency> |
| 37 | + <groupId>com.deepoove</groupId> |
| 38 | + <artifactId>poi-tl</artifactId> |
| 39 | + <version>1.3.1</version> |
50 | 40 | </dependency>
|
51 |
| - |
52 | 41 | </dependencies>
|
53 |
| - <build> |
54 |
| - <!-- 配置资源文件 --> |
55 |
| - <resources> |
56 |
| - <resource> |
57 |
| - <directory>src/main/java</directory> |
58 |
| - <includes> |
59 |
| - <include>**/*.fxml</include> |
60 |
| - <include>**/*.properties</include> |
61 |
| - <include>**/*.jpg</include> |
62 |
| - </includes> |
63 |
| - </resource> |
64 |
| - </resources> |
65 |
| - <!-- 编译插件 --> |
66 |
| - <plugins> |
67 |
| - <plugin> |
68 |
| - <groupId>org.apache.maven.plugins</groupId> |
69 |
| - <artifactId>maven-compiler-plugin</artifactId> |
70 |
| - <version>3.7.0</version> |
71 |
| - <configuration> |
72 |
| - <source>1.8</source> |
73 |
| - <target>1.8</target> |
74 |
| - <encoding>UTF-8</encoding> |
75 |
| - </configuration> |
76 |
| - </plugin> |
77 |
| - <!-- 打包成jar包,但是没有将依赖一起打包 --> |
78 |
| - <plugin> |
79 |
| - <groupId>org.apache.maven.plugins</groupId> |
80 |
| - <artifactId>maven-jar-plugin</artifactId> |
81 |
| - <version>3.0.2</version> |
82 |
| - <configuration> |
83 |
| - <archive> |
84 |
| - <manifest> |
85 |
| - <addClasspath>true</addClasspath> |
86 |
| - <mainClass>com.msw.java.Login</mainClass> |
87 |
| - </manifest> |
88 |
| - <manifestEntries> |
89 |
| - <Class-Path>.</Class-Path> |
90 |
| - </manifestEntries> |
91 |
| - </archive> |
92 |
| - </configuration> |
93 |
| - </plugin> |
94 |
| - <!-- 打包成jar包,将依赖一起打包 --> |
95 |
| - <plugin> |
96 |
| - <groupId>org.apache.maven.plugins</groupId> |
97 |
| - <artifactId>maven-assembly-plugin</artifactId> |
98 |
| - <version>2.6</version> |
99 |
| - <executions> |
100 |
| - <execution> |
101 |
| - <phase>package</phase> |
102 |
| - <goals> |
103 |
| - <goal>single</goal> |
104 |
| - </goals> |
105 |
| - </execution> |
106 |
| - </executions> |
107 |
| - <configuration> |
108 |
| - <archive> |
109 |
| - <manifest> |
110 |
| - <mainClass>com.msw.java.Login</mainClass> |
111 |
| - </manifest> |
112 |
| - </archive> |
113 |
| - <descriptorRefs> |
114 |
| - <descriptorRef>jar-with-dependencies</descriptorRef> |
115 |
| - </descriptorRefs> |
116 |
| - </configuration> |
117 |
| - </plugin> |
118 |
| - </plugins> |
119 |
| - </build> |
| 42 | + <build> |
| 43 | + <!-- 配置资源文件 --> |
| 44 | + <resources> |
| 45 | + <resource> |
| 46 | + <directory>src/main/java</directory> |
| 47 | + <includes> |
| 48 | + <include>**/*.fxml</include> |
| 49 | + <include>**/*.properties</include> |
| 50 | + <include>**/*.jpg</include> |
| 51 | + </includes> |
| 52 | + </resource> |
| 53 | + </resources> |
| 54 | + <!-- 编译插件 --> |
| 55 | + <plugins> |
| 56 | + <plugin> |
| 57 | + <groupId>org.apache.maven.plugins</groupId> |
| 58 | + <artifactId>maven-compiler-plugin</artifactId> |
| 59 | + <version>3.7.0</version> |
| 60 | + <configuration> |
| 61 | + <source>1.8</source> |
| 62 | + <target>1.8</target> |
| 63 | + <encoding>UTF-8</encoding> |
| 64 | + </configuration> |
| 65 | + </plugin> |
| 66 | + <!-- 打包成jar包,将依赖一起打包 --> |
| 67 | + <plugin> |
| 68 | + <groupId>org.apache.maven.plugins</groupId> |
| 69 | + <artifactId>maven-assembly-plugin</artifactId> |
| 70 | + <version>2.6</version> |
| 71 | + <executions> |
| 72 | + <execution> |
| 73 | + <phase>package</phase> |
| 74 | + <goals> |
| 75 | + <goal>single</goal> |
| 76 | + </goals> |
| 77 | + </execution> |
| 78 | + </executions> |
| 79 | + <configuration> |
| 80 | + <archive> |
| 81 | + <manifest> |
| 82 | + <mainClass>com.msw.java.Main</mainClass> |
| 83 | + </manifest> |
| 84 | + </archive> |
| 85 | + <descriptorRefs> |
| 86 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 87 | + </descriptorRefs> |
| 88 | + </configuration> |
| 89 | + </plugin> |
| 90 | + </plugins> |
| 91 | + </build> |
120 | 92 | </project>
|
0 commit comments