1. Copy the maven repository currently in use
Note: It is best to compress and copy directly to the intranet computer, because some plug-ins need to be downloaded
2. Copy the maven warehouse to the intranet environment
Directory: D:/repository
3. Maven warehouse configuration
1> Set the local maven warehouse address
<localRepository>D:/repository</localRepository>
2> Set up local mirroring
<mirror>
<id>central</id>
<name>central</name>
<!-- Set the mirror address to the local maven address-->
<url>file://D:/repository</url>
<mirrorOf>*</mirrorOf>
</mirror>
4. pom warehouse settings
<distributionManagement>
<!-- Temporary until we have a need to publish to a remote release repository -->
<snapshotRepository>
<id>central</id>
<name>central</name>
<url>file://D:/repository</url>
</snapshotRepository>
</distributionManagement>