maven publishes jar files to the server synchronously

In the pom.xml file under the project, first add the service address
<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>Local Nexus Repository</name>
<url>http://192.168.2.8:8 /nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>Local Nexus Repository</name>
<url>http://192.168.2.8 :8/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

Open the source file directory of the pom.xml file; shirt+right click to open cmd and enter mvn deploy

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326415341&siteId=291194637