# Maven Deploy Error 417 Expectation Failed

**URL:** <https://community.sonatype.com/t/maven-deploy-error-417-expectation-failed/1381>\
**Category:** Sonatype Nexus Repository\
**Created:** [February 28, 2019, 1:49pm UTC](https://community.sonatype.com/t/maven-deploy-error-417-expectation-failed/1381 "2019-02-28T13:49:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas.vogel](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@andreas.vogel](https://community.sonatype.com/u/andreas.vogel)\
**Post date:** [February 28, 2019, 1:49pm UTC](https://community.sonatype.com/t/maven-deploy-error-417-expectation-failed/1381/1 "2019-02-28T13:49:54Z")

</div>

Hello,

I’m trying to set up a Nexus OSS Repository for the first time with Nexus 3.15.2 on a Windows Server 2012 and Maven 3.5.3. So far, I’m able to build a few sample projects and manually upload them to Nexus. I’m using the preconfigured maven-public repositories. Dependencies both in the maven-central and the hosted maven-release repository are found.

However, when I’m trying to deploy an artifact using the mvn deploy command, I get the error (abstracted host and classpath)  
`Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project Lizenz: Failed to deploy artifacts: Could not transfer artifact <jar-name> from/to nexus (http://<host-ip>:8081/repository/maven-releases): Failed to transfer file: http://<host-ip>:8081/repository/maven-releases/<classpath>. Return code is: 417, ReasonPhrase: Expectation Failed.`

As I understand it, this is a http error code, so apparently the data transfer between Maven and Nexus isn’t working. But I don’t know what could cause this error. Is it a problem with Nexus or rather with Maven?

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [February 28, 2019, 3:59pm UTC](https://community.sonatype.com/t/maven-deploy-error-417-expectation-failed/1381/2 "2019-02-28T15:59:02Z")

</div>

A guess… is Apache running in front of Nexus?

[https://stackoverflow.com/questions/3889574/apache-and-mod-proxy-not-handling-http-100-continue-from-client-http-417/4328508#4328508](https://stackoverflow.com/questions/3889574/apache-and-mod-proxy-not-handling-http-100-continue-from-client-http-417/4328508#4328508)

---

<div class="post-metadata">

**Author:** ![andreas.vogel](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@andreas.vogel](https://community.sonatype.com/u/andreas.vogel)\
**Post date:** [March 4, 2019, 7:23am UTC](https://community.sonatype.com/t/maven-deploy-error-417-expectation-failed/1381/3 "2019-03-04T07:23:14Z")

</div>

So this would be a problem with the proxy? Unfortunately our local IT doesn’t have any control over our proxy, it’s administered somewhere else. We’re trying to figure out what we can do about it. Thanks for your suggestion.
