You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Alessandro Falappa (JIRA)" <ji...@apache.org> on 2019/07/10 17:22:01 UTC

[jira] [Assigned] (NETBEANS-2783) Maven dependencies node does not show dependencies added editing POM

     [ https://issues.apache.org/jira/browse/NETBEANS-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessandro Falappa reassigned NETBEANS-2783:
--------------------------------------------

    Assignee: Alessandro Falappa

> Maven dependencies node does not show dependencies added editing POM
> --------------------------------------------------------------------
>
>                 Key: NETBEANS-2783
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2783
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Generic Projects UI, projects - Maven
>    Affects Versions: 11.0, 11.1
>         Environment: Product Version: Apache NetBeans IDE 11.1
> Updates: Updates available
> Java: 1.8.0_202; OpenJDK 64-Bit Server VM 25.202-b08
> Runtime: OpenJDK Runtime Environment 1.8.0_202-b08
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_IE (nb)
> User directory: C:\Users\falappa\AppData\Roaming\NetBeans\11.1
> Cache directory: C:\Users\falappa\AppData\Local\NetBeans\Cache\11.1
>            Reporter: Alessandro Falappa
>            Assignee: Alessandro Falappa
>            Priority: Major
>              Labels: regression
>
> Steps:
>  # Open or create a new maven project
>  # Expand the Dependencies node in Projects view
>  # Open pom.xml and add a dependency that has never been used before, i.e. is not in the local maven repository (.m2/repository)
>  # Save pom.xml
> _Expected_ (works in NB 8.2): a jar entry with  the name of the dependency artifact appears under the Dependencies node of the project with a yellow triangle badge indicating new dependency detected but missing local copy.
> _Actual_ (broken in NB11.0 and NB11.1-beta2): no jar entry appears, the log contains the following warning (here for commons-math3 dependency):
> {code:java}
> // WARNING [org.netbeans.modules.maven.nodes.DependenciesNode]: Could not determine module name for artifact jar:file:/C:/Users/falappa/.m2/repository/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar!/
> {code}
> In NB11.0 and NB11.1-beta2 after rebuilding the project the dependencies node gets updated and a regular jar entry appears. In NB8.2 after rebuilding the project the yellow triangle badge disappears.
> I had a look at the code and it looks like something got broken when adding modular Java support, i.e. in NB 9.0, as the code is trying to determine Java module names for each dependency.
> This is a regression, NetBeans 8.2 works, NetBeans 11.0 and NetBeans 11.1-beta2 do not, NetBeans 9.0 and 10.0 not tested.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists