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

Cannot run tests in IntelliJ IDEA with plugin parent POM 2.30

      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. jglick 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.

          [JENKINS-45245] Cannot run tests in IntelliJ IDEA with plugin parent POM 2.30

          Andrew Bayer created issue -
          Andrew Bayer made changes -
          Link New: This issue relates to JENKINS-24064 [ JENKINS-24064 ]

          Jesse Glick added a comment -

          Moving it to jenkins-test-harness since that is the immediate source of the error, though the changed behavior is actually in maven-hpi-plugin + plugin-pom and the fix probably needs to be in https://github.com/stapler/idea-stapler-plugin for which we have no apparent bug tracker.

          Jesse Glick added a comment - Moving it to jenkins-test-harness since that is the immediate source of the error, though the changed behavior is actually in maven-hpi-plugin + plugin-pom and the fix probably needs to be in https://github.com/stapler/idea-stapler-plugin for which we have no apparent bug tracker.
          Jesse Glick made changes -
          Component/s New: jenkins-test-harness [ 21462 ]
          Component/s Original: core [ 15593 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "jenkins-test-harness PR 65 (Web Link)" [ 17194 ]

          Jesse Glick added a comment -

          BTW the change was introduced in 2.30, not 2.31.

          Jesse Glick added a comment - BTW the change was introduced in 2.30, not 2.31.
          Jesse Glick made changes -
          Summary Original: Cannot run tests in Intellij with plugin parent POM 2.31+ New: Cannot run tests in IntelliJ IDEA with plugin parent POM 2.30

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jvnet/hudson/test/WarExploder.java
          http://jenkins-ci.org/commit/jenkins-test-harness/d0f8b511b66233a09c023060a4405de1485600e8
          Log:
          JENKINS-45245 Improve messaging.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jvnet/hudson/test/WarExploder.java http://jenkins-ci.org/commit/jenkins-test-harness/d0f8b511b66233a09c023060a4405de1485600e8 Log: JENKINS-45245 Improve messaging.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jvnet/hudson/test/WarExploder.java
          http://jenkins-ci.org/commit/jenkins-test-harness/2f425413932db5e1b7455a2d3a82d38c9d75035b
          Log:
          Merge pull request #65 from jglick/messaging-JENKINS-45245

          JENKINS-45245 Improve messaging

          Compare: https://github.com/jenkinsci/jenkins-test-harness/compare/aa1f33b652a1...2f425413932d

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jvnet/hudson/test/WarExploder.java http://jenkins-ci.org/commit/jenkins-test-harness/2f425413932db5e1b7455a2d3a82d38c9d75035b Log: Merge pull request #65 from jglick/messaging- JENKINS-45245 JENKINS-45245 Improve messaging Compare: https://github.com/jenkinsci/jenkins-test-harness/compare/aa1f33b652a1...2f425413932d
          Andrew Bayer made changes -
          Assignee New: Kohsuke Kawaguchi [ ci_jenkinsci_org ]

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

              Created:
              Updated:
              Resolved: