Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 183539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:08:03+00:00 2026-05-11T15:08:03+00:00

I tried to use TestNG with Apache Ivy , but was unsuccessful. Here is

  • 0

I tried to use TestNG with Apache Ivy, but was unsuccessful. Here is my ivy.xml:

<ivy-module version='2.0'>      <info organisation='me' module='myproject'/>      <dependencies>       <dependency org='org.testng' name='testng' rev='5.8' />     </dependencies>  </ivy-module> 

This fails to actually download a TestNG jarfile. It seems to be because TestNG has a jarfile for jdk14 and jdk15. Here’s the output from ivy:retrieve:

[ivy:retrieve] :: resolving dependencies :: me#myproject;working@jared-mbp17 [ivy:retrieve]  confs: [default] [ivy:retrieve]  found org.testng#testng;5.8 in public [ivy:retrieve] :: resolution report :: resolve 1139ms :: artifacts dl 11ms     ---------------------------------------------------------------------     |                  |            modules            ||   artifacts   |     |       conf       | number| search|dwnlded|evicted|| number|dwnlded|     ---------------------------------------------------------------------     |      default     |   1   |   1   |   1   |   0   ||   1   |   0   |     --------------------------------------------------------------------- [ivy:retrieve]  [ivy:retrieve] :: problems summary :: [ivy:retrieve] :::: WARNINGS [ivy:retrieve]      [FAILED     ] org.testng#testng;5.8!testng.jar:  (0ms) [ivy:retrieve]  ==== shared: tried [ivy:retrieve]    /Users/jared/.ivy2/shared/org.testng/testng/5.8/jars/testng.jar [ivy:retrieve]  ==== public: tried [ivy:retrieve]    http://repo1.maven.org/maven2/org/testng/testng/5.8/testng-5.8.jar [ivy:retrieve]      :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve]      ::              FAILED DOWNLOADS            :: [ivy:retrieve]      :: ^ see resolution messages for details  ^ :: [ivy:retrieve]      :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve]      :: org.testng#testng;5.8!testng.jar [ivy:retrieve]      :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve]  [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS 

In the repository you can see two different jarfiles: http://repo1.maven.org/maven2/org/testng/testng/5.8/testng-5.8-jdk14.jar http://repo1.maven.org/maven2/org/testng/testng/5.8/testng-5.8-jdk15.jar

How do I specify either jdk14 or jdk15?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:08:03+00:00Added an answer on May 11, 2026 at 3:08 pm

    You need to specify the classifier of the artifact you want.

    There is a related fix as of 2.1.0-RC1. You can use the element artifact within the dependency element to specify the classifier you want. In this case, the classifier should be jdk14 or jdk15. If you want jdk15 your ivy.xml would then be:

    <ivy-module version='2.0'             xmlns:e='http://ant.apache.org/ivy/extra'>      <info organisation='me' module='myproject'/>      <dependencies>       <dependency org='org.testng' name='testng' rev='5.8'                   transitive='false'>         <artifact name='testng' type='jar' ext='jar' e:classifier='jdk15' />       </dependency>     </dependencies>  </ivy-module> 

    Note the specification of the XML namespace 'http://ant.apache.org/ivy/extra' as an attribute of the ivy-module element. Without that the e:classifier won’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Tried to use what's here , but that doesn't solve things for me. I've
I tried to use Hibernate Envers to log the entity histroy. but failed. My
I tried to use an image file in my HTML template. But when I
I tried to use object expression to extend the IDelegateEvent, but in fsi there
I tried to use a C++11 lambda expression with CURLOPT_WRITEFUNCTION, but the program crashes
I tried to use Zend_Test_PHPUnit to write unit tests for my application, but I
I tried to use Cleaver, that is PhoneGap / Cordova as a component of
I tried to use the following function in order to set the div's position
I tried to use AsyncProcessor in test scenario, expecting only one message to run
I tried to use this snippet from the Soundcloud API: <script src=http://connect.soundcloud.com/sdk.js> <script> SC.initialize({

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.