0

I am working on a Netbeans Maven Java Application in Netbeans. not able to build a java swing application. Dependency are not downloading in .m2 folder.

enter image description here

karthi N
  • 21
  • 8
  • 1
    It looks like NetBeans is trying to download from the Maven central repository using `http`. It needs to use `https` as [documented here](https://blog.sonatype.com/central-repository-moving-to-https). The easiest way to fix this is to upgrade your version of NetBeans, because that will come bundled with an upgraded version of Maven which does not have this issue. – andrewJames May 14 '22 at 13:23
  • 1
    If you cannot upgrade NetBeans, then try upgrading the version of Maven used by your current version of NetBeans. See [this answer](https://stackoverflow.com/a/69200638/12567365) for details. If that still does not help, then we ned more information. – andrewJames May 14 '22 at 13:23

1 Answers1

1

.enter image description here

Add the above code in the setting.xml file (C:\Users\PC.m2\settings.xml)

karthi N
  • 21
  • 8