In Artifactory, when a JAR file is deployed via Artifactory’s UI, our code examines the META-INF/maven/ directory and uses the first pom.xml file that it finds in that directory.
Typically, this will be the POM file of the JAR that is being deployed, which will provide the correct Maven GAV information.
However, we have encountered some JARs in which POM files from dependencies are found instead.
This can result in the deployment dialogue being populated with incorrect GAV information, which was pulled from the first POM file that Artifactory found.
Should this occur, so the correct Maven GAV information is being used, you may need to alter either the Target Path field or the individual fields under Deploy as Maven Artifact.
Note: If you tick the Deploy Internal JAR and Generate Default POM checkboxes, the information that will be populated will also be incorrect and will need to be replaced (manually or automatically) with that from the correct pom.xml.