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
Post a Comment