Skip to content

Commit 15f547f

Browse files
Merge pull request #117 from Spring-Framework-Java-Apps/master
update
2 parents 4be7b78 + 33b713b commit 15f547f

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

pom.xml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
<executions>
321321
<execution>
322322
<id>unpack-dependencies</id>
323-
<phase>pre-site</phase>
323+
<phase>site</phase>
324324
<goals>
325325
<goal>analyze-only</goal>
326326
<goal>analyze-dep-mgt</goal>
@@ -358,7 +358,7 @@
358358
</execution>
359359
<execution>
360360
<id>check-dependencies1</id>
361-
<phase>pre-site</phase>
361+
<phase>site</phase>
362362
<goals>
363363
<goal>list</goal>
364364
<goal>list-repositories</goal>
@@ -367,7 +367,7 @@
367367
</execution>
368368
<execution>
369369
<id>check-dependencies2</id>
370-
<phase>pre-site</phase>
370+
<phase>site</phase>
371371
<goals>
372372
<goal>analyze</goal>
373373
<goal>analyze-dep-mgt</goal>
@@ -377,7 +377,7 @@
377377
</execution>
378378
<execution>
379379
<id>check-dependencies3</id>
380-
<phase>verify</phase>
380+
<phase>site</phase>
381381
<goals>
382382
<goal>tree</goal>
383383
</goals>
@@ -400,7 +400,7 @@
400400
</execution>
401401
<execution>
402402
<id>get-dependency-sources</id>
403-
<phase>pre-site</phase>
403+
<phase>site</phase>
404404
<goals>
405405
<goal>sources</goal>
406406
<goal>resolve</goal>
@@ -434,10 +434,7 @@
434434
</activation>
435435
<build>
436436
<finalName>simpleworklist</finalName>
437-
<defaultGoal>clean spring-boot:run</defaultGoal>
438-
<!--
439-
<defaultGoal>clean install dependency:sources dependency:resolve dependency:resolve-plugins dependency:tree/defaultGoal>
440-
-->
437+
<defaultGoal>clean dependency:list install spring-boot:run</defaultGoal>
441438
<plugins>
442439
<plugin>
443440
<groupId>org.springframework.boot</groupId>

run.sh

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,37 @@
22

33
source setenv.sh
44

5+
6+
7+
function runDev() {
8+
./mvnw
9+
}
10+
11+
function runGithubTestBuild() {
12+
./mvnw -B package --file pom.xml
13+
}
14+
15+
516
function setupHeroku() {
617
heroku login
718
heroku ps -a simpleworklist
819
}
920

21+
function buildLikeHeroku() {
22+
./mvnw -DskipTests clean dependency:list install
23+
}
24+
1025
function runHerokuLocal() {
26+
buildLikeHeroku
1127
heroku ps -a simpleworklist
12-
./mvnw clean install
1328
heroku local web
1429
heroku open
1530
}
1631

17-
function runDev() {
18-
./mvnw clean install
19-
}
20-
21-
function runGithubTestBuild() {
22-
./mvnw -B package --file pom.xml
23-
}
24-
2532
function main() {
26-
runDev
33+
#runDev
2734
#setupHeroku
28-
#runHerokuLocal
35+
runHerokuLocal
2936
}
3037

3138
main

0 commit comments

Comments
 (0)