1<?xml version="1.0" encoding="UTF-8"?> 2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4 5 <modelVersion>4.0.0</modelVersion> 6 7 <parent> 8 <groupId>org.slf4j</groupId> 9 <artifactId>slf4j-parent</artifactId> 10 <version>2.0.12</version> 11 <relativePath>../parent/pom.xml</relativePath> 12 </parent> 13 14 <artifactId>slf4j-api</artifactId> 15 16 <packaging>jar</packaging> 17 <name>SLF4J API Module</name> 18 <description>The slf4j API</description> 19 20 <url>http://www.slf4j.org</url> 21 22 <properties> 23 <module-name>org.slf4j</module-name> 24 </properties> 25 26 <build> 27 <plugins> 28 <plugin> 29 <groupId>org.apache.maven.plugins</groupId> 30 <artifactId>maven-surefire-plugin</artifactId> 31 <configuration> 32 <forkMode>once</forkMode> 33 <reportFormat>plain</reportFormat> 34 <trimStackTrace>false</trimStackTrace> 35 <excludes> 36 <exclude>**/AllTest.java</exclude> 37 <exclude>**/PackageTest.java</exclude> 38 </excludes> 39 </configuration> 40 </plugin> 41 42 <plugin> 43 <groupId>org.apache.maven.plugins</groupId> 44 <artifactId>maven-jar-plugin</artifactId> 45 <version>${maven-jar-plugin.version}</version> 46 <executions> 47 <execution> 48 <id>bundle-test-jar</id> 49 <phase>package</phase> 50 <goals> 51 <goal>test-jar</goal> 52 </goals> 53 </execution> 54 </executions> 55 </plugin> 56 57 <plugin> 58 <groupId>org.apache.felix</groupId> 59 <artifactId>maven-bundle-plugin</artifactId> 60 <configuration> 61 <instructions> 62 <Import-Package>org.slf4j.spi;version="${range;[===,+);${version_cleanup;${project.version}}}"</Import-Package> 63 <!-- Export the client/user package of slf4j-api version 1 to make the slf4j-api bundle in version 2 usable for bundles that only import slf4j-1.x --> 64 <_exportcontents><![CDATA[ 65 *,\ 66 org.slf4j;version="${latest.1.version}",\ 67 org.slf4j.helpers;version="${latest.1.version}" 68 ]]></_exportcontents> 69 <Require-Capability><![CDATA[ 70 osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))", 71 osgi.serviceloader;filter:="(osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider)";osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider" 72 ]]></Require-Capability> 73 </instructions> 74 </configuration> 75 </plugin> 76 77 </plugins> 78 79 </build> 80 81</project> 82