[INFO] --- docker-maven-plugin:1.0.0:build (default) @ bookstore ---
18:35:34.921 [main] DEBUG com.spotify.docker.client.DockerCertificates - /root/.docker/ca.pem, /root/.docker/key.pem or /root/.docker/cert.pem does not exist, not using SSL
18:35:35.076 [main] DEBUG com.spotify.docker.client.DockerConfigReader - Using configfile: /root/.dockercfg
[WARNING] No entry found in settings.xml for serverId=docker-hub, cannot configure authentication for that registry
[INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier]
[INFO] Copying /home/ales/Git/BookStore/target/bookstore-1.war -> /home/ales/Git/BookStore/target/docker/bookstore-1.war
我正在尝试容器化 java web 应用程序(我从 web 作为示例获得),我正在使用maven构建应用程序并使用spotify插件将战争转换为 dockerimage。
当我运行时mvn clean package docker:build
,它会卡住复制步骤并且不会继续进行。
注意:我的项目名称是书店。
这是长时间运行复制命令后发出的错误,
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ bookstore ---
[INFO] Packaging webapp
[INFO] Assembling webapp [bookstore] in [/home/ales/Git/BookStore/target/bookstore-1]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/ales/Git/BookStore/WebContent]
[INFO] Webapp assembled in [110 msecs]
[INFO] Building war: /home/ales/Git/BookStore/target/bookstore-1.war
[INFO]
[INFO] --- docker-maven-plugin:1.0.0:build (default) @ bookstore ---
23:31:08.311 [main] DEBUG com.spotify.docker.client.DockerCertificates - /home/ales/.docker/ca.pem, /home/ales/.docker/key.pem or /home/ales/.docker/cert.pem does not exist, not using SSL
23:31:08.567 [main] DEBUG com.spotify.docker.client.DockerConfigReader - Using configfile: /home/ales/.docker/config.json
[WARNING] No entry found in settings.xml for serverId=docker-hub, cannot configure authentication for that registry
[INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier]
[INFO] Copying /home/ales/Git/BookStore/target/bookstore-1.war -> /home/ales/Git/BookStore/target/docker/bookstore-1.war
[ERROR] Java heap space -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError