Zapi Maven Plugin Error

Issue #14 new
tanuja created an issue

Hi Team,

I am trying to implement 'Zapi Maven Plugin' within my java project to update the automation execution results in Zephyr.

After executing pom.xml, getting the below error message. (Error in BOLD) Can someone please let me know what's wrong. Thank You.


[INFO] <<< zapi-maven-plugin:0.1:zapi (default) < post-integration-test @ MyJavaProject <<< [INFO] [INFO] --- zapi-maven-plugin:0.1:zapi (default) @ MyJavaProject --- [INFO] Inside ZAPI ZAPI - the old way [INFO] Inside ZAPI, Building Configuration [INFO] Config is Configuration{baseUrl='http://myjiraIP:8080/', zapiUrl=http://myjiraIP:8080/rest/zapi/latest, jiraUrl=http://myjiraIP:8080/rest/api/latest, userName='xxxxxxxx', password='*', cyclePolicy=1, projectId='10000', versionId='1.0'} [INFO] {"jira_db_build":"70017","jira_app_server":"Apache Tomcat","jira_db_type":"h2","licenseDescription":"Zephyr for JIRA - Test Management: Evaluation","jira_version":"7.3.6","customerId":"xxxx","zfj_build":"3400334","SEN":"SEN-XXXXx","zfj_version":"3.4.0"} [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 46.039 s [INFO] Finished at: 2017-05-08T11:13:16-05:00 [INFO] Final Memory: 24M/446M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.thed.zapi:zapi-maven-plugin:0.1:zapi (default) on project MyJavaProject: Execution default of goal com.thed.zapi:zapi-maven-plugin:0.1:zapi failed: org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token [ERROR] at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1eb0a9ec; line: 1, column: 1] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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 read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException


Here is what I have in my POM.xml file

<pluginRepositories> <pluginRepository> <id>zapi-maven-repo</id> <name>Zapi Maven Bitbucket repository</name> <url>https://bitbucket.org/zfjdeveloper/zapi-maven-plugin/raw/releases</url> </pluginRepository> </pluginRepositories>

<plugin> <groupId>com.thed.zapi</groupId> <artifactId>zapi-maven-plugin</artifactId> <version>0.1</version> <executions> <execution> <phase>test</phase> <goals> <goal>zapi</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-sink-api</artifactId> <version>1.1.2</version> </dependency> </dependencies> </plugin>

<properties> <zapi.url>http://myJiraIP:8080/</zapi.url> <zapi.userName>xxxxxxxxxxxx</zapi.userName> <zapi.password>xxxxxxxxxxx</zapi.password> <zapi.projectId>10000</zapi.projectId> <zapi.versionId>1.0</zapi.versionId> <zapi.cyclePrefix>Auto</zapi.cyclePrefix> </properties>

Comments (0)

  1. Log in to comment