Chinaunix

标题: Maven-ant-task用不起来? [打印本页]

作者: tclwp    时间: 2009-04-17 20:54
标题: Maven-ant-task用不起来?
eclipse 3.4.2

Problem: failed to create task or type antlibrg.apache.maven.artifact.ant:pom
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -F:\eclipse-jee-ganymede-SR2-win32\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\lib
        -C:\Documents and Settings\user022\.ant\lib
        -a directory added on the command line with the -lib argument

我已经放了一个 Maven-ant-task 在F:\eclipse-jee-ganymede-SR2-win32\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\lib目录下,为什么还是找不到呢?
作者: tclwp    时间: 2009-04-17 22:07
原来在EDIT Configration显式加入这个JAR包就可以了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2