Skip to content
Snippets Groups Projects
pom.xml 10.6 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">
        <modelVersion>4.0.0</modelVersion>
    
        <parent>
            <groupId>org.opengroup.osdu.indexer</groupId>
            <artifactId>indexer-service</artifactId>
            <version>1.0.4-SNAPSHOT</version>
    
            <relativePath>../../pom.xml</relativePath>
    
    David Diederich's avatar
    David Diederich committed
        </parent>
    
        <artifactId>indexer-azure</artifactId>
        <version>1.0.4-SNAPSHOT</version>
        <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.resourcegroup>
            <azure.appservice.plan></azure.appservice.plan>
            <azure.appservice.appname></azure.appservice.appname>
            <azure.appservice.subscription></azure.appservice.subscription>
    
    Yauheni Lesnikau's avatar
    Yauheni Lesnikau committed
            <log4j.version>2.11.2</log4j.version>
            <nimbus-jose-jwt.version>8.2</nimbus-jose-jwt.version>
            <indexer-core.version>1.0.6-SNAPSHOT</indexer-core.version>
            <spring-security-jwt.version>1.1.1.RELEASE</spring-security-jwt.version>
    
    David Diederich's avatar
    David Diederich committed
        </properties>
    
        <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>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
            </dependency>
    
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</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>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.microsoft.azure</groupId>
                <artifactId>azure-active-directory-spring-boot-starter</artifactId>
                <version>${azure.version}</version>
            </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>2.3.6.RELEASE</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>os-core-common</artifactId>
    
                <version>0.3.12</version>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>org.opengroup.osdu</groupId>
                <artifactId>core-lib-azure</artifactId>
    
                <version>0.0.33</version>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
    
            <dependency>
                <groupId>com.microsoft.azure</groupId>
                <artifactId>msal4j</artifactId>
                <version>0.5.0-preview</version>
            </dependency>
    
            <dependency>
                <groupId>org.elasticsearch</groupId>
                <artifactId>elasticsearch</artifactId>
            </dependency>
            <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>
    
            <!-- Test Dependencies -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-test</artifactId>
                <scope>test</scope>
            </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>3.8.1</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.12</version>
                <scope>test</scope>
            </dependency>
            <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 -->
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-api-mockito2</artifactId>
                <version>2.0.2</version>
                <scope>test</scope>
            </dependency>
    
            <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-module-junit4</artifactId>
                <version>2.0.2</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>3.0.0</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.7</version>
                <scope>test</scope>
            </dependency>
    
        </dependencies>
    
        <build>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <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>