• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Issue while using ant task in maven

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am using a mail sending ant task in maven i m providing required jar as dependencies but I am getting below error

[mail] Failed to initialise MIME mail: Class org.apache.tools.ant.util.ClasspathUtils can not access a member of class org.apache.tools.ant.taskdefs.email.MimeMailer with modifiers ""

my ant task is :

<mail mailhost="smtpname" mailport="25" subject="GH-Test Report">
<from address="GH-Hudson" />
<to address="somemailid" />
<message>Please find the GH test reports attached</message>
<fileset dir="C:/myfiles">
<include name="index.html" />
</fileset>
</mail>



while I can run above task in ant seperately without any problem but when I add this task with maven I get the error:
[mail] Failed to initialise MIME mail: Class org.apache.tools.ant.util.ClasspathUtils can not access a member of class org.apache.tools.ant.taskdefs.email.MimeMailer with modifiers ""
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What version of maven, ant and the ant-plugin are you using?

Is that class on the CLASSPATH for the ant-plugin to use?
reply
    Bookmark Topic Watch Topic
  • New Topic