Skip to content

Commit f8dd8dd

Browse files
committed
issue #277 heroku: Compiled slug size: 617.9M is too large (max is 500M)
1 parent cb177dd commit f8dd8dd

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

pom.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@
740740

741741
<build>
742742
<finalName>${project.artifactId}</finalName>
743-
<defaultGoal>clean dependency:list package spring-boot:repackage spring-boot:run</defaultGoal>
743+
<defaultGoal>clean dependency:list install spring-boot:run</defaultGoal>
744744
<pluginManagement>
745745
<plugins>
746746
<plugin>
@@ -927,8 +927,16 @@
927927
<addResources>true</addResources>
928928
</configuration>
929929
<executions>
930+
<execution>
931+
<id>unpack-dependency-classes-install</id>
932+
<phase>install</phase>
933+
<goals>
934+
<goal>repackage</goal>
935+
</goals>
936+
</execution>
930937
<execution>
931938
<id>id-build-info</id>
939+
<phase>process-resources</phase>
932940
<goals>
933941
<goal>build-info</goal>
934942
</goals>
@@ -962,7 +970,7 @@
962970
<executions>
963971
<execution>
964972
<id>unpack-dependency-classes-install</id>
965-
<phase>install</phase>
973+
<phase>pre-site</phase>
966974
<goals>
967975
<goal>resolve</goal>
968976
<goal>collect</goal>
@@ -981,7 +989,7 @@
981989
</execution>
982990
<execution>
983991
<id>unpack-dependency-classes-deploy</id>
984-
<phase>deploy</phase>
992+
<phase>pre-site</phase>
985993
<goals>
986994
<goal>resolve</goal>
987995
<goal>collect</goal>

run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ function runDev() {
5151
}
5252

5353
function run() {
54-
#runHerokuLocal
55-
runDev
54+
runHerokuLocal
55+
#runDev
5656
}
5757

5858
function main() {

0 commit comments

Comments
 (0)