Skip to content
Snippets Groups Projects
pom.xml 16.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • David Diederich's avatar
    David Diederich committed
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
      Copyright © Microsoft Corporation
    
     Licensed 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">
    
    David Diederich's avatar
    David Diederich committed
        <modelVersion>4.0.0</modelVersion>
    
        <parent>
            <groupId>org.opengroup.osdu.indexer</groupId>
            <artifactId>indexer-service</artifactId>
    
            <version>0.18.0-SNAPSHOT</version>
    
            <relativePath>../../pom.xml</relativePath>
    
    David Diederich's avatar
    David Diederich committed
        </parent>
    
        <artifactId>indexer-azure</artifactId>
    
        <version>0.18.0-SNAPSHOT</version>
    
    David Diederich's avatar
    David Diederich committed
        <name>indexer-azure</name>
        <description>Indexer Service Azure</description>
        <packaging>jar</packaging>
    
        <properties>
            <azure.version>2.1.7</azure.version>
    
            <azure.appservice.resourcegroup />
            <azure.appservice.plan />
            <azure.appservice.appname />
            <azure.appservice.subscription />
    
            <log4j.version>2.17.1</log4j.version>
    
    Yauheni Lesnikau's avatar
    Yauheni Lesnikau committed
            <nimbus-jose-jwt.version>8.2</nimbus-jose-jwt.version>
    
            <indexer-core.version>0.18.0-SNAPSHOT</indexer-core.version>
    
    Yauheni Lesnikau's avatar
    Yauheni Lesnikau committed
            <spring-security-jwt.version>1.1.1.RELEASE</spring-security-jwt.version>
    
            <osdu.corelibazure.version>0.18.0-rc3</osdu.corelibazure.version>
    
            <reactor-netty.version>0.9.12.RELEASE</reactor-netty.version>
    
            <java-jwt.version>3.8.1</java-jwt.version>
            <powermock.version>2.0.2</powermock.version>
    
            <mockito.version>3.11.2</mockito.version>
    
            <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
            <spring-security-oauth2.version>2.3.6.RELEASE</spring-security-oauth2.version>
    
            <spring-boot.version>2.1.18.RELEASE</spring-boot.version>
    
    Alok Joshi's avatar
    Alok Joshi committed
            <reactor-netty.version>1.0.7</reactor-netty.version>
    
            <reactor-core.version>3.4.24</reactor-core.version>
    
    Alok Joshi's avatar
    Alok Joshi committed
            <oauth2-oidc-sdk.version>6.5</oauth2-oidc-sdk.version>
    
            <jackson-databind.version>2.13.4</jackson-databind.version>
    
            <jackson.version>2.13.2</jackson.version>
    
            <spring-webmvc.version>5.3.22</spring-webmvc.version>
    
    Kamalika Saha's avatar
    Kamalika Saha committed
            <azure-core.version>1.31.0</azure-core.version>
            <azure-security-keyvault-keys.version>4.4.6</azure-security-keyvault-keys.version>
            <azure-security-keyvault-secrets.version>4.4.6</azure-security-keyvault-secrets.version>
    
    David Diederich's avatar
    David Diederich committed
        </properties>
    
    
        <dependencyManagement>
            <dependencies>
                <!-- Override version defined in parent's POM -->
    
    Abhishek Patil's avatar
    Abhishek Patil committed
                <!-- Inherit managed dependencies from core-lib-azure -->
    
                <dependency>
                    <groupId>org.opengroup.osdu</groupId>
                    <artifactId>core-lib-azure</artifactId>
    
                    <version>${osdu.corelibazure.version}</version>
    
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
            </dependencies>
        </dependencyManagement>
    
    
    David Diederich's avatar
    David Diederich committed
        <dependencies>
    
    Yauheni Lesnikau's avatar
    Yauheni Lesnikau committed
            <dependency>
                <groupId>org.yaml</groupId>
                <artifactId>snakeyaml</artifactId>
            </dependency>
    
            <dependency>
                <groupId>org.hibernate.validator</groupId>
                <artifactId>hibernate-validator</artifactId>
            </dependency>
    
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-core</artifactId>
                <version>${log4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-jul</artifactId>
                <version>${log4j.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-slf4j-impl</artifactId>
                <version>${log4j.version}</version>
            </dependency>
    
    Yauheni Lesnikau's avatar
    Yauheni Lesnikau committed
    
            <dependency>
                <groupId>com.nimbusds</groupId>
                <artifactId>nimbus-jose-jwt</artifactId>
                <version>${nimbus-jose-jwt.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.opengroup.osdu.indexer</groupId>
                <artifactId>indexer-core</artifactId>
                <version>${indexer-core.version}</version>
            </dependency>
    
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
            </dependency>
    
    
    David Diederich's avatar
    David Diederich committed
            <dependency>
    
                <groupId>com.azure.spring</groupId>
                <artifactId>azure-spring-boot-starter-active-directory</artifactId>
    
                <exclusions>
                    <exclusion>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-logging</artifactId>
                    </exclusion>
                </exclusions>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-security</artifactId>
    
                <exclusions>
                    <exclusion>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-logging</artifactId>
                    </exclusion>
                </exclusions>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>org.springframework.security.oauth</groupId>
                <artifactId>spring-security-oauth2</artifactId>
    
                <version>${spring-security-oauth2.version}</version>
    
    Yauheni Lesnikau's avatar
    Yauheni Lesnikau committed
                <exclusions>
                <exclusion>
                    <groupId>org.codehaus.jackson</groupId>
                    <artifactId>jackson-mapper-asl</artifactId>
                </exclusion>
            </exclusions>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
    
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-jwt</artifactId>
    
    Yauheni Lesnikau's avatar
    Yauheni Lesnikau committed
                <version>${spring-security-jwt.version}</version>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-oauth2-client</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-oauth2-jose</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-configuration-processor</artifactId>
                <optional>true</optional>
            </dependency>
            <dependency>
                <groupId>org.opengroup.osdu</groupId>
                <artifactId>core-lib-azure</artifactId>
    
                <version>${osdu.corelibazure.version}</version>
    
                <exclusions>
                    <exclusion>
                        <groupId>org.opengroup.osdu</groupId>
                        <artifactId>os-core-common</artifactId>
                    </exclusion>
    
    Kamalika Saha's avatar
    Kamalika Saha committed
                    <exclusion>
                        <artifactId>azure-security-keyvault-keys</artifactId>
                        <groupId>com.azure</groupId>
                    </exclusion>
                    <exclusion>
                        <artifactId>azure-security-keyvault-secrets</artifactId>
                        <groupId>com.azure</groupId>
                    </exclusion>
                    <exclusion>
                        <artifactId>azure-core</artifactId>
                        <groupId>com.azure</groupId>
                    </exclusion>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
    
            <dependency>
                <groupId>com.microsoft.azure</groupId>
                <artifactId>msal4j</artifactId>
            </dependency>
    
            <dependency>
                <groupId>org.elasticsearch</groupId>
                <artifactId>elasticsearch</artifactId>
    
                <exclusions>
                    <exclusion>
                        <groupId>com.fasterxml.jackson.dataformat</groupId>
                        <artifactId>jackson-dataformat-cbor</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
    
    David Diederich's avatar
    David Diederich committed
            <dependency>
                <groupId>org.elasticsearch.client</groupId>
                <artifactId>elasticsearch-rest-client</artifactId>
            </dependency>
            <dependency>
                <groupId>org.elasticsearch.client</groupId>
                <artifactId>elasticsearch-rest-high-level-client</artifactId>
            </dependency>
    
    
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson-databind.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-annotations</artifactId>
                <version>${jackson.version}</version>
            </dependency>
    
            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-cbor</artifactId>
                <version>${jackson.version}</version>
            </dependency>
    
    Muskan Srivastava's avatar
    Muskan Srivastava committed
            <!-- Resilience4j Dependencies-->
            <dependency>
                <groupId>io.github.resilience4j</groupId>
                <artifactId>resilience4j-retry</artifactId>
                <version>1.7.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.resilience4j</groupId>
                <artifactId>resilience4j-core</artifactId>
                <version>1.7.0</version>
            </dependency>
    
    
    Smitha Manjunath's avatar
    Smitha Manjunath committed
            <!-- Prometheus Dependency -->
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-registry-prometheus</artifactId>
                <scope>runtime</scope>
            </dependency>
    
    
    
    David Diederich's avatar
    David Diederich committed
            <!-- Test Dependencies -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-test</artifactId>
                <scope>test</scope>
    
                <exclusions>
                    <exclusion>
                        <groupId>org.junit</groupId>
                        <artifactId>junit</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-core</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-all</artifactId>
                    </exclusion>
                </exclusions>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-test</artifactId>
                <scope>test</scope>
            </dependency>
    
            <dependency>
                <groupId>com.auth0</groupId>
                <artifactId>java-jwt</artifactId>
    
                <version>${java-jwt.version}</version>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <scope>test</scope>
            </dependency>
            <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 -->
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-api-mockito2</artifactId>
    
                <version>${powermock.version}</version>
    
    David Diederich's avatar
    David Diederich committed
                <scope>test</scope>
            </dependency>
    
            <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-module-junit4</artifactId>
    
                <version>${powermock.version}</version>
    
    David Diederich's avatar
    David Diederich committed
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
    
                <version>${mockito.version}</version>
    
    David Diederich's avatar
    David Diederich committed
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
    
                <version>${cobertura-maven-plugin.version}</version>
    
    David Diederich's avatar
    David Diederich committed
                <scope>test</scope>
            </dependency>
    
            <dependency>
                <groupId>org.codehaus.plexus</groupId>
                <artifactId>plexus-utils</artifactId>
                <version>3.0.16</version>
                <scope>test</scope>
            </dependency>
    
    Alok Joshi's avatar
    Alok Joshi committed
            <dependency>
                <groupId>io.projectreactor.netty</groupId>
                <artifactId>reactor-netty</artifactId>
                <version>${reactor-netty.version}</version>
            </dependency>
            <dependency>
                <groupId>io.projectreactor</groupId>
                <artifactId>reactor-core</artifactId>
                <version>${reactor-core.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-xml</artifactId>
    
                <version>${jackson.version}</version>
    
    Alok Joshi's avatar
    Alok Joshi committed
            </dependency>
    
    Alok Joshi's avatar
    Alok Joshi committed
            <dependency>
                <groupId>com.nimbusds</groupId>
                <artifactId>oauth2-oidc-sdk</artifactId>
                <version>${oauth2-oidc-sdk.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
                <version>${spring-webmvc.version}</version>
            </dependency>
    
    Kamalika Saha's avatar
    Kamalika Saha committed
            <dependency>
                <groupId>com.azure</groupId>
                <artifactId>azure-core</artifactId>
                <version>${azure-core.version}</version>
            </dependency>
            <dependency>
                <groupId>com.azure</groupId>
                <artifactId>azure-security-keyvault-keys</artifactId>
                <version>${azure-security-keyvault-keys.version}</version>
            </dependency>
            <dependency>
                <groupId>com.azure</groupId>
                <artifactId>azure-security-keyvault-secrets</artifactId>
                <version>${azure-security-keyvault-secrets.version}</version>
            </dependency>
    
    David Diederich's avatar
    David Diederich committed
    
        </dependencies>
    
        <build>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
    
                    <version>${spring-boot-maven-plugin.version}</version>
    
    David Diederich's avatar
    David Diederich committed
                    <executions>
                        <execution>
                            <goals>
                                <goal>repackage</goal>
                            </goals>
                            <configuration>
                                <classifier>spring-boot</classifier>
                                <mainClass>
                                    org.opengroup.osdu.indexer.azure.IndexerAzureApplication
                                </mainClass>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>com.microsoft.azure</groupId>
                    <artifactId>azure-webapp-maven-plugin</artifactId>
                    <version>1.7.0</version>
                    <configuration>
                        <schemaVersion>V2</schemaVersion>
                        <authentication>
                            <serverId>azure-auth</serverId>
                        </authentication>
                        <subscriptionId>${azure.appservice.subscription}</subscriptionId>
                        <resourceGroup>${azure.appservice.resourcegroup}</resourceGroup>
                        <appServicePlanName>${azure.appservice.plan}</appServicePlanName>
                        <appName>${azure.appservice.appname}</appName>
                        <appSettings>
                            <property>
                                <name>JAVA_OPTS</name>
                                <value>-Dserver.port=80</value>
                            </property>
                        </appSettings>
                        <deployment>
                            <resources>
                                <resource>
                                    <directory>${project.basedir}/target</directory>
                                    <includes>
                                        <include>*spring-boot.jar</include>
                                    </includes>
                                </resource>
                            </resources>
                        </deployment>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.4.2</version>
                    <configuration>
                      <useSystemClassLoader>false</useSystemClassLoader>
                      <threadCount>1</threadCount>
                    </configuration>
    
    Yauheni Lesnikau's avatar
    Yauheni Lesnikau committed
                </plugin>
    
    David Diederich's avatar
    David Diederich committed
            </plugins>
        </build>
    
    
    </project>