|
6 | 6 | <packaging>jar</packaging> |
7 | 7 | <version>0.18.0-SNAPSHOT</version> |
8 | 8 | <name>Buddycloud Java Server</name> |
| 9 | + |
9 | 10 | <scm> |
| 11 | + <connection>scm:git:git@github.buddycloud/buddycloud-server-java.git</connection> |
| 12 | + <developerConnection>scm:git:git@github.com:buddycloud/buddycloud-server-java.git</developerConnection> |
10 | 13 | <url>https://github.com/buddycloud/buddycloud-server-java</url> |
11 | 14 | </scm> |
| 15 | + |
| 16 | + <issueManagement> |
| 17 | + <system>GitHub Issues</system> |
| 18 | + <url>https://github.com/buddycloud/buddycloud-server-java/issues</url> |
| 19 | + </issueManagement> |
| 20 | + <ciManagement> |
| 21 | + <system>travis</system> |
| 22 | + <url>https://travis-ci.org/buddycloud/buddycloud-server-java</url> |
| 23 | + </ciManagement> |
| 24 | + |
| 25 | + |
| 26 | + <properties> |
| 27 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 28 | + <project.build.withDependencies>jar-with-dependencies</project.build.withDependencies> |
| 29 | + <maven.checkstyle.plugin.version>2.13</maven.checkstyle.plugin.version> |
| 30 | + <checkstyle.config.location>src/main/resources/checkstyle.xml</checkstyle.config.location> |
| 31 | + </properties> |
| 32 | + |
12 | 33 | <dependencies> |
13 | 34 | <dependency> |
14 | | - <groupId>org.xbill</groupId> |
15 | | - <artifactId>dnsjava</artifactId> |
16 | | - <version>2.1.6</version> |
| 35 | + <groupId>org.xbill</groupId> |
| 36 | + <artifactId>dnsjava</artifactId> |
| 37 | + <version>2.1.6</version> |
17 | 38 | </dependency> |
18 | 39 | <dependency> |
19 | 40 | <groupId>junit</groupId> |
|
98 | 119 | <scope>test</scope> |
99 | 120 | </dependency> |
100 | 121 | <dependency> |
101 | | - <groupId>org.hsqldb</groupId> |
102 | | - <artifactId>hsqldb</artifactId> |
103 | | - <version>2.2.8</version> |
| 122 | + <groupId>org.hsqldb</groupId> |
| 123 | + <artifactId>hsqldb</artifactId> |
| 124 | + <version>2.2.8</version> |
104 | 125 | </dependency> |
105 | 126 | <dependency> |
106 | | - <groupId>commons-collections</groupId> |
107 | | - <artifactId>commons-collections</artifactId> |
108 | | - <version>3.2.1</version> |
| 127 | + <groupId>commons-collections</groupId> |
| 128 | + <artifactId>commons-collections</artifactId> |
| 129 | + <version>3.2.1</version> |
109 | 130 | </dependency> |
110 | 131 | <dependency> |
111 | | - <groupId>nl.jqno.equalsverifier</groupId> |
112 | | - <artifactId>equalsverifier</artifactId> |
113 | | - <version>1.1.3</version> |
114 | | - <scope>test</scope> |
| 132 | + <groupId>nl.jqno.equalsverifier</groupId> |
| 133 | + <artifactId>equalsverifier</artifactId> |
| 134 | + <version>1.1.3</version> |
| 135 | + <scope>test</scope> |
115 | 136 | </dependency> |
116 | 137 | <dependency> |
117 | | - <groupId>proxool</groupId> |
118 | | - <artifactId>proxool</artifactId> |
119 | | - <version>0.8.3</version> |
| 138 | + <groupId>proxool</groupId> |
| 139 | + <artifactId>proxool</artifactId> |
| 140 | + <version>0.8.3</version> |
120 | 141 | </dependency> |
121 | 142 | <dependency> |
122 | | - <groupId>commons-lang</groupId> |
123 | | - <artifactId>commons-lang</artifactId> |
124 | | - <version>2.6</version> |
| 143 | + <groupId>commons-lang</groupId> |
| 144 | + <artifactId>commons-lang</artifactId> |
| 145 | + <version>2.6</version> |
125 | 146 | </dependency> |
126 | 147 | <dependency> |
127 | 148 | <groupId>org.lazyluke</groupId> |
128 | 149 | <artifactId>log4jdbc-remix</artifactId> |
129 | 150 | <version>0.2.3</version> |
130 | | - </dependency> |
131 | | - <dependency> |
| 151 | + </dependency> |
| 152 | + <dependency> |
132 | 153 | <groupId>joda-time</groupId> |
133 | 154 | <artifactId>joda-time</artifactId> |
134 | 155 | <version>2.3</version> |
135 | | - </dependency> |
| 156 | + </dependency> |
136 | 157 | <dependency> |
137 | 158 | <groupId>net.xeoh</groupId> |
138 | 159 | <artifactId>jspf.core</artifactId> |
|
146 | 167 | <url>file:${project.basedir}/repo</url> |
147 | 168 | </repository> |
148 | 169 | </repositories> |
149 | | - <pluginRepositories> |
150 | | - <pluginRepository> |
151 | | - <id>evgenyg</id> |
152 | | - <name>Evgeny Goldin repo</name> |
153 | | - <url>http://evgenyg.artifactoryonline.com/evgenyg/repo/com/github/goldin/</url> |
154 | | - </pluginRepository> |
155 | | - </pluginRepositories> |
156 | 170 | <build> |
| 171 | + <pluginManagement> |
157 | 172 | <plugins> |
158 | 173 | <plugin> |
159 | 174 | <!-- Extended Maven antrun plugin --> |
160 | 175 | <!-- https://maven-antrun-extended-plugin.dev.java.net/ --> |
161 | 176 | <groupId>org.jvnet.maven-antrun-extended-plugin</groupId> |
162 | 177 | <artifactId>maven-antrun-extended-plugin</artifactId> |
163 | 178 | <executions> |
164 | | - <execution> |
165 | | - <id>test-reports</id> |
166 | | - <phase>test</phase> |
167 | | - <configuration> |
168 | | - <tasks unless="maven.test.skip"> |
169 | | - <junitreport todir="target/surefire-reports"> |
170 | | - <fileset dir="target/surefire-reports"> |
171 | | - <include name="**/*.xml"/> |
172 | | - </fileset> |
173 | | - <report format="noframes" todir="target/surefire-reports"/> |
174 | | - </junitreport> |
175 | | - </tasks> |
176 | | - </configuration> |
177 | | - <goals> |
178 | | - <goal>run</goal> |
179 | | - </goals> |
180 | | - </execution> |
| 179 | + <execution> |
| 180 | + <id>test-reports</id> |
| 181 | + <phase>test</phase> |
| 182 | + <configuration> |
| 183 | + <tasks unless="maven.test.skip"> |
| 184 | + <junitreport todir="target/surefire-reports"> |
| 185 | + <fileset dir="target/surefire-reports"> |
| 186 | + <include name="**/*.xml" /> |
| 187 | + </fileset> |
| 188 | + <report format="noframes" todir="target/surefire-reports" /> |
| 189 | + </junitreport> |
| 190 | + </tasks> |
| 191 | + </configuration> |
| 192 | + <goals> |
| 193 | + <goal>run</goal> |
| 194 | + </goals> |
| 195 | + </execution> |
181 | 196 | </executions> |
182 | 197 | <dependencies> |
183 | | - <dependency> |
184 | | - <groupId>org.apache.ant</groupId> |
185 | | - <artifactId>ant-junit</artifactId> |
186 | | - <version>1.8.0</version> |
187 | | - </dependency> |
188 | | - <dependency> |
189 | | - <groupId>org.apache.ant</groupId> |
190 | | - <artifactId>ant-trax</artifactId> |
191 | | - <version>1.8.0</version> |
192 | | - </dependency> |
| 198 | + <dependency> |
| 199 | + <groupId>org.apache.ant</groupId> |
| 200 | + <artifactId>ant-junit</artifactId> |
| 201 | + <version>1.8.0</version> |
| 202 | + </dependency> |
| 203 | + <dependency> |
| 204 | + <groupId>org.apache.ant</groupId> |
| 205 | + <artifactId>ant-trax</artifactId> |
| 206 | + <version>1.8.0</version> |
| 207 | + </dependency> |
193 | 208 | </dependencies> |
194 | 209 | </plugin> |
195 | 210 | <plugin> |
196 | 211 | <groupId>org.apache.maven.plugins</groupId> |
197 | 212 | <artifactId>maven-surefire-plugin</artifactId> |
198 | 213 | <version>2.5</version> |
199 | 214 | <configuration> |
200 | | - <argLine>-Duser.timezone=UTC -XX:MaxPermSize=1024m -Xmx1024m</argLine> |
| 215 | + <argLine>-Duser.timezone=UTC -XX:MaxPermSize=1024m -Xmx1024m</argLine> |
201 | 216 | <skipTests>false</skipTests> |
202 | | - <testFailureIgnore>true</testFailureIgnore> |
| 217 | + <testFailureIgnore>true</testFailureIgnore> |
203 | 218 | <forkMode>once</forkMode> |
204 | 219 | <includes> |
205 | 220 | <include>**/*Test.java</include> |
|
217 | 232 | </configuration> |
218 | 233 | </plugin> |
219 | 234 | <plugin> |
220 | | - <artifactId>maven-assembly-plugin</artifactId> |
| 235 | + <groupId>org.apache.maven.plugins</groupId> |
| 236 | + <artifactId>maven-shade-plugin</artifactId> |
| 237 | + <version>2.3</version> |
221 | 238 | <configuration> |
222 | | - <archive> |
223 | | - <manifest> |
224 | | - <mainClass>org.buddycloud.channelserver.Main</mainClass> |
225 | | - </manifest> |
226 | | - </archive> |
227 | | - <descriptorRefs> |
228 | | - <descriptorRef>${project.build.withDependencies}</descriptorRef> |
229 | | - </descriptorRefs> |
| 239 | + <outputFile>${project.build.directory}/${project.build.finalName}-${project.build.withDependencies}.jar</outputFile> |
| 240 | + <transformers> |
| 241 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 242 | + <mainClass>org.buddycloud.channelserver.Main</mainClass> |
| 243 | + </transformer> |
| 244 | + </transformers> |
230 | 245 | </configuration> |
231 | 246 | <executions> |
232 | 247 | <execution> |
233 | | - <id>jar-with-dependencies</id> |
234 | 248 | <phase>package</phase> |
235 | 249 | <goals> |
236 | | - <goal>single</goal> |
| 250 | + <goal>shade</goal> |
237 | 251 | </goals> |
238 | 252 | </execution> |
239 | 253 | </executions> |
240 | 254 | </plugin> |
241 | 255 | <plugin> |
242 | | - <groupId>com.github.goldin</groupId> |
243 | | - <artifactId>copy-maven-plugin</artifactId> |
244 | | - <version>0.2.5</version> |
245 | | - <executions> |
246 | | - <execution> |
247 | | - <id>create-archive</id> |
248 | | - <phase>package</phase> |
249 | | - <goals> |
250 | | - <goal>copy</goal> |
251 | | - </goals> |
252 | | - <configuration> |
253 | | - <resources> |
254 | | - <resource> |
255 | | - <targetPath>${project.build.directory}</targetPath> |
256 | | - <file>target/${project.build.finalName}.jar</file> |
257 | | - <destFileName>${project.artifactId}.jar</destFileName> |
258 | | - </resource> |
259 | | - <resource> |
260 | | - <targetPath>${project.build.directory}</targetPath> |
261 | | - <file>${project.build.directory}/${project.build.finalName}-${project.build.withDependencies}.jar</file> |
262 | | - <destFileName>${project.artifactId}-${project.build.withDependencies}.jar</destFileName> |
263 | | - </resource> |
264 | | - </resources> |
265 | | - </configuration> |
266 | | - </execution> |
267 | | - </executions> |
| 256 | + <groupId>org.apache.maven.plugins</groupId> |
| 257 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 258 | + <configuration> |
| 259 | + <failOnViolation>true</failOnViolation> |
| 260 | + <failsOnError>true</failsOnError> |
| 261 | + <encoding>UTF-8</encoding> |
| 262 | + <consoleOutput>false</consoleOutput> |
| 263 | + <linkXRef>false</linkXRef> |
| 264 | + <includes>**\/*.java</includes> |
| 265 | + <includeResources>false</includeResources> |
| 266 | + </configuration> |
| 267 | + <version>${maven.checkstyle.plugin.version}</version> |
| 268 | + <executions> |
| 269 | + <execution> |
| 270 | + <id>validate</id> |
| 271 | + <phase>validate</phase> |
| 272 | + <goals> |
| 273 | + <goal>check</goal> |
| 274 | + </goals> |
| 275 | + </execution> |
| 276 | + </executions> |
| 277 | + </plugin> |
| 278 | + <plugin> |
| 279 | + <groupId>org.codehaus.mojo</groupId> |
| 280 | + <artifactId>cobertura-maven-plugin</artifactId> |
| 281 | + <version>2.6</version> |
| 282 | + </plugin> |
| 283 | + <plugin> |
| 284 | + <groupId>org.eluder.coveralls</groupId> |
| 285 | + <artifactId>coveralls-maven-plugin</artifactId> |
| 286 | + <version>2.2.0</version> |
| 287 | + <configuration> |
| 288 | + <format>xml</format> |
| 289 | + <maxmem>256m</maxmem> |
| 290 | + <aggregate>true</aggregate> |
| 291 | + <sourceEncoding>UTF-8</sourceEncoding> |
| 292 | + <serviceName>travis-ci</serviceName> |
| 293 | + </configuration> |
268 | 294 | </plugin> |
269 | 295 | </plugins> |
| 296 | + </pluginManagement> |
270 | 297 | </build> |
271 | | - <properties> |
272 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
273 | | - <project.build.withDependencies>jar-with-dependencies</project.build.withDependencies> |
274 | | - </properties> |
| 298 | + |
| 299 | + <reporting> |
| 300 | + <plugins> |
| 301 | + <plugin> |
| 302 | + <groupId>org.codehaus.mojo</groupId> |
| 303 | + <artifactId>cobertura-maven-plugin</artifactId> |
| 304 | + <version>2.6</version> |
| 305 | + <configuration> |
| 306 | + <formats> |
| 307 | + <format>html</format> |
| 308 | + <format>xml</format> |
| 309 | + </formats> |
| 310 | + </configuration> |
| 311 | + </plugin> |
| 312 | + </plugins> |
| 313 | + </reporting> |
| 314 | + |
275 | 315 | </project> |
0 commit comments