changeset 523:433b21bb546f

Reporter pom changes
author Devel 2
date Fri, 25 Aug 2017 11:35:47 +0200
parents b8d7e565adc9
children 73fa34b62fa1
files stress-tester-reporter/pom.xml
diffstat 1 files changed, 37 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester-reporter/pom.xml	Fri Aug 25 09:50:53 2017 +0200
+++ b/stress-tester-reporter/pom.xml	Fri Aug 25 11:35:47 2017 +0200
@@ -12,6 +12,8 @@
         <distdir>${project.build.directory}/dist</distdir>
     </properties>
     
+    
+    
     <dependencies>
         <dependency>
             <groupId>org.apache.avro</groupId>
@@ -107,26 +109,6 @@
                 <artifactId>maven-dependency-plugin</artifactId>
                 <version>2.8</version>
                 <executions>
-                    <!-- copy artifact to target/dist/lib -->
-                    <execution>
-                        <id>copy-artifact</id>
-                        <phase>install</phase>
-                        <goals>
-                            <goal>copy</goal>
-                        </goals>
-                        <configuration>
-                            <outputDirectory>${distdir}</outputDirectory>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>${project.groupId}</groupId>
-                                    <artifactId>${project.artifactId}</artifactId>
-                                    <version>${project.version}</version>
-                                    <type>${project.packaging}</type>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-                    <!-- copy dependencies to target/dist/lib -->
                     <execution>
                         <id>copy-dependencies</id>
                         <phase>package</phase>
@@ -134,14 +116,47 @@
                             <goal>copy-dependencies</goal>
                         </goals>
                         <configuration>
-                            <outputDirectory>${distdir}</outputDirectory>
+                            <outputDirectory>${project.build.directory}/dist/lib</outputDirectory>
                             <includeScope>compile</includeScope>
                             <excludeScope>test</excludeScope>
                         </configuration>
                     </execution>
+                    <execution>
+                        <id>copy-artifact</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>copy</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>${project.build.directory}/dist</outputDirectory>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>${project.groupId}</groupId>
+                                    <artifactId>${project.artifactId}</artifactId>
+                                    <version>${project.version}</version>
+                                    <type>${project.packaging}</type>
+                                    <destFileName>${project.artifactId}.${project.packaging}</destFileName>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
                 </executions>
             </plugin>
-            
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <version>2.5</version>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <addClasspath>true</addClasspath>
+                            <classpathPrefix>lib/</classpathPrefix>
+                            <mainClass>com.passus.st.reporter.server.ServerMain</mainClass>
+                            <useUniqueVersions>false</useUniqueVersions>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 </project>
\ No newline at end of file