Skip to content
Snippets Groups Projects
Commit 6add3ce9 authored by MIchael Nguyen's avatar MIchael Nguyen
Browse files

updating wip.

parent 530d5c87
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -6,12 +6,12 @@
<groupId>org.opengroup.osdu.indexer</groupId>
<artifactId>indexer-service</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>org.opengroup.osdu.indexer.aws</groupId>
<artifactId>indexer-service-aws</artifactId>
<version>1.0-SNAPSHOT</version>
<name>indexer-service-aws</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>org.opengroup.osdu.indexer</groupId>
......@@ -119,23 +119,23 @@
<version>6.6.2</version>
</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.IndexerApplication</mainClass>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<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.aws.IndexerAwsApplication</mainClass>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
package org.opengroup.osdu.indexer.aws;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan({"org.opengroup.osdu.is.core", "org.opengroup.osdu.indexer"})
public class IndexerAwsApplication {
public static void main( String[] args )
{
SpringApplication.run(IndexerAwsApplication.class, args);
}
}
package org.opengroup.osdu.indexer.aws;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
public class ServerletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(IndexerAwsApplication.class);
}
}
......@@ -6,6 +6,7 @@
<groupId>org.opengroup.osdu.indexer</groupId>
<artifactId>indexer-service</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>indexer-service-root</artifactId>
......@@ -68,7 +69,8 @@
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>indexer-search-core-lib</artifactId>
<version>1.0.7</version>
<version>1.0.9</version>
<scope>compile</scope>
</dependency>
<dependency>
......@@ -198,5 +200,23 @@
</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.IndexerApplication</mainClass>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
package org.opengroup.osdu.indexer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@SpringBootApplication
@Configuration
@SpringBootApplication(exclude = { SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class })
@ComponentScan({"org.opengroup.osdu.is.core"})
public class IndexerApplication {
public static void main( String[] args )
{
......
......@@ -14,11 +14,12 @@
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<description>Indexer Service</description>
<!-- <modules>-->
<!-- <module>indexer-service-root</module>-->
<modules>
<module>indexer-service-aws</module>
<module>indexer-service-root</module>
<!-- <module>indexer-service-gcp</module>-->
<!-- <module>indexer-service-azure</module>-->
<!-- </modules>-->
</modules>
<properties>
<java.version>1.8</java.version>
......@@ -48,61 +49,61 @@
</repository>
</repositories>
<profiles>
<profile>
<id>root</id>
<activation>
<!-- this profile is active by default -->
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>indexer-service-root</module>
</modules>
</profile>
<profile>
<id>aws</id>
<activation>
<property>
<name>vendor</name>
<value>aws</value>
</property>
</activation>
<modules>
<module>indexer-service-aws</module>
</modules>
</profile>
<profile>
<id>gcp</id>
<activation>
<property>
<name>vendor</name>
<value>gcp</value>
</property>
</activation>
<modules>
<module>indexer-service-gcp</module>
</modules>
</profile>
<profile>
<id>azure</id>
<activation>
<property>
<name>vendor</name>
<value>azure</value>
</property>
</activation>
<modules>
<module>indexer-service-azure</module>
</modules>
</profile>
<!-- <profiles>-->
<!-- <profile>-->
<!-- <id>root</id>-->
<!-- <activation>-->
<!-- &lt;!&ndash; this profile is active by default &ndash;&gt;-->
<!-- <activeByDefault>true</activeByDefault>-->
<!-- </activation>-->
<!-- <modules>-->
<!-- <module>indexer-service-root</module>-->
<!-- </modules>-->
<!-- </profile>-->
<!-- <profile>-->
<!-- <id>aws</id>-->
<!-- <activation>-->
<!-- <property>-->
<!-- <name>vendor</name>-->
<!-- <value>aws</value>-->
<!-- </property>-->
<!-- </activation>-->
<!-- <modules>-->
<!-- <module>indexer-service-aws</module>-->
<!-- </modules>-->
<!-- </profile>-->
<!-- <profile>-->
<!-- <id>gcp</id>-->
<!-- <activation>-->
<!-- <property>-->
<!-- <name>vendor</name>-->
<!-- <value>gcp</value>-->
<!-- </property>-->
<!-- </activation>-->
<!-- <modules>-->
<!-- <module>indexer-service-gcp</module>-->
<!-- </modules>-->
<!-- </profile>-->
<!-- <profile>-->
<!-- <id>azure</id>-->
<!-- <activation>-->
<!-- <property>-->
<!-- <name>vendor</name>-->
<!-- <value>azure</value>-->
<!-- </property>-->
<!-- </activation>-->
<!-- <modules>-->
<!-- <module>indexer-service-azure</module>-->
<!-- </modules>-->
<!-- </profile>-->
<!-- &lt;!&ndash; Unit test only &ndash;&gt;-->
<!-- <profile>-->
......@@ -128,7 +129,7 @@
<!-- <skip.unit.tests>false</skip.unit.tests>-->
<!-- </properties>-->
<!-- </profile>-->
</profiles>
<!-- </profiles>-->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
......@@ -150,23 +151,5 @@
<artifactId>spring-boot-starter-validation</artifactId>
</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.IndexerApplication</mainClass>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment