Eric Bresie [email protected]
On Fri, Oct 22, 2021 at 10:32 AM Geertjan Wielenga <[email protected]> wrote: > No, it is not recognized as a JavaScript project though, indeed, you can > add JavaScript content to your Maven project. > It still seems strange that "Javascript Library" would still show by default for that type of project. I would have figured to add "Javascript" type libraries would require some other step. > It is best when using Maven in NetBeans to have a basic understanding of > how Maven works generally, so that you can work with the POM. > > Instead of the Libraries tab in Ant-based projects, you can add > dependencies to the Maven-based project via the Maven functionality built > into the Projects window and though this is inconsistent with how this is > done in Ant-based projects, the way Ant and Maven work are quite different > and so having functionality that works to the strengths of Maven makes > sense, rather than trying to force a consistent tooling to these totally > different build systems. > Okay...When trying to add Dependency, specifically a Netbeans based package like org.netbeans.modules.lsp.client.spi.LanguageServerProvider; Maybe my question should be what maven group coordinates would be needed for that package? I tried adding a Dependency looking for "Language" and got nothing. I've tried the tip to Search In Maven Repositories and get "No matching items". [image: image.png] Looking I find I suspect I need https://mvnrepository.com/artifact/org.netbeans.api/org-netbeans-modules-lsp-client/RELEASE125 But would have once again figured the above search should have found it > Gj > > > On Fri, 22 Oct 2021 at 17:27, Eric Bresie <[email protected]> wrote: > > > While trying to create a new Netbeans Module as a Maven project. I've > > started by doing the following: > > > > (1) New Project...Java with Maven..Netbeans Module > > (2) Select Netbeans Version: RELEASE125 > > (3) After creation, select the "new project", right click on Properties > > > > The project does not show "Libraries" but instead shows "Javascript > > Libraries" (i.e. it seems to be set up like a javascript project) and > > can't add Java Libraries. > > > > > > [image: image.png] > > > > Assume this relates to it being a Maven project with the dependencies > > being injected via POMs but I would still have expected a Maven project > to > > still be recognized as a "Java" type project (i.e. not Javascript) and > > allow applicable Java Project type properties to be seen and/or modified. > > > > I suppose the drawback of depending on the Project's Library > > "dependencies" is there may be confusion with "maven pom" based > > dependencies but still seems like those two should be the same. > > > > Is this a bug? > > > > Eric > > >
