testng and maven2 reprise

11 views
Skip to first unread message

nik

unread,
Feb 7, 2006, 4:30:44 AM2/7/06
to testng-users
hello!
I see an incomplete try at
http://www.ibiblio.org/maven2/org/testng/testng-jdk14/4.4.7/
about testng 4.4.7 jdk14.
The url have no testng distribution jar; the jdk14 release.
Personally I'm waiting for the jdk15 release availability.


This is the relevant maven2 config about the jdk14 case I have setup.

== BEGIN PRJ pom.xml SNIPPET
===========================================

<?xml version="1.0"?>
<project>
[...]
<dependencies>
[...]
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng-jdk14</artifactId>
<version>4.4.7</version>
<scope>test</scope>
</dependency>
[...]
</dependencies>
[...]
</project>

== END PRJ pom.xml SNIPPET
=============================================

And this is the command-line output (reduced)

== BEGIN MVN2 CONSOLE DUMP
=============================================

C:\projectsArea\tutorials\maven\v2.0\com.mycompany\my-app>mvn compile
[INFO] Scanning for projects...
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building MyApp Application
[INFO] task-segment: [compile]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/org/testng/testng-jdk14/4.4.7/testng-jdk14-4.4.7.pom
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.testng:testng-jdk14

Reason: Error getting POM for 'org.testng:testng-jdk14' from the
repository: Err
or transferring file
org.testng:testng-jdk14:pom:4.4.7

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

[...]

== END MVN2 CONSOLE DUMP
===============================================

As you note maven2 report show the following url
http://repo1.maven.org/maven2
but every request is automatically redirected to the official
http://www.ibiblio.org/maven2/
So it's all right.

The naming convention chosen in the actual try is not the same as the
usual testng distro.
Actually at ibiblio.org maven is looking for
testng-jdk14-4.4.7.jar
but the 4.4.7 distro contains
testng-4.4.7-jdk14.jar
That's no the same.
I suspect that this could be the cause of the incompleteness.
In respect of the actual naming convention of the official testng
distro, in my previsious post I suggested:

in the pom.xml:
[...]
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>4.4.7-jdk14</version>
<scope>test</scope>
</dependency>
[...]
at ibibilio.org:
http://repo1.maven.org/maven2/org/testng/testng/4.4.7-jdk14/testng-4.4.7-jdk14.pom
http://repo1.maven.org/maven2/org/testng/testng/4.4.7-jdk14/testng-4.4.7-jdk14.jar

Anyway, please try to unify the naming convention, there's no reason to
do not.

The following url explain maven2 naming convention
http://maven.apache.org/guides/mini/guide-naming-conventions.html
the repository upload guide
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

Thanks.

nik

Alexandru Popescu

unread,
Feb 7, 2006, 3:53:02 PM2/7/06
to testng...@googlegroups.com
#: nik changed the world a bit at a time by saying (astral date: 2/7/2006 11:30 AM) :#

Hi nik!

Thanks for the pointers. Unfortunately, I am not a maven user (or I would probably say I am using
maven only when the oss projects are imposing it), so I don't have knowledge about these naming
conventions.
We got sporadical help on maven support for TestNG, and this is reflected by the current state. We
are open to anybody that would want to maintain it ;-).

cheers,

./alex
--
.w( the_mindstorm )p.

Cédric Beust ♔

unread,
Feb 7, 2006, 3:56:06 PM2/7/06
to testng...@googlegroups.com
Just to clarify:

The TestNG Maven 2 plug-in is complete, but Jesse Kuhnert (its author) is waiting for some of his check-in in the Maven code base (in SureFire) to be approved.

I removed the Maven 2 documentation from the TestNG Web site for now to avoid confusion, I will restore it once we are sure that everybody can use it.

--
Cedric
--
Cédric

nik

unread,
Feb 8, 2006, 6:08:50 AM2/8/06
to testng-users
Ok Alex I understand.

Cedric, thanks for the clarification.

I hope Jesse Kuhnert, can terminate his work asap.
I'll table my mvn2 prj testng integration until it will be available.

Thanks, testng is a great value work!

nik

Jesse Kuhnert

unread,
Feb 9, 2006, 12:54:14 PM2/9/06
to testng...@googlegroups.com
It's more just waiting right now. I've done all the work I can, just need the code to be commited.

Luckily I can see that maven 2.0.2 has been released, which theoretically means that these changes will be coming in the next release.

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=17352&messageID=34656#34656

nik

unread,
Feb 9, 2006, 4:47:48 PM2/9/06
to testng-users
Hi Jesse!
Thank you very much.
I'm really exciting to start build with maven2 and testng, all
together.

Exists a known (estimate) release date ?

nik

Jesse Kuhnert

unread,
Feb 10, 2006, 7:54:35 PM2/10/06
to testng...@googlegroups.com
It should be very soon, I just im'd with one of the dev's this evening and was told it was one of his top priorities, it's just been a matter of too much current work to get to it. I am waiting for it on my own projects as well :)

I can't imagine it being more than a couple more weeks until it's available in some form.

---------------------------------------------------------------------
Posted via Jive Forums

http://forums.opensymphony.com/thread.jspa?threadID=17352&messageID=35000#35000

Reply all
Reply to author
Forward
0 new messages