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

Missing code completion and Javadocs in maven projects with classifier.

    XMLWordPrintableJSON

Details

    Description

      If a maven artifact uses classifiers, then Netbeans isn't able to provide code completion or to display Javadocs.

      To avoid duplication, sources and javadocs usually belong to the 'parent' artifact, which has no classifier. But the actually used jar archive (the library) resides within the artifact with classifier.

      A good example for this is JavaFX. The artifact javafx-base is an empty shell and depending on the operating system the platform dependent library is used, by utilizing classifiers. In the case of linux this would be the javafx-base-11.0.2-linux.jar.

      Netbeans will not find the corresponding sources or javadoc archives, because it looks for javafx-base-11.0.2-linux-sources.jar and javafx-base-11.0.2-linux-javadoc.jar, but it won't look for javafx-base-11.0.2-sources.jar and javafx-base-11.0.2-javadoc.jar.

      As a temporary solution i created symlinks to the existing sources and javadoc archives. But this solution also doesn't work as excepted. The sources are found, but the Javadocs for a field or method can only be displayed as long all parameters and return types belong to the same artifact.

      Attachments

        1. code-completion-failed.png
          62 kB
          Tobias Oelgarte
        2. code-completion-ok.png
          78 kB
          Tobias Oelgarte

        Issue Links

          Activity

            People

              Unassigned Unassigned
              niabot Tobias Oelgarte
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: