| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one or more |
| ~ contributor license agreements. See the NOTICE file distributed with |
| ~ this work for additional information regarding copyright ownership. |
| ~ The ASF licenses this file to You under the Apache License, Version 2.0 |
| ~ (the "License"); you may not use this file except in compliance with |
| ~ the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-extensions</artifactId> |
| <version>3.1.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>log4j-extension</artifactId> |
| <name>Apache Unomi :: Extensions :: Log4j Extension</name> |
| <description>Apache Unomi log4j extensions</description> |
| <packaging>bundle</packaging> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-bom</artifactId> |
| <version>${project.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>log4j2-plugin-processor</id> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| <phase>process-classes</phase> |
| <configuration> |
| <proc>only</proc> |
| <annotationProcessors> |
| <annotationProcessor>org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor</annotationProcessor> |
| </annotationProcessors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <inherited>true</inherited> |
| <configuration> |
| <instructions> |
| <Fragment-Host>org.ops4j.pax.logging.pax-logging-log4j2</Fragment-Host> |
| <Export-Package> |
| org.apache.unomi.extensions.log4j |
| </Export-Package> |
| <Import-Package> |
| org.osgi.framework;version="[1.8,2.0)", |
| org.apache.logging.log4j*;version="[2,3)";resolution:=optional, |
| * |
| </Import-Package> |
| <Private-Package> |
| org.apache.commons.lang3* |
| </Private-Package> |
| <Include-Resource> |
| {maven-resources}, |
| META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat=target/classes/META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat |
| </Include-Resource> |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |