Problem in integtaing third party reporting jar into the Maven project

1,103 views
Skip to first unread message

Kaustubh Joshi

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

Apart from trying to integrate ReportNG, on the parallel mode, I'm trying to integrate the third party open source jar with maven and I did perform following steps.

1. Added jar into maven local repo with command like
mvn install:install-file -Dfile='C:\ATUReporter_Selenium_testNG_4.6.jar' -DgroupId=atu -DartifactId=atu-reporter-selenium-testng -Dversion=4.6 -Dpackaging=jar

then added value into POM as

  <properties>
                        <property>
                            <name>ATUReportsListener</name>
                           <value>atu.testng.reports.listeners.ATUReportsListener,atu.testng.reports.listeners.ConfigurationListener,atu.testng.reports.listeners.MethodListener</value>
                        </property>
                    </properties>

But while running the automation scripts, maven given me error like

ERROR] No plugin found for prefix 'C' in the current project and in the plugin
groups [org.apache.maven.plugins, org.codehaus.mojo] available from the reposito
ries [local (D:\maven_repo), central (http://repo.maven.apache.org/maven2)] -> [

Please note that this external jar is not available on the central repo yet.
Please confirm where I'm getting wrong so that can correct myself.
Thanks in advance.

Cheers,
K

Krishnan Mahadevan

unread,
Jun 20, 2014, 10:32:16 AM6/20/14
to testng...@googlegroups.com
This question doesn't have anything to do with TestNG. 
Please post your query on a relevant forum. 

Couple of things to check:
1. Does your pom file have a <dependency> entry for this locally installed artifact ?
2. Have you confirmed that the jar did get published into your local maven repo by exploring your ~/.m2 using windows explorer. 
3. When you run mvn dependency:resolve make sure you don't see any errors. 

~ Krishnan

iSent. iPhone. iReget.iTypos!
--
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.

ramnarayan patro

unread,
Feb 1, 2016, 11:58:37 AM2/1/16
to testng-users
Hi Krishna,
I faced the same issue ... Few things i tried that you suggested above ...

1. Ran mvn dependency:resolve command and the build is success.
2. ATU Reports didn't agev any <dependency> code to put in pom.xml file. so no depencies are there ...

I manually added the jar file in the .m2 folder. (may be stupid but an alternate to try) but didn't worked..

Please reply me if you have a suggestion.

Thanks,
Ram Narayan

ramnarayan patro

unread,
Feb 1, 2016, 11:58:37 AM2/1/16
to testng-users
Hi Kaustubh,

Did you got a solution to this ??? I am facing the same issue..

As you know we can't add the dependencies in the pom.xml file 

I am getting all compilation errors ... Suggest me something...

Thanks,
Ram Narayan

Krishnan Mahadevan

unread,
Feb 1, 2016, 9:42:10 PM2/1/16
to testng...@googlegroups.com
RamNarayan,

I am re-iterating what I mentioned before. This question doesn't have anything to do with TestNG. You would need to get this sorted out with the owner of this library from where you got this jar.

If you have a jar and you wish to convert it into a Maven artifact and install it to your local repository, then you can refer to the below link 



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

ramnarayan patro

unread,
Feb 2, 2016, 12:58:51 AM2/2/16
to testng...@googlegroups.com
Hi Krisha,
First of all, Thanks a lot !


 
this material helped me to install my external jars which are not available in maven repo... I am able to run maven test successfully.


Thanks Again,
Ram Narayan 

--
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/yGFGHgmEQNc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages