工件尚未包装 [英] Artifact has not been packaged yet
问题描述
我让Maven将一些依赖文件复制到GWT项目的特定位置. maven-dependency-plugin
可以完成工作,到目前为止,它仍然可以工作.唯一的问题是我从Eclipse中收到一条错误消息:
I am letting Maven copy some dependency files into a specific location for a GWT project. The maven-dependency-plugin
does the job and so far it works. The only Problem is that I'm getting an error from Eclipse that says:
Artifact has not been packaged yet. When used on reactor artifact, copy should be executed after packaging: see MDEP-187.
我已尝试更改<phase>
,但这没有用.我该如何消除该错误,为什么会出现该错误,因为Maven会按预期进行构建.
I have tried to change the <phase>
but that did not work. How can I get rid of that error and why is it there because Maven builds as intended.
<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中的项目后,错误消失了.
I got the same error and I solved this issue with a workaround. I have compiled and installed the project with maven in a console outside eclipse ide. After I have refreshed the project inside eclise ide and error has disappeared.
这篇关于工件尚未包装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!