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
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.
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
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
Exists a known (estimate) release date ?
nik
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