Details

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

      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

        Aleksandr Tarutin created issue -
        Jason Snell made changes -
        Field Original Value New Value
        Workflow Maven New [ 100094 ] jira [ 101172 ]
        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.
        Eugene Kuleshov made changes -
        Component/s Maven Launcher [ 11991 ]
        Original Estimate 0h [ 0 ]
        Remaining Estimate 0h [ 0 ]
        Eugene Kuleshov made changes -
        Attachment mylyn-context.zip [ 39102 ]
        Brian Fox made changes -
        Project Import Tue Mar 10 14:54:16 CDT 2009 [ 1236714856047 ]
        Brian Fox made changes -
        Workflow jira [ 16893 ] jira - allow edit after close [ 17993 ]
        Brian Fox made changes -
        Issue Type Improvement [ 4 ] User Story [ 6 ]
        Brian Fox made changes -
        Project Import Tue Mar 10 16:46:10 CDT 2009 [ 1236721570894 ]
        Brian Fox made changes -
        Workflow jira [ 14857 ] jira - allow edit after close [ 16118 ]
        Brian Fox made changes -
        Workflow jira [ 16118 ] jira - allow edit after close [ 18080 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Aleksandr Tarutin
            Last Updated By:
            Brian Fox
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Date of First Response: