Hi Jesse, Thank you so much for the reply. I changed the <parent> POM version to latest which is 2.2 and tried to run "mvn test". It failed with different errors:
Generating C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\target\site\apidocs\help-doc.html... 2 warnings [WARNING] Javadoc Warnings [WARNING] C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\src\main\java\se\diabol\jenkins\pipeline\domain\results\TestResult.java:21: error: package hudson.tasks.test does not exist [WARNING] import hudson.tasks.test.AbstractTestResultAction; [WARNING] ^ [WARNING] C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\src\main\java\se\diabol\jenkins\pipeline\util\ProjectUtil.java:63: warning - Tag @see: can't find getAllDownstreamProjects(hudson.model.AbstractProject, java.util.Map) in se.diabol.jenkins.pipeline.util.ProjectUtil [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ delivery-pipeline-plugin --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 49 resources [INFO] [INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ delivery-pipeline-plugin --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- animal-sniffer:1.2:check (animal-sniffer) @ delivery-pipeline-plugin --- [INFO] Checking unresolved references to org.jvnet.animal-sniffer:java1.6:1.0 [ERROR] Undefined reference: hudson/tasks/test/AbstractTestResultAction in C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\target\classes\se\diabol\jenkins\pipeline\domain\results\TestResult.class [ERROR] Undefined reference: hudson/tasks/test/AbstractTestResultAction.getDisplayName()Ljava/lang/String; in C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\target\classes\se\diabol\jenkins\pipeline\domain\results\TestResult.class [ERROR] Undefined reference: hudson/tasks/test/AbstractTestResultAction.getUrlName()Ljava/lang/String; in C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\target\classes\se\diabol\jenkins\pipeline\domain\results\TestResult.class [ERROR] Undefined reference: hudson/tasks/test/AbstractTestResultAction.getFailCount()I in C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\target\classes\se\diabol\jenkins\pipeline\domain\results\TestResult.class [ERROR] Undefined reference: hudson/tasks/test/AbstractTestResultAction.getSkipCount()I in C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\target\classes\se\diabol\jenkins\pipeline\domain\results\TestResult.class [ERROR] Undefined reference: hudson/tasks/test/AbstractTestResultAction.getTotalCount()I in C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\target\classes\se\diabol\jenkins\pipeline\domain\results\TestResult.class [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 36.746 s [INFO] Finished at: 2016-11-21T16:05:47-08:00 [INFO] Final Memory: 106M/1153M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.jvnet:animal-sniffer:1.2:check (animal-sniffer) on project delivery-pipeline-plugin: Signature errors found. Verify them and put @IgnoreJRERequirement on them. -> [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/MojoExecutionException Do you have any idea about these? Also when I tried to run "mvn compile" the command throws the same above errors. I am not sure if the warnings matter, as ProjectUtil.java has method definition for "getAllDownstreamProjects". So not sure why it's complaining about not finding this method. Thanks, Sneha On Monday, November 21, 2016 at 3:07:40 PM UTC-8, Jesse Glick wrote: > > On Mon, Nov 21, 2016 at 11:52 PM, sneha shejwal <[email protected] > <javascript:>> wrote: > > Can you please guide me what am I missing or doing wrong here? > > Make sure you are using the latest 2.x parent POM, which should by > default pull in a current version of `jenkins-test-harness`. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/be5898f0-9e05-45f6-a809-915549c69e93%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
