Bladeren bron

fix pom build config

huodongdong 7 jaren geleden
bovenliggende
commit
7f082bf582
1 gewijzigde bestanden met toevoegingen van 17 en 6 verwijderingen
  1. 17 6
      rankin-eureka-service/pom.xml

+ 17 - 6
rankin-eureka-service/pom.xml

@@ -51,12 +51,23 @@
 	</dependencyManagement>
 
 	<build>
-		<plugins>
-			<plugin>
-				<groupId>org.springframework.boot</groupId>
-				<artifactId>spring-boot-maven-plugin</artifactId>
-			</plugin>
-		</plugins>
+        <finalName>${project.name}</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <outputDirectory>../target</outputDirectory>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
 	</build>