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

updating indexer to work with core application.

parent 1db93652
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -143,23 +143,4 @@
<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.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.actuate.autoconfigure.elasticsearch.ElasticSearchRestHealthIndicatorAutoConfiguration;
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;
@SpringBootApplication(exclude = {ElasticSearchRestHealthIndicatorAutoConfiguration.class, SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class})
@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);
}
}
......@@ -4,6 +4,6 @@ import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
@Component
@ComponentScan({"com.amazonaws.osdu.util"})
@ComponentScan({"com.amazonaws.osdu.util", "org.opengroup.osdu.is.core"})
public class ComponentConfiguration {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment