|
1 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 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 | 3 | <modelVersion>4.0.0</modelVersion> |
3 | 4 |
|
4 | 5 | <groupId>cn.jpush.api</groupId> |
|
23 | 24 | <jdkVersion>1.6</jdkVersion> |
24 | 25 | <jdkVersion.test>1.8</jdkVersion.test> |
25 | 26 | </properties> |
26 | | - |
| 27 | + |
27 | 28 | <parent> |
28 | 29 | <groupId>org.sonatype.oss</groupId> |
29 | 30 | <artifactId>oss-parent</artifactId> |
|
43 | 44 | <artifactId>gson</artifactId> |
44 | 45 | <version>2.3</version> |
45 | 46 | </dependency> |
46 | | - |
| 47 | + |
47 | 48 | <dependency> |
48 | 49 | <groupId>org.slf4j</groupId> |
49 | 50 | <artifactId>slf4j-api</artifactId> |
50 | 51 | <version>1.7.7</version> |
51 | 52 | </dependency> |
52 | | - |
53 | | - |
| 53 | + |
| 54 | + |
54 | 55 | <!-- Test Dependencies --> |
55 | | - |
| 56 | + |
56 | 57 | <dependency> |
57 | 58 | <groupId>org.slf4j</groupId> |
58 | 59 | <artifactId>slf4j-log4j12</artifactId> |
|
65 | 66 | <version>1.2.17</version> |
66 | 67 | <scope>test</scope> |
67 | 68 | </dependency> |
68 | | - |
| 69 | + |
69 | 70 | <dependency> |
70 | 71 | <groupId>junit</groupId> |
71 | 72 | <artifactId>junit</artifactId> |
|
89 | 90 | <source>${jdkVersion}</source> |
90 | 91 | <target>${jdkVersion}</target> |
91 | 92 | <compilerVersion>1.5</compilerVersion> |
92 | | - <showDeprecation>true</showDeprecation> |
93 | | - <showWarnings>true</showWarnings> |
94 | | - <debug>true</debug> |
95 | | - <fork>true</fork> |
96 | | - <compilerArgs> |
97 | | - <arg>-Xlint:unchecked</arg> |
98 | | - </compilerArgs> |
| 93 | + <showDeprecation>true</showDeprecation> |
| 94 | + <showWarnings>true</showWarnings> |
| 95 | + <debug>true</debug> |
| 96 | + <fork>true</fork> |
| 97 | + <compilerArgs> |
| 98 | + <arg>-Xlint:unchecked</arg> |
| 99 | + </compilerArgs> |
99 | 100 | </configuration> |
100 | 101 | </plugin> |
101 | | - |
| 102 | + |
102 | 103 | <plugin> |
103 | 104 | <groupId>org.apache.maven.plugins</groupId> |
104 | 105 | <artifactId>maven-gpg-plugin</artifactId> |
105 | 106 | <version>1.5</version> |
106 | 107 | </plugin> |
| 108 | + |
107 | 109 | <plugin> |
108 | 110 | <groupId>org.apache.maven.plugins</groupId> |
109 | 111 | <artifactId>maven-release-plugin</artifactId> |
|
123 | 125 | <tagNameFormat>v@{project.version}</tagNameFormat> |
124 | 126 | </configuration> |
125 | 127 | </plugin> |
| 128 | + |
126 | 129 | <plugin> |
127 | 130 | <groupId>com.github.github</groupId> |
128 | 131 | <artifactId>site-maven-plugin</artifactId> |
|
140 | 143 | </execution> |
141 | 144 | </executions> |
142 | 145 | </plugin> |
| 146 | + |
143 | 147 | <plugin> |
144 | 148 | <groupId>org.apache.maven.plugins</groupId> |
145 | 149 | <artifactId>maven-surefire-plugin</artifactId> |
146 | | - <version>2.16</version> |
| 150 | + <version>2.17</version> |
147 | 151 | <configuration> |
| 152 | + <encoding>UTF-8</encoding> |
| 153 | + <parallel>methods</parallel> |
| 154 | + <threadCount>10</threadCount> |
| 155 | + <groups>cn.jpush.api.FastTests</groups> |
148 | 156 | <argLine>-Dfile.encoding=UTF-8</argLine> |
149 | | - <excludes> |
150 | | - <exclude>**/mock/*Test.java</exclude> |
151 | | - </excludes> |
| 157 | + <excludes> |
| 158 | + <exclude>**/mock/*Test.java</exclude> |
| 159 | + </excludes> |
152 | 160 | </configuration> |
| 161 | + <dependencies> |
| 162 | + <dependency> |
| 163 | + <groupId>org.apache.maven.surefire</groupId> |
| 164 | + <artifactId>surefire-junit47</artifactId> |
| 165 | + <version>2.17</version> |
| 166 | + </dependency> |
| 167 | + </dependencies> |
| 168 | + </plugin> |
| 169 | + |
| 170 | + <plugin> |
| 171 | + <groupId>org.apache.maven.plugins</groupId> |
| 172 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 173 | + <version>2.17</version> |
| 174 | + <configuration> |
| 175 | + <encoding>UTF-8</encoding> |
| 176 | + <groups>cn.jpush.api.SlowTests</groups> |
| 177 | + <argLine>-Dfile.encoding=UTF-8</argLine> |
| 178 | + <excludes> |
| 179 | + <exclude>**/mock/*Test.java</exclude> |
| 180 | + </excludes> |
| 181 | + </configuration> |
| 182 | + <executions> |
| 183 | + <execution> |
| 184 | + <goals> |
| 185 | + <goal>integration-test</goal> |
| 186 | + <goal>verify</goal> |
| 187 | + </goals> |
| 188 | + <configuration> |
| 189 | + <includes> |
| 190 | + <include>**/*.class</include> |
| 191 | + </includes> |
| 192 | + </configuration> |
| 193 | + </execution> |
| 194 | + </executions> |
| 195 | + <dependencies> |
| 196 | + <dependency> |
| 197 | + <groupId>org.apache.maven.surefire</groupId> |
| 198 | + <artifactId>surefire-junit47</artifactId> |
| 199 | + <version>2.17</version> |
| 200 | + </dependency> |
| 201 | + </dependencies> |
153 | 202 | </plugin> |
154 | 203 | </plugins> |
155 | 204 | </build> |
|
0 commit comments