Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Published 6.7 jar doesn't work #255

Closed
kyrill007 opened this issue Aug 3, 2012 · 12 comments
Closed

Published 6.7 jar doesn't work #255

kyrill007 opened this issue Aug 3, 2012 · 12 comments

Comments

@kyrill007
Copy link

The 6.7 jar on Maven repo central http://search.maven.org/#search|ga|1|a%3A%22testng%22 is defective. It doesn't contain com/beust/jcommander package thus when you try to run tests (I use Ant), they fail with

[testng] java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException [testng] Caused by: java.lang.ClassNotFoundException: com.beust.jcommander.ParameterException [testng] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

exception.

@cbeust
Copy link
Collaborator

cbeust commented Aug 3, 2012

jar files on Maven Central never contain dependencies. Use the jar file in the .zip distribution if you're using ant.

@cbeust cbeust closed this as completed Aug 3, 2012
@savinov
Copy link

savinov commented Oct 3, 2012

You build jar with all depended classes only for current beta version?
I haven't found jar with dependencies for releases on the download page: http://testng.org/doc/download.html
I can build it myself, but if it avaliable I want to download already build jar.

@kyrill007
Copy link
Author

Cedric doesn't seem to like this idea anymore and wants users to build the jar manually or start using Maven... Yeah, I know...

@savinov
Copy link

savinov commented Oct 3, 2012

Will be great to add note about using TestNG with Ant to the testng.org.
Because jar from maven central haven't nedded dependencies, Ant can't start tests.
I spent a few hours to understand what's wrong.

@kyrill007
Copy link
Author

Yes, Cedric, would it be possible to add this note on the website? Or better yet, return a full jar for us, poor Ant users.

@cbeust
Copy link
Collaborator

cbeust commented Oct 3, 2012

Done: http://testng.org/testng-6.8.zip

@kyrill007
Copy link
Author

Thank you, sir!

@savinov
Copy link

savinov commented Oct 3, 2012

Thanks.
Can you add a link to the current build on the web site?

@cbeust
Copy link
Collaborator

cbeust commented Oct 3, 2012

I updated it at the same time I uploaded the file.

@savinov
Copy link

savinov commented Oct 3, 2012

Good!

@stephen-smith
Copy link

Well, this is probably going to cause me to switch back to JUnit. JCommander is not available via our private dependency management system and it serves up the maven jar for testng (and no others).

It's unclear why to me why the ant task needs a command-line processor.

@juherr
Copy link
Member

juherr commented Apr 24, 2015

@stephen-smith It's another thing. Could you create an issue which ask to set JCommander optionnal? But I've no idea if it is something possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants