Errors running builder 'Maven Project Builder' on project 'demo'. 123145

用eclipse 创建一个 spring starter project http://start.spring.io 发生错误,错误消息如下:

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'demo'.
123145
解决方法:
避免使用spring boot 2.0.0, 选择spring boot 2.0.1-snapshot


"C:\Program Files\Java\jdk-17\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\360极速浏览器X下载\JSP\demo4 -Djansi.passthrough=true -Dmaven.home=C:\Users\Lenovo\.m2\wrapper\dists\apache-maven-3.9.6-bin\439sdfsg2nbdob9ciift5h5nse\apache-maven-3.9.6 -Dclassworlds.conf=C:\Users\Lenovo\.m2\wrapper\dists\apache-maven-3.9.6-bin\439sdfsg2nbdob9ciift5h5nse\apache-maven-3.9.6\bin\m2.conf "-Dmaven.ext.class.path=D:\JDK17\IntelliJ IDEA 2024.2.4\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\JDK17\IntelliJ IDEA 2024.2.4\lib\idea_rt.jar=61018:D:\JDK17\IntelliJ IDEA 2024.2.4\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\Lenovo\.m2\wrapper\dists\apache-maven-3.9.6-bin\439sdfsg2nbdob9ciift5h5nse\apache-maven-3.9.6\boot\plexus-classworlds-2.7.0.jar;C:\Users\Lenovo\.m2\wrapper\dists\apache-maven-3.9.6-bin\439sdfsg2nbdob9ciift5h5nse\apache-maven-3.9.6\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2024.2.4 -Dexec.workingdir=D:/360极速浏览器X下载/JSP/demo4 "-Dexec.args=-classpath %classpath com.example.orm.ORMExample" "-Dexec.executable=C:\Program Files\Java\jdk-17\bin\java.exe" exec:exec [INFO] Scanning for projects... [INFO] [INFO] -------------------------< org.example:demo4 >-------------------------- [INFO] Building demo4 1.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- exec:3.5.0:exec (default-cli) @ demo4 --- ����: �Ҳ������޷��������� com.example.orm.ORMExample ԭ��: java.lang.ClassNotFoundException: com.example.orm.ORMExample [ERROR] Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:355) at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:253) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:903) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:863) at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:454) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:568) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) at org.codehaus.classworlds.Launcher.main (Launcher.java:47) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.956 s [INFO] Finished at: 2025-05-20T20:46:56+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.5.0:exec (default-cli) on project demo4: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [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/MojoExecutionException 进程已结束,退出代码为 1
05-21
"C:\Program Files\Java\jdk-17\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\workspace-pro\mall\font-mall-boot -Djansi.passthrough=true -Dmaven.home=D:\tools\apache-maven-3.8.4 -Dclassworlds.conf=D:\tools\apache-maven-3.8.4\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2023.3.6\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2023.3.6\lib\idea_rt.jar=58294:C:\Program Files\JetBrains\IntelliJ IDEA 2023.3.6\bin" -Dfile.encoding=UTF-8 -classpath D:\tools\apache-maven-3.8.4\boot\plexus-classworlds-2.6.0.jar;D:\tools\apache-maven-3.8.4\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2023.3.6 -s D:\tools\apache-maven-3.8.4\conf\settings.xml -Dmaven.repo.local=D:\tools\mvnRepo_1.1 -DskipTests=true com.spotify:docker-maven-plugin:1.2.2:build -P rdc,pre,!test [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.reeji:font-mall-boot:jar:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 180, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ----------------------< com.reeji:font-mall-boot >---------------------- [INFO] Building font-mall-boot 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- docker-maven-plugin:1.2.2:build (default-cli) @ font-mall-boot --- [INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier] [INFO] Copying D:\workspace-pro\mall\font-mall-boot\target\font-mall-boot-1.0-SNAPSHOT.jar -> D:\workspace-pro\mall\font-mall-boot\target\docker\font-mall-boot-1.0-SNAPSHOT.jar [INFO] Copying D:\workspace-pro\mall\font-mall-boot\target\classes\docker\Dockerfile -> D:\workspace-pro\mall\font-mall-boot\target\docker\Dockerfile [INFO] Building image font-mall-boot Step 1/11 : FROM adoptopenjdk/openjdk11 as builder ---> 82de38fa2bb6 Step 2/11 : WORKDIR application ---> Using cache ---> 9c3dec2fcc03 Step 3/11 : ADD . . ---> 4ca0dbfb3ed9 Step 4/11 : RUN java -Djarmode=layertools -jar font-mall-boot-1.0-SNAPSHOT.jar extract ---> Running in 737deb4e4a34 no main manifest attribute, in font-mall-boot-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.736 s [INFO] Finished at: 2025-08-04T14:57:11+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.2.2:build (default-cli) on project font-mall-boot: Exception caught: The command '/bin/sh -c java -Djarmode=layertools -jar font-mall-boot-1.0-SNAPSHOT.jar extract' returned a non-zero code: 1 -> [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/MojoExecutionException Process finished with exit code 1
最新发布
08-05
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值