我让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>
Run Code Online (Sandbox Code Playgroud)