• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant-Maven Integration - Using Maven Ant tasks

 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the scenario:

I have a build script written in Ant. There are a couple of other projects which my code is dependent on. These are currently "mavenised" with Hudson. So I wanted to somehow call maven goals from ant targets and came across the maven ant tasks jar.



My problem is that it doesnt retrieve the latest jar in the snapshot folder, rather it retrieves everything in that folder. Any ideas on how I can retrieve only the latest build?
 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have another problem as well.

Problem: failed to create task or type wlcompile
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.



Any ideas? I remember reading somewhere that Maven messes up Ant's classloader when they work together, especially when there are some typedefs defined.
 
reply
    Bookmark Topic Watch Topic
  • New Topic