# Failed to deploy artifacts: Could not transfer artifact

**URL:** <https://community.sonatype.com/t/failed-to-deploy-artifacts-could-not-transfer-artifact/11017>\
**Category:** Sonatype Nexus Repository\
**Created:** [July 25, 2023, 3:00pm UTC](https://community.sonatype.com/t/failed-to-deploy-artifacts-could-not-transfer-artifact/11017 "2023-07-25T15:00:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin.pataky](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@kevin.pataky](https://community.sonatype.com/u/kevin.pataky)\
**Post date:** [July 25, 2023, 3:00pm UTC](https://community.sonatype.com/t/failed-to-deploy-artifacts-could-not-transfer-artifact/11017/1 "2023-07-25T15:00:41Z")

</div>

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](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](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](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](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.

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [July 31, 2023, 5:38pm UTC](https://community.sonatype.com/t/failed-to-deploy-artifacts-could-not-transfer-artifact/11017/2 "2023-07-31T17:38:12Z")

</div>

> [@kevin.pataky](#):
>
> Unsupported or unrecognized SSL message

Are you sure that https is correct?

---

<div class="post-metadata">

**Author:** ![kevin.pataky](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@kevin.pataky](https://community.sonatype.com/u/kevin.pataky)\
**Post date:** [August 9, 2023, 7:00pm UTC](https://community.sonatype.com/t/failed-to-deploy-artifacts-could-not-transfer-artifact/11017/3 "2023-08-09T19:00:39Z")

</div>

yes they are right
