IGNITE-17039 Fixed binary assembly of performance statistics module (#146)
diff --git a/modules/performance-statistics-ext/bin/build-report.sh b/modules/performance-statistics-ext/bin/build-report.sh
index e4321e7..6c9cf5f 100755
--- a/modules/performance-statistics-ext/bin/build-report.sh
+++ b/modules/performance-statistics-ext/bin/build-report.sh
@@ -33,7 +33,7 @@
#
# Define classpath
#
-CP="${SCRIPT_DIR}/libs/*"
+CP="${SCRIPT_DIR}/../libs/ignite-performance-statistics-ext/*"
#
# Set main class to run the tool.
diff --git a/modules/performance-statistics-ext/bin/print-statistics.sh b/modules/performance-statistics-ext/bin/print-statistics.sh
index 4d250a1..766f7a0 100644
--- a/modules/performance-statistics-ext/bin/print-statistics.sh
+++ b/modules/performance-statistics-ext/bin/print-statistics.sh
@@ -33,7 +33,7 @@
#
# Define classpath
#
-CP="${SCRIPT_DIR}/libs/*"
+CP="${SCRIPT_DIR}/../libs/ignite-performance-statistics-ext/*"
#
# Set main class to run the tool.
diff --git a/modules/performance-statistics-ext/pom.xml b/modules/performance-statistics-ext/pom.xml
index 987886d..9882b4a 100644
--- a/modules/performance-statistics-ext/pom.xml
+++ b/modules/performance-statistics-ext/pom.xml
@@ -100,6 +100,26 @@
<build>
<plugins>
<plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
+ <executions>
+ <execution>
+ <!-- Builds archive with UI resources. -->
+ <phase>compile</phase>
+ <configuration>
+ <target>
+ <zip destfile="${basedir}/target/report.zip" encoding="UTF-8">
+ <zipfileset dir="${basedir}/report"/>
+ </zip>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<executions>
@@ -129,7 +149,7 @@
<executions>
<execution>
<!-- Copy tool's dependencies. -->
- <phase>install</phase>
+ <phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>