'visual studio spring boot Non-resolvable parent POM behind company proxy

I am new to visual studio trying to run spring boot demo application from visual studio tried this link https://code.visualstudio.com/docs/java/java-spring-boot followed same step but getting this error in pom.xml enter image description here

Added proxy entry also in maven setting.xml, since working behind organization proxy

<proxy>
  <active>true</active>
  <host>companyproxy.apac.nsn-net.net</host>
  <port>8080</port>
</proxy>

when directly run DemoApplication.java getting main class not found error enter image description here and also CodeLens not showing for spring main class , where as if you have simple java application it shows run|debug



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source