我让Maven将一些依赖文件复制到GWT项目的特定位置。这项maven-dependency-plugin
工作已经完成,目前为止行之有效。唯一的问题是,我从Eclipse中收到一条错误消息:
Artifact has not been packaged yet. When used on reactor artifact, copy should be executed after packaging: see MDEP-187.
我曾尝试更改,<phase>
但那没有用。我该如何消除该错误,为什么会出现该错误,因为Maven会按预期进行构建。
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/war/WEB-INF/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
我遇到了相同的错误,并通过解决方法解决了此问题。我已经在Eclipse IDE外部的控制台中使用maven编译并安装了该项目。在刷新了eclise ide中的项目后,错误消失了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句