I am building a zip and deploying to a Nexus repo spec’d with mavenDeployer.
I expect the zip to be copied to something like:
http://mynexus:8081/nexus/content/repositories/snapshots/group/product-win/version-SNAPSHOT/product-win-version-20160602.zip
and instead it’s copied to
http://mynexus:8081/nexus/content/repositories/snapshots/upload/product-win/version-SNAPSHOT/product-win-version-20160602.225249-2.zip
Two questions:
(1) Why is ‘upload’ substituted for group in the path? I assume it’s something to do with the mavenDeployer, but I can’t find any info online about it.
(2) Why is the 225249-2 added to the filename? Is the filename pattern configurable?
For reference, my script’s uploadArchives and the tasks that feed them look pretty much like this:
zipTask(type: Zip) { /* creates zip where I expect, containing what I expect */ }
artifacts { archives zipTask }
uploadArchives() {
repositories {
mavenDeployer {
repository(url: ‘http://mynexus:8081/nexus/content/repositories/snapshots’) {
authentication(userName: userStringVar, password: passwordStringVar)
}
pom.version = project.version
pom.artifactId = artifactId
pom.groupId = project.group
}
}
}
where project.version = ‘version’ (actually, 6.0.99-SNAPSHOT), artifactId = ‘product-win’, and project.group = ‘group’ (actually, com.).
I welcome answers to these two questions, particularly (1), thanks in advance for thinking about it!