I have installed Nexus Sonatype on a Linux server and it is up ad running. I am trying to deploy a jar file for our project from my workstation to that remote server The jar file is shareware obtained from the internet and I am trying to deploy it to the maven-releases repository on the remote server but its not going so well.
This is the command I am trying to execute:
mvn deploy:deploy-file -Durl=https://192.168.200.40:8081/repository/maven-releases -Dfile=commons-codec-1.15.jar -DgroupId=org.apache.commons -DartifactId=commons-codec -Dpackaging=jar -Dversion=1.15 -DrepositoryId=maven-releases
This is the result:
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] — deploy:3.1.0:deploy-file (default-cli) @ standalone-pom —
Uploading to maven-releases: https://192.168.200.40:8081/repository/maven-releases/org/apache/commons/commons-codec/1.15/commons-codec-1.15.jar
Uploading to maven-releases: https://192.168.200.40:8081/repository/maven-releases/org/apache/commons/commons-codec/1.15/commons-codec-1.15.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.477 s
[INFO] Finished at: 2023-07-25T10:31:48-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.1.0:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact org.apache.commons:commons-codec:jar:1.15 from/to maven-releases (https://192.168.200.40:8081/repository/maven-releases): Unsupported or unrecognized SSL message → [Help 1]
This is my settings.xml file with password replaced with stars:
<localRepository>${user.home}/.m2/repository</localRepository>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers>
<server>
<id>maven-releases</id>
<username>admin</username>
<password>*********</password>
</server>
<server>
<id>maven-snapshots</id>
<username>admin</username>
<password>*********</password>
</server>
</servers>
<mirrors/>
<proxies/>
<profiles/>
<activeProfiles/>
Can anyone help me get this to work??? Thanks.