“Failed to create task or type antlib:org.apache.maven.artifact.ant:mvn” error in Ant

前端 未结 2 1877
长发绾君心
长发绾君心 2021-01-12 01:11

Ant build failed to run while running the ant tasks in build.xml. I got the following error in the console:

<         


        
2条回答
  •  离开以前
    2021-01-12 01:53

    In my case, i already had the maven-ant-taksk.jar into directory 'eclipse\plugins\org.apache.ant_1.8.3.v20120321-1730\lib'.

    I'm using eclipse, so what i needed was, go to Ant Runtime on menu Windows > Preferences > Ant > Runtime, select "Ant Home Entries", click on "Ant Home"button e select the Ant home directory

    'eclipse\plugins\org.apache.ant_1.8.3.v20120321-1730\lib'
    

    It worked!

提交回复
热议问题