eclipse - Artifact 尚未打包

标签 eclipse maven

我让 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 中的项目并且错误消失后。

关于eclipse - Artifact 尚未打包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30642630/

相关文章:

java - 在 Eclipse 中构建 Alfresco CE 5.0a 时出错

java - 在 Eclipse 中使用 Google 代码格式化程序和 GWT

android - “没有适用的市场商品”试图发现android连接器

java - "The left hand side of an assignment must be a variable"由于额外的括号

java - 如何在 eclipse adt 上下载额外的 android SDK

java - maven可执行jar找不到资源

maven - IntelliJ 可以像 Eclipse 一样显示可搜索的 Maven 依赖项吗?

java - 可以吗?如何将商业库上传到 Maven Central?

java - Maven 包括旧版本的依赖项

java - 如何清理 Maven 存储库(在 Amazon S3 上)?