1 <!-- 2 Licensed to the Apache Software Foundation (ASF) under one 3 or more contributor license agreements. See the NOTICE file 4 distributed with this work for additional information 5 regarding copyright ownership. The ASF licenses this file 6 to you under the Apache License, Version 2.0 (the 7 "License"); you may not use this file except in compliance 8 with the License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, 13 software distributed under the License is distributed on an 14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 KIND, either express or implied. See the License for the 16 specific language governing permissions and limitations 17 under the License. 18 --> 19 <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"> 20 <!-- 21 - Note that due to the special requirements of logging unit-tests, most 22 - tests are executed in the "integration-test" phase rather than the 23 - "test" phase. Please run "mvn integration-test" to run the full suite of 24 - available unit tests. 25 --> 26 <parent> 27 <groupId>org.apache.commons</groupId> 28 <artifactId>commons-parent</artifactId> 29 <version>28</version> 30 </parent> 31 <modelVersion>4.0.0</modelVersion> 32 <groupId>commons-logging</groupId> 33 <artifactId>commons-logging</artifactId> 34 <name>Commons Logging</name> 35 <version>1.1.3</version> 36 <description>Commons Logging is a thin adapter allowing configurable bridging to other, 37 well known logging systems.</description> 38 <url>http://commons.apache.org/proper/commons-logging/</url> 39 40 <issueManagement> 41 <system>JIRA</system> 42 <url>http://issues.apache.org/jira/browse/LOGGING</url> 43 </issueManagement> 44 45 <inceptionYear>2001</inceptionYear> 46 47 <developers> 48 <developer> 49 <id>baliuka</id> 50 <name>Juozas Baliuka</name> 51 <email>baliuka (a] apache.org</email> 52 <roles> 53 <role>Java Developer</role> 54 </roles> 55 </developer> 56 <developer> 57 <id>morgand</id> 58 <name>Morgan Delagrange</name> 59 <email>morgand (a] apache.org</email> 60 <organization>Apache</organization> 61 <roles> 62 <role>Java Developer</role> 63 </roles> 64 </developer> 65 <developer> 66 <id>donaldp</id> 67 <name>Peter Donald</name> 68 <email>donaldp (a] apache.org</email> 69 </developer> 70 <developer> 71 <id>rdonkin</id> 72 <name>Robert Burrell Donkin</name> 73 <email>rdonkin (a] apache.org</email> 74 <organization>The Apache Software Foundation</organization> 75 </developer> 76 <developer> 77 <id>skitching</id> 78 <name>Simon Kitching</name> 79 <email>skitching (a] apache.org</email> 80 <organization>The Apache Software Foundation</organization> 81 </developer> 82 <developer> 83 <id>dennisl</id> 84 <name>Dennis Lundberg</name> 85 <email>dennisl (a] apache.org</email> 86 <organization>The Apache Software Foundation</organization> 87 </developer> 88 <developer> 89 <id>costin</id> 90 <name>Costin Manolache</name> 91 <email>costin (a] apache.org</email> 92 <organization>The Apache Software Foundation</organization> 93 </developer> 94 <developer> 95 <id>craigmcc</id> 96 <name>Craig McClanahan</name> 97 <email>craigmcc (a] apache.org</email> 98 <organization>The Apache Software Foundation</organization> 99 </developer> 100 <developer> 101 <id>tn</id> 102 <name>Thomas Neidhart</name> 103 <email>tn (a] apache.org</email> 104 <organization>The Apache Software Foundation</organization> 105 </developer> 106 <developer> 107 <id>sanders</id> 108 <name>Scott Sanders</name> 109 <email>sanders (a] apache.org</email> 110 <organization>The Apache Software Foundation</organization> 111 </developer> 112 <developer> 113 <id>rsitze</id> 114 <name>Richard Sitze</name> 115 <email>rsitze (a] apache.org</email> 116 <organization>The Apache Software Foundation</organization> 117 </developer> 118 <developer> 119 <id>bstansberry</id> 120 <name>Brian Stansberry</name> 121 </developer> 122 <developer> 123 <id>rwaldhoff</id> 124 <name>Rodney Waldhoff</name> 125 <email>rwaldhoff (a] apache.org</email> 126 <organization>The Apache Software Foundation</organization> 127 </developer> 128 </developers> 129 <contributors> 130 <contributor> 131 <name>Matthew P. Del Buono</name> 132 <roles> 133 <role>Provided patch</role> 134 </roles> 135 </contributor> 136 <contributor> 137 <name>Vince Eagen</name> 138 <email>vince256 at comcast dot net</email> 139 <roles> 140 <role>Lumberjack logging abstraction</role> 141 </roles> 142 </contributor> 143 <contributor> 144 <name>Peter Lawrey</name> 145 <roles> 146 <role>Provided patch</role> 147 </roles> 148 </contributor> 149 <contributor> 150 <name>Berin Loritsch</name> 151 <email>bloritsch at apache dot org</email> 152 <roles> 153 <role>Lumberjack logging abstraction</role> 154 <role>JDK 1.4 logging abstraction</role> 155 </roles> 156 </contributor> 157 <contributor> 158 <name>Philippe Mouawad</name> 159 <roles> 160 <role>Provided patch</role> 161 </roles> 162 </contributor> 163 <contributor> 164 <name>Neeme Praks</name> 165 <email>neeme at apache dot org</email> 166 <roles> 167 <role>Avalon logging abstraction</role> 168 </roles> 169 </contributor> 170 171 </contributors> 172 173 <scm> 174 <connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/logging/trunk</connection> 175 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/logging/trunk</developerConnection> 176 <url>http://svn.apache.org/repos/asf/commons/proper/logging/trunk</url> 177 </scm> 178 179 <build> 180 <plugins> 181 182 <!-- 183 - We want to create four jarfiles from this project: normal, tests, api 184 - and adapters. The first two are handled by the normal jar:jar and 185 - jar:test-jar targets. 186 - The jar plugin with some includes/excludes is used to create the other 187 - ones. 188 --> 189 <plugin> 190 <groupId>org.apache.maven.plugins</groupId> 191 <artifactId>maven-jar-plugin</artifactId> 192 <executions> 193 <execution> 194 <!-- 195 - The custom test framework requires the unit test code to be 196 - in a jarfile so it can control its place in the classpath. 197 --> 198 <id>testjar</id> 199 <phase>package</phase> 200 <goals> 201 <goal>test-jar</goal> 202 </goals> 203 <configuration> 204 <jarName>commons-logging</jarName> 205 </configuration> 206 </execution> 207 208 <execution> 209 <id>apijar</id> 210 <phase>package</phase> 211 <goals> 212 <goal>jar</goal> 213 </goals> 214 <configuration> 215 <jarName>${project.artifactId}-api-${project.version}</jarName> 216 <includes> 217 <include>org/apache/commons/logging/*.class</include> 218 <include>org/apache/commons/logging/impl/LogFactoryImpl*.class</include> 219 <include>org/apache/commons/logging/impl/WeakHashtable*.class</include> 220 <include>org/apache/commons/logging/impl/SimpleLog*.class</include> 221 <include>org/apache/commons/logging/impl/NoOpLog*.class</include> 222 <include>org/apache/commons/logging/impl/Jdk14Logger.class</include> 223 <include>META-INF/LICENSE.txt</include> 224 <include>META-INF/NOTICE.txt</include> 225 </includes> 226 <excludes> 227 <exclude>**/package.html</exclude> 228 </excludes> 229 </configuration> 230 </execution> 231 232 <execution> 233 <id>adaptersjar</id> 234 <phase>package</phase> 235 <goals> 236 <goal>jar</goal> 237 </goals> 238 <configuration> 239 <jarName>${project.artifactId}-adapters-${project.version}</jarName> 240 <includes> 241 <include>org/apache/commons/logging/impl/**.class</include> 242 <include>META-INF/LICENSE.txt</include> 243 <include>META-INF/NOTICE.txt</include> 244 </includes> 245 <excludes> 246 <exclude>org/apache/commons/logging/impl/WeakHashtable*.class</exclude> 247 <exclude>org/apache/commons/logging/impl/LogFactoryImpl*.class</exclude> 248 </excludes> 249 </configuration> 250 </execution> 251 252 <!-- 253 - Define the full jar last, the deploy/install plugin seems to be broken 254 - and takes the last definition from here. 255 --> 256 <execution> 257 <id>fulljar</id> 258 <phase>package</phase> 259 <goals> 260 <goal>jar</goal> 261 </goals> 262 <configuration> 263 <jarName>${project.artifactId}-${project.version}</jarName> 264 </configuration> 265 </execution> 266 </executions> 267 </plugin> 268 269 <plugin> 270 <groupId>org.apache.maven.plugins</groupId> 271 <artifactId>maven-antrun-plugin</artifactId> 272 <executions> 273 <execution> 274 <id>site.resources</id> 275 <phase>site</phase> 276 <configuration> 277 <target> 278 <copy todir="${project.reporting.outputDirectory}"> 279 <fileset dir="${basedir}"> 280 <include name="RELEASE-NOTES.txt" /> 281 </fileset> 282 </copy> 283 </target> 284 </configuration> 285 <goals> 286 <goal>run</goal> 287 </goals> 288 </execution> 289 </executions> 290 </plugin> 291 292 <plugin> 293 <!-- 294 - Attach the adapters and api jars to the normal artifact. This way 295 - they will be deployed when the normal artifact is deployed. 296 --> 297 <groupId>org.codehaus.mojo</groupId> 298 <artifactId>build-helper-maven-plugin</artifactId> 299 <version>1.0</version> 300 <executions> 301 <execution> 302 <id>attach-artifacts</id> 303 <phase>package</phase> 304 <goals> 305 <goal>attach-artifact</goal> 306 </goals> 307 <configuration> 308 <artifacts> 309 <artifact> 310 <file>${project.build.directory}/${project.artifactId}-adapters-${project.version}.jar</file> 311 <type>jar</type> 312 <classifier>adapters</classifier> 313 </artifact> 314 <artifact> 315 <file>${project.build.directory}/${project.artifactId}-api-${project.version}.jar</file> 316 <type>jar</type> 317 <classifier>api</classifier> 318 </artifact> 319 </artifacts> 320 </configuration> 321 </execution> 322 </executions> 323 </plugin> 324 325 <plugin> 326 <!-- 327 - Many of JCL's tests use tricky techniques to place the generated 328 - JCL jarfiles on the classpath in various configurations. This means 329 - that those tests must be run *after* the "package" build phase. 330 - 331 - In order to not mess with the Ant build we "disable" the normal test 332 - phase. This is done by skipping the execution of the surefire plugin. 333 --> 334 <groupId>org.apache.maven.plugins</groupId> 335 <artifactId>maven-surefire-plugin</artifactId> 336 <configuration> 337 <skip>true</skip> 338 </configuration> 339 </plugin> 340 341 <plugin> 342 <!-- 343 - Many of JCL's tests use tricky techniques to place the generated 344 - JCL jarfiles on the classpath in various configurations. This means 345 - that those tests must be run *after* the "package" build phase. 346 - 347 - Disable cobertura report generation as this does not work correctly 348 - with integration-tests and the normal unit tests are disabled too. 349 --> 350 <groupId>org.codehaus.mojo</groupId> 351 <artifactId>cobertura-maven-plugin</artifactId> 352 <version>${commons.cobertura.version}</version> 353 <configuration> 354 <skip>true</skip> 355 </configuration> 356 </plugin> 357 358 <plugin> 359 <!-- 360 - Many of JCL's tests use tricky techniques to place the generated 361 - JCL jarfiles on the classpath in various configurations. This means 362 - that those tests must be run *after* the "package" build phase. 363 - 364 - For this we use the failsafe plugin which is bound to the 365 - "integration-test" phase by default. 366 --> 367 <groupId>org.apache.maven.plugins</groupId> 368 <artifactId>maven-failsafe-plugin</artifactId> 369 <version>${commons.surefire.version}</version> 370 <executions> 371 <execution> 372 <id>integration-test</id> 373 <goals> 374 <goal>integration-test</goal> 375 <goal>verify</goal> 376 </goals> 377 <configuration> 378 <includes> 379 <include>**/*TestCase.java</include> 380 </includes> 381 <systemPropertyVariables> 382 <!-- 383 <org.apache.commons.logging.diagnostics.dest>STDOUT</org.apache.commons.logging.diagnostics.dest> 384 --> 385 <log4j12>${log4j:log4j:jar}</log4j12> 386 <logkit>${logkit:logkit:jar}</logkit> 387 <servlet-api>${javax.servlet:servlet-api:jar}</servlet-api> 388 <commons-logging>target/${project.build.finalName}.jar</commons-logging> 389 <commons-logging-api>target/${project.artifactId}-api-${project.version}.jar</commons-logging-api> 390 <commons-logging-adapters>target/${project.artifactId}-adapters-${project.version}.jar</commons-logging-adapters> 391 <testclasses>target/commons-logging-tests.jar</testclasses> 392 </systemPropertyVariables> 393 </configuration> 394 </execution> 395 </executions> 396 </plugin> 397 398 <plugin> 399 <groupId>org.apache.maven.plugins</groupId> 400 <artifactId>maven-assembly-plugin</artifactId> 401 <version>2.3</version> 402 <configuration> 403 <descriptors> 404 <descriptor>src/main/assembly/bin.xml</descriptor> 405 <descriptor>src/main/assembly/src.xml</descriptor> 406 </descriptors> 407 <tarLongFileMode>gnu</tarLongFileMode> 408 </configuration> 409 </plugin> 410 <!-- Define properties for referencing dependencies --> 411 <plugin> 412 <groupId>org.apache.maven.plugins</groupId> 413 <artifactId>maven-dependency-plugin</artifactId> 414 <version>2.4</version> 415 <executions> 416 <execution> 417 <goals> 418 <goal>properties</goal> 419 </goals> 420 </execution> 421 </executions> 422 </plugin> 423 424 <plugin> 425 <groupId>org.apache.maven.plugins</groupId> 426 <artifactId>maven-scm-publish-plugin</artifactId> 427 <configuration> 428 <ignorePathsToDelete> 429 <ignorePathToDelete>javadocs</ignorePathToDelete> 430 <ignorePathToDelete>commons-logging-**</ignorePathToDelete> 431 </ignorePathsToDelete> 432 </configuration> 433 </plugin> 434 435 </plugins> 436 </build> 437 438 <dependencies> 439 <dependency> 440 <groupId>junit</groupId> 441 <artifactId>junit</artifactId> 442 <version>3.8.1</version> 443 <scope>test</scope> 444 </dependency> 445 <dependency> 446 <groupId>log4j</groupId> 447 <artifactId>log4j</artifactId> 448 <version>1.2.17</version> 449 <optional>true</optional> 450 </dependency> 451 <dependency> 452 <groupId>logkit</groupId> 453 <artifactId>logkit</artifactId> 454 <version>1.0.1</version> 455 <optional>true</optional> 456 </dependency> 457 <dependency> 458 <groupId>avalon-framework</groupId> 459 <artifactId>avalon-framework</artifactId> 460 <version>4.1.5</version> 461 <optional>true</optional> 462 </dependency> 463 <dependency> 464 <groupId>javax.servlet</groupId> 465 <artifactId>servlet-api</artifactId> 466 <version>2.3</version> 467 <scope>provided</scope> 468 <optional>true</optional> 469 </dependency> 470 </dependencies> 471 472 <reporting> 473 <plugins> 474 <plugin> 475 <groupId>org.apache.maven.plugins</groupId> 476 <artifactId>maven-checkstyle-plugin</artifactId> 477 <version>2.7</version> 478 <configuration> 479 <configLocation>${basedir}/checkstyle.xml</configLocation> 480 <enableRulesSummary>false</enableRulesSummary> 481 <headerFile>${basedir}/license-header.txt</headerFile> 482 </configuration> 483 </plugin> 484 <plugin> 485 <groupId>org.codehaus.mojo</groupId> 486 <artifactId>clirr-maven-plugin</artifactId> 487 <version>2.2.2</version> 488 </plugin> 489 <plugin> 490 <groupId>org.codehaus.mojo</groupId> 491 <artifactId>jdepend-maven-plugin</artifactId> 492 <version>2.0-beta-1</version> 493 </plugin> 494 </plugins> 495 </reporting> 496 497 <distributionManagement> 498 <site> 499 <id>apache.website</id> 500 <url>${commons.deployment.protocol}://people.apache.org/www/commons.apache.org/logging/</url> 501 </site> 502 </distributionManagement> 503 504 <properties> 505 <maven.compile.source>1.2</maven.compile.source> 506 <maven.compile.target>1.1</maven.compile.target> 507 <commons.componentid>logging</commons.componentid> 508 <commons.release.version>1.1.3</commons.release.version> 509 <commons.jira.id>LOGGING</commons.jira.id> 510 <commons.jira.pid>12310484</commons.jira.pid> 511 <!-- The RC version used in the staging repository URL. --> 512 <commons.rc.version>RC2</commons.rc.version> 513 <commons.surefire.version>2.12</commons.surefire.version> 514 <skipSurefireReport>true</skipSurefireReport> 515 516 <commons.osgi.import> 517 javax.servlet;version="[2.1.0, 3.0.0)";resolution:=optional, 518 org.apache.avalon.framework.logger;version="[4.1.3, 4.1.5]";resolution:=optional, 519 org.apache.log;version="[1.0.1, 1.0.1]";resolution:=optional, 520 org.apache.log4j;version="[1.2.15, 2.0.0)";resolution:=optional 521 </commons.osgi.import> 522 </properties> 523 </project> 524