From e0551f4404e1011ccd9d8ca4c3e9c441360d9d2f Mon Sep 17 00:00:00 2001 From: elinuxhenrik Date: Tue, 18 Sep 2018 14:39:34 +0200 Subject: Fix Sonar build problems Change-Id: I92896b289e3a3cd0387b4b864dceacdf5c8c0403 Issue-ID: DCAEGEN2-792 Signed-off-by: elinuxhenrik --- datafile-app-server/pom.xml | 26 +++++++++----------- .../src/main/resources/datafile_endpoints.json | 28 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 datafile-app-server/src/main/resources/datafile_endpoints.json diff --git a/datafile-app-server/pom.xml b/datafile-app-server/pom.xml index 339daeb4..860c1cc0 100644 --- a/datafile-app-server/pom.xml +++ b/datafile-app-server/pom.xml @@ -33,26 +33,21 @@ onap/${project.groupId}.${project.artifactId} yyyyMMdd'T'HHmmss - datafile-happ-server - https://nexus.onap.org - content/repositories/snapshots/ - content/repositories/releases/ + + + src/main/resources + + + org.springframework.boot spring-boot-maven-plugin - - - - repackage - - - - ${project.fatJar.finalName} + ${project.artifactId} org.onap.dcaegen2.collectors.datafile.MainApp @@ -66,12 +61,11 @@ latest openjdk:8-jre-alpine - ["java", "-jar", "/opt/${project.fatJar.finalName}.jar"] - /opt ${project.build.directory} - ${project.fatJar.finalName}.jar + ${project.artifactId}.jar + /target /config @@ -83,6 +77,7 @@ 8100 8433 + ["java", "-jar", "/target/${project.artifactId}.jar"] @@ -132,6 +127,7 @@ + io.projectreactor diff --git a/datafile-app-server/src/main/resources/datafile_endpoints.json b/datafile-app-server/src/main/resources/datafile_endpoints.json new file mode 100644 index 00000000..f6b65fba --- /dev/null +++ b/datafile-app-server/src/main/resources/datafile_endpoints.json @@ -0,0 +1,28 @@ +{ + "configs": { + "dmaap": { + "dmaapConsumerConfiguration": { + "consumerGroup": "notification", + "consumerId": "1", + "dmaapContentType": "application/json", + "dmaapHostName": "localhost", + "dmaapPortNumber": 3904, + "dmaapProtocol": "http", + "dmaapTopicName": "/events/unauthenticated.VES_NOTIFICATION_OUTPUT", + "dmaapUserName": "admin", + "dmaapUserPassword": "admin", + "messageLimit": 1000, + "timeoutMS": 1000 + }, + "dmaapProducerConfiguration": { + "dmaapContentType": "application/octet-stream", + "dmaapHostName": "localhost", + "dmaapPortNumber": 3905, + "dmaapProtocol": "http", + "dmaapTopicName": "/events/unauthenticated.VES_NOTIFICATION_OUTPUT", + "dmaapUserName": "admin", + "dmaapUserPassword": "admin" + } + } + } +} -- cgit 1.2.3-korg