1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418
|
<?xml version='1.0' encoding='UTF-8'?>
<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">
<modelVersion>4.0.0</modelVersion>
<!--
################################################
# Section 1: Project information
################################################
-->
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
<relativePath />
</parent>
<groupId>net.sourceforge.cobertura.codestyle</groupId>
<artifactId>cobertura-codestyle</artifactId>
<version>2.1.1</version>
<name>${project.artifactId}</name>
<packaging>jar</packaging>
<url>${url.prefix}/${path.in.reactor}</url>
<description>Cobertura checks and reports on test coverage in your code.</description>
<prerequisites>
<maven>3.0.5</maven>
</prerequisites>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<!-- Build definition properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jdk.version>1.6</jdk.version>
<maven.version>2.2.1</maven.version>
<enforcer.api.version>1.3.1</enforcer.api.version>
<cobertura.haltOnFailure>true</cobertura.haltOnFailure>
<!-- Code style properties -->
<wtp.version>2.0</wtp.version>
<clean.plugin.version>2.5</clean.plugin.version>
<maven-project-info-reports-plugin.version>2.7</maven-project-info-reports-plugin.version>
<pmd.plugin.version>3.0.1</pmd.plugin.version>
<checkstyle.plugin.version>2.10</checkstyle.plugin.version>
<!--
Define the URL prefixes for Site Deployment and DistributionManagement.
These can be overridden in sub-reactors to tailor releases to other locations.
-->
<path.in.reactor>codestyle</path.in.reactor>
<reactor.name>cobertura</reactor.name>
<scm.host>github.com</scm.host>
<reactor.url.remote.prefix>http://${scm.host}/${reactor.name}</reactor.url.remote.prefix>
<site.url.prefix>scp://www-data@angmar/var/www/${reactor.name}</site.url.prefix>
<site.staging.localDirectory>/tmp/${reactor.name}</site.staging.localDirectory>
<url.prefix>${reactor.url.remote.prefix}/${reactor.name}/${project.version}</url.prefix>
<distro.url.prefix>${site.url.prefix}/${reactor.name}/${project.version}</distro.url.prefix>
<scm.conn>scm:git:git://${scm.host}/${reactor.name}/${reactor.name}</scm.conn>
<scm.devConnection>scm:git:git@${scm.host}:${reactor.name}/${reactor.name}.git</scm.devConnection>
</properties>
<developers>
<developer>
<id>lj</id>
<name>Lennart Jörelid</name>
<email>lj@jguru.se</email>
<roles>
<role>Developer</role>
</roles>
<timezone>+1</timezone>
</developer>
</developers>
<!--
################################################
# Section 2: Dependency (management) settings
################################################
-->
<dependencies>
<dependency>
<groupId>org.apache.maven.enforcer</groupId>
<artifactId>enforcer-api</artifactId>
<version>${enforcer.api.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>1.5.5</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<!--
################################################
# Section 3: Build settings
################################################
-->
<build>
<plugins>
<!--
Configures the release plugin.
Why: Make the release plugin replace any information received from the Sonatype OSS parent.
Used: Release lifecycle, mvn release.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
<configuration combine.self="override">
<goals>deploy</goals>
<localCheckout>true</localCheckout>
<mavenExecutorId>forked-path</mavenExecutorId>
<tagNameFormat>${reactor.name}-@{project.version}</tagNameFormat>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-hg</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<!--
Configures the site plugin. Its use is further documented in the site documentation itself.
Why: Make compile and publish the Cobertura documentation.
Used: Site lifecycle, mvn site.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<executions>
<execution>
<id>attach-descriptor</id>
<goals>
<goal>attach-descriptor</goal>
</goals>
</execution>
</executions>
<configuration>
<topSiteURL>${site.url.prefix}/${reactor.name}</topSiteURL>
<stagingSiteURL>${site.url.prefix}/${reactor.name}</stagingSiteURL>
<stagingDirectory>${site.staging.localDirectory}</stagingDirectory>
<generateSitemap>true</generateSitemap>
<inputEncoding>${project.build.sourceEncoding}</inputEncoding>
<outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-file</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-xhtml</artifactId>
<version>1.5</version>
</dependency>
<!--
Reflow skin and dependencies.
-->
<!-- dependency>
<groupId>lt.velykis.maven.skins</groupId>
<artifactId>reflow-velocity-tools</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.7</version>
</dependency -->
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.plugin.version}</version>
<configuration>
<propertyExpansion>cacheFile=${project.build.directory}/checkstyle-cachefile</propertyExpansion>
<configLocation>${project.build.outputDirectory}/codestyle/cobertura/checkstyle.xml</configLocation>
<failOnViolation>true</failOnViolation>
<violationSeverity>error</violationSeverity>
</configuration>
<executions>
<execution>
<id>verify</id>
<phase>prepare-package</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<outputDirectory>${project.build.directory}/site</outputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
<configuration>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
<!-- reportSets>
<reportSet>
<reports>
<report>dependencies</report>
<report>scm</report>
</reports>
</reportSet>
</reportSets -->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<stylesheet>java</stylesheet>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
</plugin>
<!--
Due to problems in the Maven 3 site plugin you must enter the configuration twice,
once for the pluginManagement section and once for the site, see
http://jira.codehaus.org/browse/MSITE-516 and http://jira.codehaus.org/browse/MSITE-523
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${pmd.plugin.version}</version>
<configuration>
<rulesets>
<ruleset>${project.build.outputDirectory}/codestyle/pmd-rules.xml</ruleset>
</rulesets>
<targetJdk>${jdk.version}</targetJdk>
<sourceEncoding>UTF-8</sourceEncoding>
</configuration>
</plugin>
<!--
Due to problems in the Maven 3 site plugin you must enter the configuration twice,
once for the pluginManagement section and once for the site, see
http://jira.codehaus.org/browse/MSITE-516 and http://jira.codehaus.org/browse/MSITE-523
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.plugin.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<propertyExpansion>cacheFile=${project.build.directory}/checkstyle-cachefile</propertyExpansion>
<configLocation>${project.build.outputDirectory}/codestyle/checkstyle.xml</configLocation>
<failOnViolation>true</failOnViolation>
<violationSeverity>error</violationSeverity>
</configuration>
</plugin>
</plugins>
</reporting>
<profiles>
<!--
Purpose: Use GPG to sign artifacts during release:perform.
-->
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!--
################################################
# Section 4: External systems
################################################
-->
<!--
Define Maven's Git integration.
-->
<scm>
<connection>${scm.conn}</connection>
<developerConnection>${scm.devConnection}</developerConnection>
<url>${reactor.url.remote.prefix}/${reactor.name}</url>
<tag>cobertura-2.1.1</tag>
</scm>
<!--
Define the issue management system.
-->
<issueManagement>
<system>github</system>
<url>${reactor.url.remote.prefix}/${reactor.name}/issues</url>
</issueManagement>
<!--
Define repository settings for Maven's deploy and release plugins.
To comply with Maven standards, the repository definitions should
go in the settings.xml file, rather than into the POM.
This leaves the site URL mechanics in the POM to cater for staging
and deploying sites.
-->
<distributionManagement>
<site>
<id>coberturaSite</id>
<name>coberturaSite</name>
<url>${distro.url.prefix}/${path.in.reactor}</url>
</site>
</distributionManagement>
</project>
|