• 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:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

maven works separately but fails within ANT

 
Greenhorn
Posts: 14
Eclipse IDE Firefox Browser Windows Vista
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is relevant part of ANT task



and it fails on attempt to load dependent files



but the same pom.xml works fine when executed outside ANT.

mvn -DskipTests=true compile

any ideas ?
any hint will be appreciated.

looks like ANT uses something different for mvn then maven does itself.

used:
Apache Maven 3.1.1.
Apache Ant(TM) version 1.8.2



 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Maven command within Ant does not exactly match the Maven comment you showed from the command line. Could that be the problem?

Also, please post the error you are seeing with the Ant run. It's hard to offer assistance if we don't know what the problem is.
 
Igor Janicki
Greenhorn
Posts: 14
Eclipse IDE Firefox Browser Windows Vista
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
problem solved adding parameter: mavenHome="${env.M2_HOME}"

 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic