DEV Community

Discussion on: GitHub Actions, Maven & Artifactory

Collapse
 
khmarbaise profile image
Karl Heinz Marbaise

Is there a good reason why you defined the repositories via a profile in your pom file and not within settings.xml ?

Collapse
 
anthonyikeda profile image
Anthony Ikeda

For this article the profile was a write once and forget, also I was able to isolate the profile while testing locally from may main configuration.

You can place the profile in the settings.xml file using the whelk-io/maven-settings-xml-action@v11 plugin, however, the different touchpoints of credentials and mappings (between the pom.xml, settings.xml and main.yml build file) just made it easier putting the profile in the pom.xml.