| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-persistence-opensearch</artifactId> |
| <version>3.1.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>unomi-persistence-opensearch-core</artifactId> |
| <name>Apache Unomi :: Persistence :: OpenSearch :: Core</name> |
| <description>Core OpenSearch persistence implementation for the Apache Unomi Context Server</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> |
| <!-- Standard API Dependencies --> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.core</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.service.cm</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Unomi dependencies --> |
| <dependency> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-common</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-persistence-spi</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-metrics</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-scripting</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Libraries --> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-collections</groupId> |
| <artifactId>commons-collections</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>joda-time</groupId> |
| <artifactId>joda-time</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.opensearch.client</groupId> |
| <artifactId>opensearch-java</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Test dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-junit-jupiter</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Import-Package> |
| android.os;resolution:=optional, |
| com.google.appengine.*;resolution:=optional, |
| com.google.apphosting.*;resolution:=optional, |
| io.micrometer.*;resolution:=optional, |
| jakarta.enterprise.*;resolution:=optional, |
| jdk.net;resolution:=optional, |
| org.apache.avalon.framework.logger;resolution:=optional, |
| org.apache.log;resolution:=optional, |
| org.apache.commons.compress.compressors;resolution:=optional, |
| org.apache.commons.compress.utils;resolution:=optional, |
| org.brotli.dec;resolution:=optional, |
| com.aayushatharva.brotli4j.decoder;resolution:=optional, |
| com.aayushatharva.brotli4j.encoder;resolution:=optional, |
| com.github.luben.zstd;resolution:=optional, |
| io.netty.buffer;resolution:=optional, |
| io.netty.channel;resolution:=optional, |
| io.netty.util;resolution:=optional, |
| javax.xml.datatype;resolution:=optional, |
| javax.xml.namespace;resolution:=optional, |
| javax.xml.transform.dom;resolution:=optional, |
| org.newsclub.net.unix;resolution:=optional, |
| org.apache.logging.log4j*;resolution:=optional, |
| org.conscrypt;resolution:=optional, |
| org.glassfish.hk2.osgiresourcelocator;resolution:=optional, |
| org.ietf.jgss;resolution:=optional, |
| org.reactivestreams;resolution:=optional, |
| reactor.blockhound.*;resolution:=optional, |
| software.amazon.awssdk.*;resolution:=optional, |
| sun.misc;resolution:=optional, |
| sun.nio.ch;resolution:=optional, |
| tools.jackson.core*;resolution:=optional, |
| tools.jackson.databind*;resolution:=optional, |
| * |
| </Import-Package> |
| <Export-Package> |
| org.opensearch.*;version="${opensearch.version}", |
| org.opensearch.index.query.*;version="${opensearch.version}", |
| org.apache.unomi.persistence.opensearch;version="${project.version}" |
| </Export-Package> |
| <Embed-Dependency> |
| !groupId=org.apache.logging.log4j;artifactId=*, |
| *;scope=compile|runtime |
| </Embed-Dependency> |
| <Embed-Transitive>true</Embed-Transitive> |
| <Provide-Capability> |
| osgi.service;objectClass:List<String>="org.apache.unomi.persistence.spi.PersistenceService", |
| unomi.persistence;type=opensearch |
| </Provide-Capability> |
| </instructions> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-artifacts</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file> |
| src/main/resources/org.apache.unomi.persistence.opensearch.cfg |
| </file> |
| <type>cfg</type> |
| <classifier>opensearchcfg</classifier> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| </build> |
| |
| </project> |