build.gradle - Gradle mavenDeployer fails while creating directory at wrong place -



build.gradle - Gradle mavenDeployer fails while creating directory at wrong place -

i have build.gradle script next section upload artifacts private release maven repo:

uploadarchives { repositories { mavendeployer { repository(url: "/opt/maven_repo/private-release") { pom.artifactid = archive } } } }

i run build on unix machine , user has write access directory /opt/maven_repo/private-release. however, task fails next output:

:uploadarchives uploading: company-name/artifact-name/relx.n/artifact-name-relx.n.jar repository remote @ /opt/maven_repo/private-release specified destination directory cannot created: /company-name/artifact-name/relx.n :uploadarchives failed failure: build failed exception. * went wrong: execution failed task ':uploadarchives'. > not publish configuration 'archives' > error deploying artifact 'artifact-name:jar': error deploying artifact: specified destination directory cannot created: /company-name/artifact-name/relx.n

p.s.: artifact placed in ~/.m2/repository , have feeling tries create directory in root catalog instead of specified repository directory

gradle build.gradle

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -