Strange error while trying to integrate ReportNG with Maven

335 views
Skip to first unread message

Kaustubh Joshi

unread,
Jun 20, 2014, 10:09:31 AM6/20/14
to testng...@googlegroups.com
Hi All Expert,

I'm trying to integrate reportNG with maven but when I add maven dependency and build the project, I get strange error mentioned below.

ArtifactTransferException: Failure to transfer org.uncommons:reportng:jar:1.1.4 from http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
 org.uncommons:reportng:jar:1.1.4 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000

my POM looks like

<properties>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <selenium.version>2.39.0</selenium.version>
  <suiteXmlFile>${project.build.testOutputDirectory}/TestNGConfig.xml</suiteXmlFile>
 <skipTests>false</skipTests>
<BROWSER></BROWSER>
<TYPE></TYPE>
 
 
  </properties>
        <dependencies>
        <!-- Adding TestNG for unit test support -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>6.8.5</version>
            <scope>test</scope>
        </dependency>
        <!-- Adding Selenium dependency -->
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>${selenium.version}</version>
        </dependency>
       
       
        <dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-server</artifactId>
    <version>2.39.0</version>
</dependency>
       
           <dependency>
       <groupId>org.uncommons</groupId>
    <artifactId>reportng</artifactId>
    <version>1.1.4</version>
        <exclusions>
            <exclusion>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
   
    <dependency>
    <groupId>org.apache.velocity</groupId>
    <artifactId>velocity</artifactId>
    <version>1.7</version>
</dependency>
   
        <dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi-ooxml</artifactId>
    <version>3.10-beta1</version>
</dependency>

        <dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-install-plugin</artifactId>
    <version>2.3.1</version>
</dependency>
        <dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.6</version>
</dependency>

       
        <dependency>
    <groupId>com.google.inject</groupId>
    <artifactId>guice</artifactId>
    <version>3.0</version>
    <scope>test</scope>
</dependency>


   
            <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
    </dependency>
       
    </dependencies>
 
 
 
<build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
       
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
 
 
 
 
 
  <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-surefire-plugin</artifactId>
 <version>2.6</version>
 <configuration>
 <!-- We use a property here, because we want the ability to change the suite file on the fly
during runs '-DsuiteXmlFile=src/test/resources/testng-sample.xml' -->
 <suiteXmlFiles>
 <suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
 </suiteXmlFiles>
 
       <properties>
                        <property>
                        <name>listener</name>
                        <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value>
                    </property>
                </properties>
                <workingDirectory>target/</workingDirectory>
   
 </configuration>
 </plugin>
 
   </plugins>
 </build>
 
 
</project>
-----------------------------------
I even added following code in settings.xml file of maven
<repositories>
    <repository>
        <id>java-net</id>
        <url>http://download.java.net/maven/2</url>
    </repository>
   </repositories>

Can any expert suggest where I'm going wrong?

Awaiting the reply.

Cheers,
K

SUBRAMANYESWARA RAO BHAVIRISETTY

unread,
Jun 22, 2014, 8:25:01 PM6/22/14
to testng-users
Hi Kaustubh,

If you check the link http://download.java.net/maven/2/org/uncommons/reportng/ , only reportng-1.1.2 version is supported.
I have been using 1.1.2 and didn't face any issue

Can you try changing the version to 1.1.2 and see if it works?

~Subramanyam




--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Subramanyam

SUBRAMANYESWARA RAO BHAVIRISETTY

unread,
Jun 22, 2014, 8:59:16 PM6/22/14
to testng-users
--
Subramanyam

Kaustubh Joshi

unread,
Jun 23, 2014, 3:43:10 AM6/23/14
to testng...@googlegroups.com
Thanks for the help but same problem do occur when changed to 1.1.2.
Please look below for the error message got.

ArtifactTransferException: Failure to transfer org.uncommons:reportng:jar:1.1.2 from http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
 org.uncommons:reportng:jar:1.1.2 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000

Please let me know in case of any questions.




You received this message because you are subscribed to a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/FEfQpMqu83c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users...@googlegroups.com.

Abhishek Jain

unread,
Jun 23, 2014, 9:24:35 AM6/23/14
to testng...@googlegroups.com
Hi All
I am new with Selenium web-driver TestNG. Can anyone tell me that what java topics' knowledge should I have to work with TestNG ?

Thanks
Abhishek Jain
Reply all
Reply to author
Forward
0 new messages