Skip to content
Snippets Groups Projects
pom.xml 9.36 KiB
Newer Older
  • Learn to ignore specific revisions
  • David Diederich's avatar
    David Diederich committed
    <?xml version="1.0"?>
    <!--
    
    Rucha Deshpande's avatar
    Rucha Deshpande committed
      Copyright © 2020 Amazon Web Services
    
    David Diederich's avatar
    David Diederich committed
    
      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
      <parent>
          <groupId>org.opengroup.osdu.indexer</groupId>
          <artifactId>indexer-service</artifactId>
    
          <version>0.24.0-SNAPSHOT</version>
    
          <relativePath>../../pom.xml</relativePath>
    
    David Diederich's avatar
    David Diederich committed
      </parent>
    
      <modelVersion>4.0.0</modelVersion>
      <artifactId>indexer-aws</artifactId>
    
    Bill Wang's avatar
    Bill Wang committed
      <description>Indexer service on AWS</description>
    
    David Diederich's avatar
    David Diederich committed
      <packaging>jar</packaging>
    
        <version>0.24.0-SNAPSHOT</version>
    
    David Diederich's avatar
    David Diederich committed
    
      <properties>
    
    Bill Wang's avatar
    Bill Wang committed
          <aws.version>1.11.1018</aws.version>
    
    David Diederich's avatar
    David Diederich committed
          <deployment.environment>dev</deployment.environment>
    
          <netty.version>4.1.51.Final</netty.version>
    
    Morris Estepa's avatar
    Morris Estepa committed
          <jackson-databind.version>2.13.2.2</jackson-databind.version>
    
    Morris Estepa's avatar
    Morris Estepa committed
          <jackson.version>2.13.2</jackson.version>
    
          <spring-webmvc.version>5.3.22</spring-webmvc.version>
    
          <mockito.version>3.11.2</mockito.version>
    
    David Diederich's avatar
    David Diederich committed
      </properties>
    
    
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-bom</artifactId>
            <version>${netty.version}</version>
            <type>pom</type>
            <scope>import</scope>
          </dependency>
          <dependency>
            <groupId>com.fasterxml.jackson</groupId>
            <artifactId>jackson-bom</artifactId>
            <version>${jackson.version}</version>
            <type>pom</type>
            <scope>import</scope>
          </dependency>
        </dependencies>
      </dependencyManagement>
    
    
    David Diederich's avatar
    David Diederich committed
      <dependencies>
        <!-- Internal packages -->
          <dependency>
              <groupId>org.opengroup.osdu</groupId>
              <artifactId>os-core-common</artifactId>
    
              <version>${os-core-common.version}</version>
    
    David Diederich's avatar
    David Diederich committed
          </dependency>
        <dependency>
            <groupId>org.opengroup.osdu.indexer</groupId>
            <artifactId>indexer-core</artifactId>
    
            <version>0.24.0-SNAPSHOT</version>
    
    David Diederich's avatar
    David Diederich committed
        </dependency>
        <dependency>
            <groupId>org.opengroup.osdu.core.aws</groupId>
    
    ethiraj krishnamanaidu's avatar
    ethiraj krishnamanaidu committed
            <artifactId>os-core-lib-aws</artifactId>
    
    Yunhua Koglin's avatar
    Yunhua Koglin committed
            <version>0.24.0-SNAPSHOT</version>
    
    David Diederich's avatar
    David Diederich committed
        </dependency>
    
        <!-- AWS managed packages -->
        <dependency>
          <groupId>com.amazonaws</groupId>
          <artifactId>aws-java-sdk-core</artifactId>
    
    Bill Wang's avatar
    Bill Wang committed
          <version>${aws.version}</version>
    
    David Diederich's avatar
    David Diederich committed
        </dependency>
        <dependency>
          <groupId>com.amazonaws</groupId>
          <artifactId>aws-java-sdk</artifactId>
    
    Bill Wang's avatar
    Bill Wang committed
          <version>${aws.version}</version>
    
    David Diederich's avatar
    David Diederich committed
        </dependency>
    
        <!-- Third party Apache 2.0 license packages -->
        <dependency>
          <groupId>org.projectlombok</groupId>
          <artifactId>lombok</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework.security.oauth</groupId>
          <artifactId>spring-security-oauth2</artifactId>
    
          <version>2.5.1.RELEASE</version>
    
    David Diederich's avatar
    David Diederich committed
        </dependency>
        <dependency>
          <groupId>org.springframework.security</groupId>
          <artifactId>spring-security-jwt</artifactId>
          <version>1.0.10.RELEASE</version>
        </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>
    
          <version>5.5.0</version>
    
    David Diederich's avatar
    David Diederich committed
        </dependency>
    
        <dependency>
          <groupId>org.springframework</groupId>
          <artifactId>spring-webmvc</artifactId>
          <version>${spring-webmvc.version}</version>
        </dependency>
    
    David Diederich's avatar
    David Diederich committed
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
          <version>1</version>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>org.elasticsearch</groupId>
          <artifactId>elasticsearch</artifactId>
        </dependency>
        <dependency>
    
    Matt Wise's avatar
    Matt Wise committed
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>elasticsearch-rest-client</artifactId>
    
    David Diederich's avatar
    David Diederich committed
        </dependency>
        <dependency>
    
    Matt Wise's avatar
    Matt Wise committed
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>elasticsearch-rest-high-level-client</artifactId>
    
    David Diederich's avatar
    David Diederich committed
        </dependency>
    
    Morris Estepa's avatar
    Morris Estepa committed
        <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>
    
    David Diederich's avatar
    David Diederich committed
    
        <!-- Testing packages -->
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
    
          <version>4.13.2</version>
    
    David Diederich's avatar
    David Diederich committed
          <scope>test</scope>
        </dependency>
      <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>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>${mockito.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-inline</artifactId>
        <version>4.2.0</version>
        <scope>test</scope>
    
    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>org.springframework.data</groupId>
        <artifactId>spring-data-commons</artifactId>
        <scope>compile</scope>
      </dependency>
      </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
              <configuration>
                <classifier>spring-boot</classifier>
                <mainClass>org.opengroup.osdu.indexer.aws.IndexerAwsApplication</mainClass>
              </configuration>
              <executions>
                <execution>
                  <goals>
                    <goal>repackage</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
    
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.21.0</version>
                    <configuration>
                        <argLine>
    
                            @{argLine} --add-opens java.base/java.util=ALL-UNNAMED
    
                            --add-opens java.base/java.lang=ALL-UNNAMED
    
                            --add-opens java.base/javax.net.ssl=ALL-UNNAMED
    
                        </argLine>
                    </configuration>
                </plugin>
    
                <plugin>
                    <groupId>org.owasp</groupId>
                    <artifactId>dependency-check-maven</artifactId>
                    <version>7.4.4</version>
    
                    <configuration>
    
                        <!-- .Disable Net content-->
                        <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>
                        <nugetconfAnalyzerEnabled>false</nugetconfAnalyzerEnabled>
                        <nuspecAnalyzerEnabled>false</nuspecAnalyzerEnabled>
    
                        <failOnError>false</failOnError>
    
                    </configuration>
    
                    <executions>
                        <execution>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
    
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
    
                    <executions>
                        <execution>
                            <goals>
                                <goal>prepare-agent</goal>
                            </goals>
                        </execution>
                        <execution>
                            <id>report</id>
                            <phase>test</phase>
                            <goals>
                                <goal>report</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
    
    David Diederich's avatar
    David Diederich committed
          </plugins>
      </build>
    </project>