corrections for packaging and CSIT 49/34149/1
authordglFromAtt <dgl@research.att.com>
Sat, 3 Mar 2018 02:37:57 +0000 (21:37 -0500)
committerdglFromAtt <dgl@research.att.com>
Sat, 3 Mar 2018 02:38:04 +0000 (21:38 -0500)
Change-Id: I66f981b92988f820469c272063e7b22661900e8d
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: DMAAP-318

misc/dmaapbc
pom.xml

index 7ee0e68..3d19f88 100644 (file)
@@ -86,7 +86,13 @@ start() {
        if [ "$PIDS" = "" ]
        then
                echo $COMPONENT startup failed
-               tail -100 $APP_ROOT/logs/dmaap*.log
+               ls -l $APP_ROOT/logs/EELF
+               echo "------------ error.log ---------------"
+               cat $APP_ROOT/logs/EELF/error.log
+               echo "------------ server.log ---------------"
+               cat $APP_ROOT/logs/EELF/server.log
+               echo "------------ tail -100 application.log ---------------"
+               tail -100 $APP_ROOT/logs/EELF/application.log
        else
                echo $COMPONENT started
        fi
diff --git a/pom.xml b/pom.xml
index 53cbb70..ab6347d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             </configuration>
           </execution>
         </executions>
+      </plugin>
+         <plugin>
+        <!--Special goal to populate target/libs with dependencies to place in docker image -->
+           <groupId>org.apache.maven.plugins</groupId>
+           <artifactId>maven-dependency-plugin</artifactId>
+           <executions>
+             <execution>
+                   <phase>install</phase>
+                   <goals>
+                     <goal>copy-dependencies</goal>
+                   </goals>
+                   <configuration>
+                     <outputDirectory>${project.build.directory}/dependency</outputDirectory>
+                   </configuration>
+             </execution>
+       </executions>
       </plugin>
 
     </plugins>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-dependency-plugin</artifactId>
                     <versionRange>[2.10,)</versionRange>
-                    <goals>
-                      <goal>copy-dependencies</goal>
-                    </goals>
+                                           <phase>install</phase>
+                        <goals>
+                          <goal>copy-dependencies</goal>
+                        </goals>
                   </pluginExecutionFilter>
                   <action>
                     <ignore/>