# Weird gradle behaviour

**URL:** <https://community.sonatype.com/t/weird-gradle-behaviour/5587>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository, maven, gradle\
**Created:** [December 17, 2020, 11:50am UTC](https://community.sonatype.com/t/weird-gradle-behaviour/5587 "2020-12-17T11:50:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neil.richards](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@neil.richards](https://community.sonatype.com/u/neil.richards)\
**Post date:** [December 17, 2020, 11:50am UTC](https://community.sonatype.com/t/weird-gradle-behaviour/5587/1 "2020-12-17T11:50:19Z")

</div>

When executing a task to deploy a specific jar from a nexus maven repository it works from one version but not another.

The only difference seems to be a v at the start of one.

Both resolve in the browser.

Working!!! from this command gradle deployJar “-Dorg.gradle.java.home=$env:JAVA\_HOME” “-PprojectVersion=2.0” --info --stacktrace

Not working from this command: gradle deployJar “-Dorg.gradle.java.home=$env:JAVA\_HOME” “-PprojectVersion=v0.0.28” --info --stacktrace

On error it gives me the following to stdout:

> Task :deployJar FAILED

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:deployJar’.

> Could not resolve all files for configuration ‘:searchjar’.  
> Could not find project-search.jar (project :).
