Change-Id: I83105eadc15fd1ad635beb4a255206b312796ef8
Issue-ID: HOLMES-123
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
\r
\r
<stringtemplate.version>3.2.1</stringtemplate.version>\r
\r
\r
<stringtemplate.version>3.2.1</stringtemplate.version>\r
- <dropwizard.version>0.8.0</dropwizard.version>\r
+ <dropwizard.version>1.3.0</dropwizard.version>\r
<reflections.version>0.9.9</reflections.version>\r
<swagger.version>1.5.3</swagger.version>\r
<lombok.version>1.16.8</lombok.version>\r
<jersey.version>2.22.2</jersey.version>\r
<jaxrs.consumer.version>5.0</jaxrs.consumer.version>\r
<reflections.version>0.9.9</reflections.version>\r
<swagger.version>1.5.3</swagger.version>\r
<lombok.version>1.16.8</lombok.version>\r
<jersey.version>2.22.2</jersey.version>\r
<jaxrs.consumer.version>5.0</jaxrs.consumer.version>\r
- <slf4j.version>1.6.1</slf4j.version>\r
+ <slf4j.version>1.7.25</slf4j.version>\r
<quartz.version>2.2.1</quartz.version>\r
<postgres.jdbc.driver.version>42.1.1</postgres.jdbc.driver.version>\r
\r
<quartz.version>2.2.1</quartz.version>\r
<postgres.jdbc.driver.version>42.1.1</postgres.jdbc.driver.version>\r
\r
<overwrite>true</overwrite>
</configuration>
</execution>
<overwrite>true</overwrite>
</configuration>
</execution>
+ <execution>
+ <id>copy-lib-${linux64id}</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${linux64outputdir}/lib</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.parent.basedir}/rulemgt/target/lib</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ <overwrite>true</overwrite>
+ </configuration>
+ </execution>
<execution>
<id>copy-resources-${win64id}</id>
<phase>process-resources</phase>
<execution>
<id>copy-resources-${win64id}</id>
<phase>process-resources</phase>
<overwrite>true</overwrite>
</configuration>
</execution>
<overwrite>true</overwrite>
</configuration>
</execution>
+ <execution>
+ <id>copy-lib-${win64id}</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${win64outputdir}/lib</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.parent.basedir}/rulemgt/target/lib</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ <overwrite>true</overwrite>
+ </configuration>
+ </execution>
<execution>
<id>copy-dockerfile</id>
<phase>process-resources</phase>
<execution>
<id>copy-dockerfile</id>
<phase>process-resources</phase>
#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n"
echo @JAVA_OPTS@ $JAVA_OPTS
#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n"
echo @JAVA_OPTS@ $JAVA_OPTS
-class_path="$main_path/:$main_path/holmes-rulemgt.jar"
+class_path="$main_path/*:$main_path/lib/*:$main_path/holmes-rulemgt.jar"
echo @class_path@ $class_path
if [ -z ${JDBC_USERNAME} ]; then
echo @class_path@ $class_path
if [ -z ${JDBC_USERNAME} ]; then
threshold: ERROR
#logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
threshold: ERROR
#logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
- currentLogFilename: ../logs/ONAP/holmes/rulemgt-relation-error.log
+ currentLogFilename: var/log/ONAP/holmes/rulemgt-relation-error.log
archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-error-%d{yyyy-MM-dd}.log.gz
archivedFileCount: 7
- type: file
archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-error-%d{yyyy-MM-dd}.log.gz
archivedFileCount: 7
- type: file
<artifactId>hibernate-validator</artifactId>
<version>5.4.2.Final</version>
</dependency>
<artifactId>hibernate-validator</artifactId>
<version>5.4.2.Final</version>
</dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-core</artifactId>
- <version>2.8.6</version>
- </dependency>
<dependency>
<groupId>org.onap.msb.java-sdk</groupId>
<artifactId>msb-java-sdk</artifactId>
<dependency>
<groupId>org.onap.msb.java-sdk</groupId>
<artifactId>msb-java-sdk</artifactId>
<groupId>org.onap.holmes.common</groupId>
<artifactId>holmes-actions</artifactId>
<exclusions>
<groupId>org.onap.holmes.common</groupId>
<artifactId>holmes-actions</artifactId>
<exclusions>
+ <exclusion>
+ <groupId>io.dropwizard</groupId>
+ <artifactId>dropwizard-db</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>io.dropwizard</groupId>
+ <artifactId>dropwizard-core</artifactId>
+ </exclusion>
<exclusion>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
</exclusion>
<exclusion>
<exclusion>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
</exclusion>
<exclusion>
- <groupId>org.apache.activemq</groupId>
- <artifactId>activemq-core</artifactId>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-jersey2-jaxrs</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</exclusion>
</exclusions>
</dependency>
<groupId>org.antlr</groupId>
<artifactId>stringtemplate</artifactId>
</dependency>
<groupId>org.antlr</groupId>
<artifactId>stringtemplate</artifactId>
</dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <version>1.1.2</version>
- </dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-core</artifactId>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-core</artifactId>
<groupId>ch.qos.logback</groupId>
<artifactId>logback</artifactId>
</exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback</artifactId>
</exclusion>
- <exclusion>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>log4j-over-slf4j</artifactId>
- <groupId>org.slf4j</groupId>
- </exclusion>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</exclusion>
<exclusion>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</exclusion>
<exclusion>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-core</artifactId>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</exclusion>
</exclusions>
</dependency>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ <mainClass>org.onap.holmes.rulemgt.RuleActiveApp</mainClass>
+ <classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.3</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <configuration>
- <createDependencyReducedPom>true</createDependencyReducedPom>
- <filters>
- <filter>
- <artifact>*:*</artifact>
- <excludes>
- <exclude>META-INF/*.SF</exclude>
- <exclude>META-INF/*.DSA</exclude>
- <exclude>META-INF/*.RSA</exclude>
- </excludes>
- </filter>
- </filters>
- </configuration>
+ <artifactId>maven-dependency-plugin</artifactId>
<phase>package</phase>
<goals>
<phase>package</phase>
<goals>
+ <goal>copy-dependencies</goal>
- <transformers>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <mainClass>org.onap.holmes.rulemgt.RuleActiveApp</mainClass>
- </transformer>
- </transformers>
+ <outputDirectory>
+ ${project.build.directory}/lib
+ </outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</configuration>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.3</version>
+ <configuration>
+ <source>1.8</source>
+ <target>1.8</target>
+ </configuration>
+ </plugin>
</plugins>
<resources>
<resource>
</plugins>
<resources>
<resource>