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

            Hide
            scm_issue_link 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/b45ae9bb02999e82d14dd16f95c1b8fd2b277343
            Log:
            Merge pull request #73 from jglick/IDEA-is-broken-JENKINS-45245

            JENKINS-45245 Work around failure of IDEA to add jenkins-war.war to the test CP

            Compare: https://github.com/jenkinsci/jenkins-test-harness/compare/2a12efb35ad1...b45ae9bb0299

            Show
            scm_issue_link 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/b45ae9bb02999e82d14dd16f95c1b8fd2b277343 Log: Merge pull request #73 from jglick/IDEA-is-broken- JENKINS-45245 JENKINS-45245 Work around failure of IDEA to add jenkins-war.war to the test CP Compare: https://github.com/jenkinsci/jenkins-test-harness/compare/2a12efb35ad1...b45ae9bb0299
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            http://jenkins-ci.org/commit/plugin-pom/8ba282fa56c33266be81bfd21643a2eca369497b
            Log:
            Update jenkins-test-harness to 2.27 to pick up JENKINS-45245 fix.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml http://jenkins-ci.org/commit/plugin-pom/8ba282fa56c33266be81bfd21643a2eca369497b Log: Update jenkins-test-harness to 2.27 to pick up JENKINS-45245 fix.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            http://jenkins-ci.org/commit/plugin-pom/ad2a3715aa4c52d7aa7a80ab4ea4eee3431ecbe1
            Log:
            Merge pull request #76 from jglick/JTH-JENKINS-45245

            Update jenkins-test-harness to 2.27 to pick up JENKINS-45245 fix

            Compare: https://github.com/jenkinsci/plugin-pom/compare/bd1cf68495e8...ad2a3715aa4c

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml http://jenkins-ci.org/commit/plugin-pom/ad2a3715aa4c52d7aa7a80ab4ea4eee3431ecbe1 Log: Merge pull request #76 from jglick/JTH- JENKINS-45245 Update jenkins-test-harness to 2.27 to pick up JENKINS-45245 fix Compare: https://github.com/jenkinsci/plugin-pom/compare/bd1cf68495e8...ad2a3715aa4c
            Hide
            jglick Jesse Glick added a comment -

            Should be fixed for users of parent 2.35.

            Show
            jglick Jesse Glick added a comment - Should be fixed for users of parent 2.35.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Pavel Grigorenko
            Path:
            pom.xml
            http://jenkins-ci.org/commit/token-macro-plugin/65aec126153cf839602b3ae4c12cf50e027a4eff
            Log:
            Bumped json-path version to 2.4.0 to solve dependency issue (#32)

            • Updated json-path to 2.4.0
            • Fixed NoClassDefFoundErrors in tests
            • Parent pom version to 3.2
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Pavel Grigorenko Path: pom.xml http://jenkins-ci.org/commit/token-macro-plugin/65aec126153cf839602b3ae4c12cf50e027a4eff Log: Bumped json-path version to 2.4.0 to solve dependency issue (#32) Updated json-path to 2.4.0 Updated pom parent to 2.35 due to JENKINS-45245 Fixed NoClassDefFoundErrors in tests Parent pom version to 3.2

              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: