I’m deploying snapshot JARs built with Gradle to my local Maven repository via ./gradlew publishToMavenLocal. This creates a time-stamped JAR and POM in my repo as expected.
But when building a Maven project depending on this snaphot, Maven will still retrieve the JAR from the configured remote repositories (as e.g. given in settings.xml). I’m assuming that Maven finds out that this JAR doesn’t originate from any of the known remote repositories and thus needs to be fetched again. Is there any way to make Maven work with the snapshot installed by Gradle instead?