【问题标题】:Maven and Ant OddnessMaven 和 Ant 奇数
【发布时间】:2010-12-08 12:39:29
【问题描述】:

我正在尝试使用 maven-antrun-plugin 让 ant 为我生成一些代码(带有 WebLogic 的 wsdlc,但这并不是特别相关)。

我已通过以下方式将 maven.compile.classpath 传递给插件:

在 pom.xml 中,但是当我这样做时:

编译类路径:${compile_classpath}

在我得到的 build.xml 中:

编译类路径:${compile_classpath}

这表明它尚未设置。

我已经尝试添加:

通过调试到 pom,这给出:

编译类路径:${maven.compile.classpath}

这表明它也没有设置在那里(尽管我不相信这是正确的做法)。

任何想法表示赞赏。

问候,

尼克

【问题讨论】:

    标签: maven-2


    【解决方案1】:

    请忽略这一点,问题是由无知和拼写错误引起的。

    如果有人想在 pom 中显示类路径,您需要执行以下操作:

    <property name="compile_classpath" refid="${maven.compile.classpath}"/>
    <echo message="Compile classpath: $compile_classpath"/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-19
      • 2018-12-08
      • 2010-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多