Gradle only publishes maven-metadata-remote.xml, not maven-metadata.xml

So one of my coworker is having a strange problem, when he runs “./gradlew installArchives” using the maven plugin, it deploys the JAR, POM and maven-metadata-remote.xml but not maven-metadata.xml. It works fine on my laptop so it seems like there is something different with his environment than mine but we can’t figure out what the difference is.

Here’s the installArchives task

apply plugin: 'maven'
task installArchives(type: Upload) {
    description "Deploy artifacts to local Maven repository."
    configuration = configurations['archives']
    repositories {
        mavenDeployer {
            repository url: LOCAL_REPO
            pom.artifactId = artifactId