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

Maven modular classpath when main module is on the same directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • projects - Maven
    • None

    Description

      When a modular Maven project has the main module on the same directory - referenced by a secondary pom.xml - NetBeans displays its folders and classes on the main project and builds them fine. But it doesn't recognize the module's classpath for its classes, and offers to include dependencies on the main project's POM, which is wrong.

      Other IDEs such as Eclipse and IDEA recognize the module's classpath correctly.

      A minimal test case is attached.

      Attachments

        1. maven-nb.png
          34 kB
          Sérgio Siegrist
        2. maven-nb.zip
          2 kB
          Sérgio Siegrist

        Activity

          People

            Unassigned Unassigned
            barulheira Sérgio Siegrist
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: