From 53481d5ddeaba5796a66a6ccc07a0a0393501685 Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Sun, 17 Apr 2022 17:43:12 +0200 Subject: [PATCH] #663 - migrator: create executable jar with all dependencies --- BudgetMasterDatabaseMigrator/pom.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/BudgetMasterDatabaseMigrator/pom.xml b/BudgetMasterDatabaseMigrator/pom.xml index ff016d012..a6d60dfd0 100644 --- a/BudgetMasterDatabaseMigrator/pom.xml +++ b/BudgetMasterDatabaseMigrator/pom.xml @@ -14,6 +14,8 @@ <properties> <h2database.version>1.4.199</h2database.version> <commons-cli.version>1.5.0</commons-cli.version> + + <project.artifactName>${project.artifactId}-v${project.version}</project.artifactName> </properties> <dependencies> @@ -54,4 +56,23 @@ </dependency> </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + <configuration> + <outputDirectory>${project.outputDirectory}</outputDirectory> + <finalName>${project.artifactName}</finalName> + </configuration> + <executions> + <execution> + <goals> + <goal>repackage</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> </project> \ No newline at end of file -- GitLab