I'm trying to produce a Maven-compatible artefact using bazel. I noticed that mvn puts some files inside META-INF directory in JAR archive (file.jar/META-INF/maven/groupId/artifactId/pom.xml and file.jar/META-INF/maven/groupId/artifactId/pom.properties)
Questions:
- Are they needed to be able to successfully depend on my artifact from another project? I know you can disable them via a config option in
pom.xmlref, which leads me to believe that you don't. - Are they used by
mvnin any case whatsoever? - Can I use
pom.xmlinside on the JAR instead ofpom.xmlnear my artifact in Maven repo?