更改依赖关系后,Maven构建失败并显示模糊消息

时间:2013-12-06 16:45:56

标签: maven maven-3

我对Maven相对较新。我将我的项目正在使用的库更改为更新版本。我只将它安装在本地存储库(~/.m2)中,而不是我们的artifactory

mvn install:install-file -Dfile=./Apis_Google_Maps-3.8.1.jar -DgroupId=com.github.branflake2267 -DartifactId=gwt-maps-api -Dversion=3.10.0-alpha-6 -Dpackaging=jar

然后我改变了我的pom.xml

<!-- Google Maps (use recompiled gwt 2.2 jar) -->
<!-- <dependency>
    <groupId>com.google.gwt-google-maps-v3</groupId>
    <artifactId>gwt-google-maps-v3-gwt22</artifactId>
    <version>3.0.2</version>
</dependency> -->
<dependency>
    <groupId>com.github.branflake2267</groupId>
    <artifactId>gwt-maps-api</artifactId>
    <version>3.10.0-alpha-6</version>
</dependency>

错误信息是:

[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.3.0:compile (default) on project <myproject>

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.codehaus.mojo.gwt.shell.ForkedProcessExecutionException

我错过了什么吗? Maven没有报告任何Java编译错误,我认为我没有Java(根据我的IDE),所以我认为构建问题在Maven中。

对我来说最令人困惑的是,我收到的这条错误消息表明与我所做的更改甚至没有任何关系。

0 个答案:

没有答案