Remote repository in maven

Maven remote repository is a repository on a web server. A remote repository can be located anywhere on the internet or inside a local network. We can configure a remote repository in the POM file. We have to put the following XML elements right after theĀ element:

<repositories>
   <repository>
       <id>w3schools.code</id>
       <url>https://maven.w3schools.com/maven2/lib</url>
   </repository>
</repositories>