sách gpt4 ăn đã đi

java - 集成maven和eclipse后获取MojoExecutor.execute异常

In lại 作者:搜寻专家 更新时间:2023-11-01 03:43:59 33 4
mua khóa gpt4 giày nike

我在从 eclipse 执行 maven 安装时收到以下错误,而当我手动执行它时(在命令行中不使用 eclipse)我没有收到错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project pconIvr: Compilation failure
[ERROR] \PCX\PCX\release\pcx\core\pconIvr\src\main\java\com\anexsys\epay\ivr\IvrHostServlet.java:[355,48] cannot find symbol
[ERROR] symbol : method extractContentAsDocument()
[ERROR] location: interface javax.xml.soap.SOAPBody
[LỖI] -> [Trợ giúp 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project pconIvr: Compilation failure
\PCX\PCX\release\pcx\core\pconIvr\src\main\java\com\anexsys\epay\ivr\IvrHostServlet.java:[355,48] cannot find symbol
symbol : method extractContentAsDocument()
location: interface javax.xml.soap.SOAPBody

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
tại org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
tại org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
tại org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
tại org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
tại org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
tại org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
tại org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
tại org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
tại org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
tại sun.reflect.NativeMethodAccessorImpl.invoke0(Phương pháp gốc)
tại sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
tại sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
tại org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
tại org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
tại org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
tại org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure

câu trả lời hay nhất

我遇到了同样的问题。我注意到在我的 pom 文件中版本设置为 3.0。

org.apache.maven.plugins
trình biên dịch maven
2.0

我将其改回 2.0,一切都开始编译。

关于java - 集成maven和eclipse后获取MojoExecutor.execute异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7329974/

33 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress