【问题标题】:Problem adding commons-configuration to m2eclipse将公共配置添加到 m2eclipse 时出现问题
【发布时间】:2011-04-06 07:53:17
【问题描述】:

我想在我的 Maven 项目中使用 apache commons 配置 jar。

当我使用 m2Eclipse 添加它时,它会生成:

<dependency>
  <groupId>commons-configuration</groupId>
  <artifactId>commons-configuration</artifactId>
  <version>20041012.002804</version>
  <type>jar</type>
  <scope>compile</scope>
</dependency>

这看起来不错,但它给了我错误:

缺少工件资源:resources:jar:1.0:compile

有人可以帮忙吗?

【问题讨论】:

    标签: eclipse maven-2 m2eclipse


    【解决方案1】:

    看来您需要选择一个可靠的版本。那似乎是一个快照构建。这是我项目的摘录。

    <dependency>
        <groupId>commons-configuration</groupId>
        <artifactId>commons-configuration</artifactId>
        <version>1.6</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-03
      相关资源
      最近更新 更多