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

Regression : Maven dependencies are not always refreshed

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 12.0
    • None
    • projects - Maven
    • None
    • Reproduced on 2 platforms :
      Windows 8.1, Java 11, Maven 3.3.9
      Ubuntu 20.04, Java 11, Maven 3.3.9

    Description

      With a Maven project, if you define a dependency version in a property of a parent module, changing this property in the parent module does not update the dependencies in the GUI of the submodule. You need to restart Netbeans for this change to be visible.

      It was working fine in Netbeans 11.0.

      Steps to reproduce :

      • clone the test-case I uploaded on https://gitlab.com/mossroy/test-case-netbeans-maven-dependency-versions
      • open it and build it with Netbeans 12
      • in the "projects" tab of Netbeans, open the child module, and see the "dependencies" : there should be spring-core-5.2.8.RELEASE
      • in the pom.xml of the parent module, change the spring.version property to 5.2.7.RELEASE
      • in the child module, in "dependencies", 5.2.8.RELEASE is still displayed. It should have been changed to 5.2.7.RELEASE

      If the property is moved in the child module, it works fine.

      Workaround : restart NetBeans. Reloading the project is unfortunately not enough.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mossroy Mossroy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment