我浏览了一些可用的链接,例如https://cloud.google.com/appengine/docs/standard/java11/java-differences,但我还没有找到任何适当的步骤来在本地运行并部署到 AppEngine。当我尝试将我们的应用程序从 java8 迁移到 java11 时,我遇到了这个问题。现在我正在寻找创建正确的 pom 和 yaml 文件以在本地运行并部署到 AppEngine 的步骤。
[错误] 无法在项目 R2D2_SCB 上执行目标 org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean):无法清理项目:无法删除 C:\Timo\R2D2_SCB\target\R2D2_SCB\WEB-INF\lib\xercesMinimal-1.9.6.2.jar -> [帮助 1] org.apache.maven.lifecycle.LifecycleExecutionException:无法在项目 R2D2_SCB 上执行目标 org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean):无法清理项目:无法删除 C:\Timo\R2D2_SCB\target\R2D2_SCB\WEB-INF\lib\xercesMinimal-1.9.6.2.jar org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:192) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) 原因:org.apache.maven.plugin.MojoExecutionException:无法清理项目:无法删除 C:\Timo\R2D2_SCB\target\R2D2_SCB\WEB-INF\lib\xercesMinimal-1.9.6.2.jar 在 org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:215) 在 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) 在 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) ... 另外 20 个 原因:java.io.IOException:无法删除C:\Timo\R2D2_SCB\target\R2D2_SCB\WEB-INF\lib\xercesMinimal-1.9.6.2.jar 位于 org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:249) 在 org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:191) 在 org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158) 在 org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158) 在 org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158) 在 org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:158) 在 org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:117) 在 org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:193) ... 还有 22 个 [错误] [错误] [错误] 有关错误和可能的解决方案的更多信息,请阅读以下文章:[错误] [帮助 1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException