Details

    • Type: User Story User Story
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Maven Launcher
    • Labels:
      None
    • Global Rank:
      1299

      Description

      As documented in http://maven.apache.org/plugins/maven-surefire-plugin/examples/skipping-test.html, the usage of maven.test.skip parameter has changed and the article in FAQ (http://maven.apache.org/general.html#skip-test) seems to be outdated.
      This affects the execution of some builds (one scenario is http://maven.apache.org/guides/mini/guide-attached-tests.html) for multi-module project.
      It happens only when 'Skip tests' checkbox is marked on the run configuration screen indicating that the checkbox sets the maven.test.skip parameter.
      Defining the skipTests parameter instead of using the checkbox bypasses the problem.
      According to surefire plugin documentation, it's better to set the skipTests parameter through the checkbox while the maven.test.skip parameter will have to be defined explicitly.

        Activity

        Hide
        Eugene Kuleshov added a comment -

        I've done some investigation and it looks like skipTest property is only supported by maven-surefire-plugin. So, if user's project is using older surefire plugin it won't work. Given that old property is only affects building of test-jar artifact, I am leaning to keep the existing behavior.

        The workaround for test-jar artifact is to use "skipTest" property instead of "skip tests" checkbox in the launch configuration UI.

        I am open for other suggestions how to change this in a backward compatible way.

        Show
        Eugene Kuleshov added a comment - I've done some investigation and it looks like skipTest property is only supported by maven-surefire-plugin. So, if user's project is using older surefire plugin it won't work. Given that old property is only affects building of test-jar artifact, I am leaning to keep the existing behavior. The workaround for test-jar artifact is to use "skipTest" property instead of "skip tests" checkbox in the launch configuration UI. I am open for other suggestions how to change this in a backward compatible way.

          People

          • Assignee:
            Unassigned
            Reporter:
            Aleksandr Tarutin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Date of First Response: