Dockerを起動させるとMavenWrapperMainクラスがないと怒られる
解決したいこと
ビルドが成功し、SpringBoot+PostgresのアプリケーションをDockerで起動できるようにする
gitRepository
発生している問題・エラー
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 2170 0 0:00:23 --:--:-- 0:00:23 2165
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 2174 0 0:00:23 --:--:-- 0:00:23 2174
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 2081 0 0:00:24 --:--:-- 0:00:24 2077
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1406 0 0 2714 0 0:00:18 --:--:-- 0:00:18 2709
app | curl: (23) Failed writing body (0 != 1406)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1071 0 0 2176 0 0:00:23 --:--:-- 0:00:23 2181
app | curl: (23) Failed writing body (0 != 1071)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 2285 0 0:00:22 --:--:-- 0:00:22 2280
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 2053 0 0:00:24 --:--:-- 0:00:24 2053
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 2135 0 0:00:23 --:--:-- 0:00:23 2135
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1078 0 0 1730 0 0:00:29 --:--:-- 0:00:29 1727
app | curl: (23) Failed writing body (0 != 1078)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1078 0 0 1764 0 0:00:28 --:--:-- 0:00:28 1764
app | curl: (23) Failed writing body (0 != 1078)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 1963 0 0:00:25 --:--:-- 0:00:25 1963
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 1996 0 0:00:25 --:--:-- 0:00:25 1996
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 2152 0 0:00:23 --:--:-- 0:00:23 2148
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
app | ./pictgram/mvnw: line 276: /app/.mvn/wrapper/maven-wrapper.properties: No such file or directory
app | % Total % Received % Xferd Average Speed Time Time Time Current
app | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /app/.mvn/wrapper/maven-wrapper.jar: No
app | Warning: such file or directory
2 50710 2 1072 0 0 2026 0 0:00:25 --:--:-- 0:00:25 2026
app | curl: (23) Failed writing body (0 != 1072)
app | Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
app | Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
app exited with code 1
よろしくお願いします。
0