Fixed build problems 47/85147/4
authorPatrikBuhr <patrik.buhr@est.tech>
Fri, 12 Apr 2019 08:24:36 +0000 (08:24 +0000)
committerPatrikBuhr <patrik.buhr@est.tech>
Fri, 12 Apr 2019 08:24:36 +0000 (08:24 +0000)
Fixed a build problem cause by a merge
error from previous commits.

Fixes warnings from maven compile

Change-Id: I1ce88b2686b3be5ecd17113cbfde3e65297c27c6
Issue-ID: DCAEGEN2-1118
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
datafile-app-server/pom.xml
datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/tasks/ScheduledTasks.java
pom.xml

index ae15ffe..122989f 100644 (file)
           <finalName>${project.artifactId}</finalName>
           <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
         </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>build-info</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <groupId>com.spotify</groupId>
         </executions>
       </plugin>
 
-      <plugin>
-        <groupId>org.springframework.boot</groupId>
-        <artifactId>spring-boot-maven-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>build-info</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-
       <plugin>
         <groupId>pl.project13.maven</groupId>
         <artifactId>git-commit-id-plugin</artifactId>
     <dependency>
       <groupId>com.jcraft</groupId>
       <artifactId>jsch</artifactId>
-    </dependency>
-     <dependency>
-      <groupId>org.apache.commons</groupId>
-      <artifactId>commons-lang3</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.httpcomponents</groupId>
-      <artifactId>httpclient</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>commons-net</groupId>
-      <artifactId>commons-net</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter-actuator</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.commons</groupId>
index ae8c621..364fa04 100644 (file)
@@ -133,7 +133,7 @@ public class ScheduledTasks {
     }
 
     public int publishedFilesCacheSize() {
-        return alreadyPublishedFiles.size();
+        return publishedFilesCache.size();
     }
 
     protected DMaaPMessageConsumer createConsumerTask() {
diff --git a/pom.xml b/pom.xml
index c9ad326..2528378 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             <skip>true</skip>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>pl.project13.maven</groupId>
+          <artifactId>git-commit-id-plugin</artifactId>
+          <version>2.2.4</version>
+        </plugin>
       </plugins>
     </pluginManagement>
   </build>
 
- <dependencyManagement>
 <dependencyManagement>
     <dependencies>
       <dependency>
         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
         <groupId>org.apache.httpcomponents</groupId>
         <artifactId>httpasyncclient</artifactId>
         <version>4.1.4</version>
-      </dependency>      
+      </dependency>
       <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-dependencies</artifactId>