Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45245

Cannot run tests in IntelliJ IDEA with plugin parent POM 2.30

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Specifically seems to be maven-hpi-plugin 2.0 that's causing this, with the JENKINS-24064 fix. Now we get an error like

      java.lang.AssertionError: jenkins.war is not in the classpath. If you are running this from the core workspace, run 'mvn install' to create the war image in war/target/jenkins
      

      whenever trying to run tests. Jesse Glick says this is due to Intellij not honoring https://github.com/jenkinsci/maven-hpi-plugin/blob/137e435d0770f78edbbd2ed54d91809b7e7be5aa/src/main/resources/META-INF/plexus/components.xml#L134, so we need to figure out how to, like, get it to honor that.

        Attachments

          Issue Links

            Activity

            abayer Andrew Bayer created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Link This issue relates to JENKINS-24064 [ JENKINS-24064 ]
            jglick Jesse Glick made changes -
            Component/s jenkins-test-harness [ 21462 ]
            Component/s core [ 15593 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "jenkins-test-harness PR 65 (Web Link)" [ 17194 ]
            jglick Jesse Glick made changes -
            Summary Cannot run tests in Intellij with plugin parent POM 2.31+ Cannot run tests in IntelliJ IDEA with plugin parent POM 2.30
            abayer Andrew Bayer made changes -
            Assignee Kohsuke Kawaguchi [ ci_jenkinsci_org ]
            abayer Andrew Bayer made changes -
            Assignee Kohsuke Kawaguchi [ ci_jenkinsci_org ] Kohsuke Kawaguchi [ kohsuke ]
            jglick Jesse Glick made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ]
            jglick Jesse Glick made changes -
            Resolution Not A Defect [ 7 ]
            Status Open [ 1 ] Resolved [ 5 ]
            svanoort Sam Van Oort made changes -
            Resolution Not A Defect [ 7 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            abayer Andrew Bayer made changes -
            Priority Minor [ 4 ] Critical [ 2 ]
            stephenconnolly Stephen Connolly made changes -
            stephenconnolly Stephen Connolly made changes -
            Attachment sad panda2.png [ 39729 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "jenkins.git PR #3029 (Web Link)" [ 17736 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "plugin-pom PR #75 (Web Link)" [ 17737 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "maven-hpi PR #77 (Web Link)" [ 17738 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "jenkins-test-harness PR #72 (Web Link)" [ 17739 ]
            abayer Andrew Bayer made changes -
            Assignee Andrew Bayer [ abayer ]
            abayer Andrew Bayer made changes -
            Status Reopened [ 4 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Link This issue relates to INFRA-1342 [ INFRA-1342 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "jenkins-test-harness PR 73 (Web Link)" [ 17740 ]
            jglick Jesse Glick made changes -
            Assignee Andrew Bayer [ abayer ] Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "plugin-pom PR 76 (Web Link)" [ 17744 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]

              People

              Assignee:
              jglick Jesse Glick
              Reporter:
              abayer Andrew Bayer
              Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: