I have just downloaded and launched nexus community and following the course “Sonatype Nexus Repository Demo Installation and Usage”.
On local machine, I updated the settings.mxl for maven as indicated, then I create pom.xml inside the folder maven-demo then I run
mvn clean package
Everything works fine as expected when I browse to the repo in the UI I see the demo proxy repo has been populated.
However, I do the same thing from my desktop, run the same mvn command, nothing happens in the repo and in the terminal I dont see any download activities as follows:
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.example:nexus-demo >-----------------------
[INFO] Building nexus-demo 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ nexus-demo ---
[INFO] Deleting C:\Projects\Nexus\maven-demo\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ nexus-demo ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Projects\Nexus\maven-demo\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ nexus-demo ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ nexus-demo ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Projects\Nexus\maven-demo\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ nexus-demo ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ nexus-demo ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ nexus-demo ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: C:\Projects\Nexus\maven-demo\target\nexus-demo-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.131 s
[INFO] Finished at: 2025-02-19T17:15:27+01:00
[INFO] ------------------------------------------------------------------------
However, on the machine itself the ouput is
E:\Nexus-Exercises\maven-demo>mvn clean package
[INFO] Scanning for projects…
[INFO]
[INFO] -----------------------< com.example:nexus-demo >-----------------------
[INFO] Building nexus-demo 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-clean-plugin/3.2.0/maven-clean-plugin-3.2.0.pom
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-clean-plugin/3.2.0/maven-clean-plugin-3.2.0.pom (5.3 kB at 1.3 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-plugins/35/maven-plugins-35.pom
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-plugins/35/maven-plugins-35.pom (9.9 kB at 40 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/maven-parent/35/maven-parent-35.pom
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/maven-parent/35/maven-parent-35.pom (45 kB at 176 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/apache/25/apache-25.pom
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/apache/25/apache-25.pom (21 kB at 57 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-clean-plugin/3.2.0/maven-clean-plugin-3.2.0.jar
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-clean-plugin/3.2.0/maven-clean-plugin-3.2.0.jar (36 kB at 40 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-resources-plugin/3.3.1/maven-resources-plugin-3.3.1.pom
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-resources-plugin/3.3.1/maven-resources-plugin-3.3.1.pom (8.2 kB at 20 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-plugins/39/maven-plugins-39.pom
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-plugins/39/maven-plugins-39.pom (8.1 kB at 35 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/maven-parent/39/maven-parent-39.pom
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/maven-parent/39/maven-parent-39.pom (48 kB at 154 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/apache/29/apache-29.pom
Downloaded from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/apache/29/apache-29.pom (21 kB at 96 kB/s)
Downloading from nexus: http://localhost:8081/repository/maven-proxy-demo/org/apache/maven/plugins/maven-resources-plugin/3.3.1/maven-resources-plugin-3.3.1.jar…
…
…
…