summaryrefslogtreecommitdiffstats
path: root/engine-d/pom.xml
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2021-12-18 15:08:14 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2022-08-11 18:51:35 +0800
commitc4bd70c1f74cd04c441f76de4359e166a089660a (patch)
tree634a0da7181a1fa8030fb6beb14d8a7d2f6d86c3 /engine-d/pom.xml
parent61da3e3d053548815054384e5e18750e87463ee9 (diff)
Switched from Dropwizard to Springboot
Issue-ID: HOLMES-511 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn> Change-Id: I72b53ad4073e0a07a4c6a234781dc0d139584dda
Diffstat (limited to 'engine-d/pom.xml')
-rw-r--r--engine-d/pom.xml60
1 files changed, 58 insertions, 2 deletions
diff --git a/engine-d/pom.xml b/engine-d/pom.xml
index 6fc236f..1ff46dc 100644
--- a/engine-d/pom.xml
+++ b/engine-d/pom.xml
@@ -22,13 +22,17 @@
<parent>
<groupId>org.onap.holmes.engine-management</groupId>
<artifactId>holmes-engine-parent</artifactId>
- <version>1.3.7-SNAPSHOT</version>
+ <version>1.3.8-SNAPSHOT</version>
</parent>
<artifactId>holmes-engine-d</artifactId>
<name>holmes-engine-d-service</name>
<packaging>jar</packaging>
+ <properties>
+ <main-class>org.onap.holmes.engine.EngineDActiveApp</main-class>
+ </properties>
+
<build>
<resources>
<resource>
@@ -39,8 +43,61 @@
</resource>
<resource>
<directory>src/main/resources</directory>
+ <excludes>
+ <exclude>swagger.json</exclude>
+ </excludes>
</resource>
</resources>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ <version>${springboot.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>repackage</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>${main-class}</mainClass>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.8.0</version>
+ <configuration>
+ <source>8</source>
+ <target>8</target>
+ <release>11</release>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco.version}</version>
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
+ <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
<profiles>
@@ -53,7 +110,6 @@
<version>1.5.0</version>
</dependency>
</dependencies>
-
<build>
<plugins>
<plugin>