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?