Matt RaibleMatt Raible is a Java Champion and Developer Advocate at Okta.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

[Ant] Trying to override old definition of task $taskname

I've seen the following message printed out as part of our build process for quite a few months now - and decided to try and fix it today.

Trying to override old definition of task runservertests
Trying to override old definition of task canoo
Trying to override old definition of task dbunit

I found that moving my <taskdef>'s from the root level (right under <project>) to inside my "init" target fixed the problem. Easy fix, no more messages.

Posted in Java at Jun 06 2003, 08:32:29 AM MDT 3 Comments

Helpful detail. Worked for me too. Thanks!

Posted by LH on October 20, 2006 at 03:51 PM MDT #

I had a similar problem: I got repeated "Trying to override old definition of task for" warnings. In my case, I eventually tracked it down to the fact that I had ant-contrib in my classpath in two separate locations. In this situation, Ant will load both versions and correctly warn that there's a problem.

Posted by on February 20, 2012 at 09:54 AM MST #

Hi, We have this information in 3 xml files, and i am facing the same issue that its repeating the messages. I dont have any init targets to move this piece of code. Can anyone show an example of the init and how are you calling this taskdef inside that.

Posted by Madhu on November 21, 2016 at 01:10 PM MST #

Post a Comment:
  • HTML Syntax: Allowed