cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "MissingPluginClassException"while installing maven

Highlighted
Occasional Contributor

Getting "MissingPluginClassException"while installing maven

Hi,
i am trying to install maven plugin in SOAP UI Pro 5.1.2 ,but getting below error:

com.eviware.soapui.plugins.MissingPluginClassException: No plugin class found in C:\Users\Abhishek\Downloads\soapui-maven-plugin-5.1.2.jar.

Need your help to resolve this at the earliest.PFA for reference.

Thanks
5 REPLIES 5
Highlighted

Re: Getting "MissingPluginClassException"while installing ma

Hi,

Apache Maven is a separate product\tool than SoapUI Pro. The plugin manager in the word document is for SoapUI Pro plugins and not maven plugins. You will need to install maven from the link below and a link on the SoapUI Pro maven plugin documentation.

http://maven.apache.org/download.cgi
http://www.soapui.org/Test-Automation/maven-2x.html

Regards,
Marcus
SmartBear Support

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️Please mark my answer as a solution if it was helpful
Highlighted
Occasional Contributor

Re: File does not exist error

Hi,
Thanks for the knowledge.I was able to install maven however I am getting below error while running the project.
Please find my pom.xml attached . Could you please help me on this.


16:02:32,247 INFO [SoapUI] File [D:\MavenProject\??D:\MavenProject\NAMI_S2S_RES
T_API_Credit_Card-soapui-project.xml]
does not exist, trying URL instead
16:02:32,248 ERROR [SoapUI] An error occurred [no protocol: ??D:\MavenProject\NA MI_S2S_REST_API_Credit_Card-soapui-project.xml], see error log for details
java.net.MalformedURLException: no protocol: ??D:\MavenProject\NAMI_S2S_REST_API
_Credit_Card-soapui-project.xml
at java.net.URL.<init>(URL.java:585)
at java.net.URL.<init>(URL.java:482)
at java.net.URL.<init>(URL.java:431)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:236)

at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:151)
at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFi
le:32)
at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFi
le:16)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCas
eRunner.java:341)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunne
r.java:162)
at com.eviware.soapui.maven2.TestMojo.execute(TestMojo.java:119)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR] java.lang.Exception: Failed to load SoapUI project file [??D:\MavenProje ct\NAMI_S2S_REST_API_Credit_Card-soapui-project.xml]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.785s
[INFO] Finished at: Thu Jan 08 16:02:32 IST 2015 [INFO] Final Memory: 18M/181M [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.smartbear.soapui:soapui-pro-maven-plugin:5.0.
0:test (default) on project MavenProject: SoapUI Test(s) failed: SoapUI Test(s)
failed:
[ERROR] Failed to load SoapUI project file [??D:\MavenProject\NAMI_S2S_REST_API_
Credit_Card-soapui-project.xml]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... FailureExc
Highlighted

Re: Getting "MissingPluginClassException"while installing ma

Hi,

One thing you need to change is the SoapUI Pro version specified, it should be 5.1.2 i.e <version>5.1.2</version>. You may need to add the following dependencies under the <plugin> element for version 5.1.2 to your pom file.

<dependencies>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.9-RC1</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.10-FINAL</version>
<exclusions>
<exclusion>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>


As for the error you are getting it looks like there is an issue accessing this project file ‪‪D:\MavenProject\NAMI_S2S_REST_API_Credit_Card-soapui-project.xml. Can you copy the project file to C:\ and see if it is accessible from there when ran in maven?


Regards,
Marcus
SmartBear Support

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️Please mark my answer as a solution if it was helpful
Highlighted
Occasional Contributor

Re: Getting "MissingPluginClassException"while installing ma

Thanks,

I got the solution. In my pom.xml 2 additional hidden characters got added <projectFile></projectFile> in the beginning of project path due to copy paste .I just removed those 2 characters and it is working fine now.

<configuration>
<projectFile>H:\Workspace\MavenProject\CurrencyConvertor-soapui-project.xml</projectFile>
<outputFolder>H:\Project\Reports</outputFolder>
<testSuite>TestSuite 1</testSuite>
<junitReport>true</junitReport>
<printReport>true</printReport>
<exportAll>true</exportAll>
<soapuiProperties>
<property>
<name>soapui.home</name>
<value>C:\Program Files\SmartBear\SoapUI-Pro-5.1.1\bin</value>
</property>
</soapuiProperties>
</configuration>

Thanks,
Abhishek
Highlighted
Contributor

Re: Getting "MissingPluginClassException"while installing ma

Hi @SmartBear_Suppo 

 

I have already configured maven on my computer, but then when I try to install the plugin, I see the same error as mentioned above. I have SoapUI 5.1.1 and I'm trying to install soapUI plugin 5.1.1. Also the maven version that I have is apache-maven-3.3.9

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite