相关疑难解决方法(0)

"无法在Ant中创建任务或输入antlib:org.apache.maven.artifact.ant:mvn"错误

在运行ant任务时,Ant构建无法运行build.xml.我在控制台中收到以下错误:

Buildfile: F:\Eclipse Projects\my_project\build.xml
  [typedef] Could not load definitions from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.

BUILD FAILED
F:\my_project\build.xml:32: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:mvn
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.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration. 
Action: Check that the implementing …
Run Code Online (Sandbox Code Playgroud)

java eclipse ant maven

9
推荐指数
2
解决办法
1万
查看次数

标签 统计

ant ×1

eclipse ×1

java ×1

maven ×1