Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2470

Better support for build-helper-maven-plugin plugin - sources added via "add-test-source" cannot be refactored AND add-test-resource is not supported

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 8.2, 9.0, 10.0, 11.0
    • None
    • apisupport - Maven
    • None

    Description

      Old issue https://netbeans.org/bugzilla/show_bug.cgi?id=231240

      When we separate integration tests from unit tests in different folders as suggested here
      We need build-helper-maven-plugin with the following configuration:
      {{<execution>
      <id>add-test-source</id>
      <goals>
      <goal>add-test-source</goal>
      </goals>
      <configuration>
      <sources>
      <source>src/it/java</source>
      <source>src/it/resources</source>
      </sources>
      </configuration>
      </execution>
      }}

      Many IDEs support second test folder, NetBeans show it as Generated folder: "Generated Test Sources (java)"/ "Generated Test Sourced (resources)" nodes in the project tree.
      And yes you cannot do any refactoring (Move/Copy/Refactoring hints) in classes below those nodes.

      Attachments

        Activity

          People

            fers3485 ANTONIO FERRER GONZALEZ
            rno Arnaud Bourrée
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: