Skip to content
This repository was archived by the owner on Jul 25, 2018. It is now read-only.

Commit 62c0351

Browse files
committed
fix(rest): seperate creation of rest fatjars to maven profile
1 parent 61a70d6 commit 62c0351

File tree

2 files changed

+42
-32
lines changed

2 files changed

+42
-32
lines changed

rest/authorization-server/pom.xml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -129,24 +129,6 @@
129129
</dependencies>
130130
</dependencyManagement>
131131

132-
<build>
133-
<finalName>authorization</finalName>
134-
<plugins>
135-
<plugin>
136-
<groupId>org.springframework.boot</groupId>
137-
<artifactId>spring-boot-maven-plugin</artifactId>
138-
<version>${spring-boot.version}</version>
139-
<executions>
140-
<execution>
141-
<goals>
142-
<goal>repackage</goal>
143-
</goals>
144-
</execution>
145-
</executions>
146-
</plugin>
147-
</plugins>
148-
</build>
149-
150132
<pluginRepositories>
151133
<pluginRepository>
152134
<id>spring-snapshots</id>
@@ -158,11 +140,14 @@
158140
</pluginRepository>
159141
</pluginRepositories>
160142

143+
<build>
144+
<finalName>authorization</finalName>
145+
</build>
146+
161147
<profiles>
162148
<profile>
163149
<id>deploy</id>
164150
<build>
165-
<finalName>authorization</finalName>
166151
<plugins>
167152
<plugin>
168153
<groupId>org.apache.maven.plugins</groupId>
@@ -174,6 +159,25 @@
174159
</plugins>
175160
</build>
176161
</profile>
162+
<profile>
163+
<id>fatjar</id>
164+
<build>
165+
<plugins>
166+
<plugin>
167+
<groupId>org.springframework.boot</groupId>
168+
<artifactId>spring-boot-maven-plugin</artifactId>
169+
<version>${spring-boot.version}</version>
170+
<executions>
171+
<execution>
172+
<goals>
173+
<goal>repackage</goal>
174+
</goals>
175+
</execution>
176+
</executions>
177+
</plugin>
178+
</plugins>
179+
</build>
180+
</profile>
177181
</profiles>
178182

179183
</project>

rest/resource-server/pom.xml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -250,18 +250,6 @@
250250
</execution>
251251
</executions>
252252
</plugin>
253-
<plugin>
254-
<groupId>org.springframework.boot</groupId>
255-
<artifactId>spring-boot-maven-plugin</artifactId>
256-
<version>${spring-boot.version}</version>
257-
<executions>
258-
<execution>
259-
<goals>
260-
<goal>repackage</goal>
261-
</goals>
262-
</execution>
263-
</executions>
264-
</plugin>
265253
</plugins>
266254
</build>
267255

@@ -280,7 +268,6 @@
280268
<profile>
281269
<id>deploy</id>
282270
<build>
283-
<finalName>resource</finalName>
284271
<plugins>
285272
<plugin>
286273
<groupId>org.apache.maven.plugins</groupId>
@@ -292,6 +279,25 @@
292279
</plugins>
293280
</build>
294281
</profile>
282+
<profile>
283+
<id>fatjar</id>
284+
<build>
285+
<plugins>
286+
<plugin>
287+
<groupId>org.springframework.boot</groupId>
288+
<artifactId>spring-boot-maven-plugin</artifactId>
289+
<version>${spring-boot.version}</version>
290+
<executions>
291+
<execution>
292+
<goals>
293+
<goal>repackage</goal>
294+
</goals>
295+
</execution>
296+
</executions>
297+
</plugin>
298+
</plugins>
299+
</build>
300+
</profile>
295301
</profiles>
296302

297303
</project>

0 commit comments

Comments
 (0)