What is the difference between maven and mavenDeployer in uploadArchives repositories?

If I use this:

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "file://localhost/tmp/myRepo/")
        }
    }
}

I get what looks like a valid maven repository, complete with pom and jar and sha1 and md5 files.

But if I use

uploadArchives {
    repositories {
        maven {
            url "file://localhost/tmp/myRepoB/"
        }
    }
}

I get what looks like a maven repository directory structure, but inside is just the jar and an ivy xml file.

I guess the first is the correct way to get a maven style repository, but the output of the second, a “mavy repository” just seems confusing.

Should a “maven” repository be the same as a “mavenDeployer” repository?

thakns Philip

Apparently, the latter treats a Maven repository as if it was an Ivy repository. It might not be an intentional feature. In short, just use the former, which is also what you’ll find in the documentation.