Hello all–
I’ve been having a problem deploying (“mvn deploy”) to the OpenMRS Maven repo, which I assume is due to the migration to jfrog? I assume I’ve just making a silly mistake in the configuration, but I can’t see where it is. I’m getting an authorization failure when I’ve got mavenrepo listed as the repo in the pom:
<snapshotRepository>
<id>openmrs-repo-snapshots</id>
<name>OpenMRS Snapshots</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
</snapshotRepository>
When I change it to jfrog, it works.
<snapshotRepository>
<id>snapshots</id>
<name>openmrs-snapshots</name>
<url>https://openmrs.jfrog.io/openmrs/snapshots</url>
</snapshotRepository>
I think I have my settings.xml configured right, though maybe there’s a silly typo (password redacted):
<?xml version="1.0" encoding="UTF-8"?><settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>mogoodrich</username>
<password></password>
<id>bintray-sdk</id>
</server>
<server>
<id>openmrs-repo</id>
<username>mogoodrich</username>
<password></password>
</server>
<server>
<id>openmrs-repo-modules</id>
<username>mogoodrich</username>
<password></password>
</server>
<server>
<id>openmrs-repo-snapshots</id>
<username>mogoodrich</username>
<password></password>
</server>
<server>
<id>central</id>
<username>mogoodrich</username>
<password></password>
</server>
<server>
<id>snapshots</id>
<username>mogoodrich</username>
<password></password>
</server>
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>public</name>
<url>https://openmrs.jfrog.io/openmrs/public</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>public</name>
<url>https://openmrs.jfrog.io/openmrs/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>public</name>
<url>https://openmrs.jfrog.io/openmrs/public</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>public</name>
<url>https://openmrs.jfrog.io/openmrs/public</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
<profile>
<properties>
<archetypeRepository>http://mavenrepo.openmrs.org/nexus/content/repositories/public</archetypeRepository>
<archetypeCatalog>http://mavenrepo.openmrs.org/nexus/content/repositories/public/archetype-catalog.xml</archetypeCatalog>
</properties>
<repositories>
<repository>
<id>openmrs-repo</id>
<name>OpenMRS Nexus Repository</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
</repository>
<repository>
<id>openmrs-repo-thirdparty</id>
<name>OpenMRS Thirdparty Nexus Repository</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty</url>
</repository>
<repository>
<snapshots />
<id>openmrs-repo-snapshots</id>
<name>OpenMRS Snapshots</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
</repository>
<repository>
<id>openmrs-bintray-repo</id>
<name>OpeMRS Maven Bintray Repository</name>
<url>https://dl.bintray.com/openmrs/maven/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>openmrs-repo</id>
<name>OpenMRS Nexus Repository</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
</pluginRepository>
<pluginRepository>
<id>openmrs-bintray-repo</id>
<name>OpeMRS Maven Bintray Repository</name>
<url>https://dl.bintray.com/openmrs/maven/</url>
</pluginRepository>
</pluginRepositories>
<id>openmrs</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
<activeProfile>openmrs</activeProfile>
</activeProfiles>
<pluginGroups>
<pluginGroup>org.openmrs.maven.plugins</pluginGroup>
</pluginGroups>
</settings>
Anyway see what I am missing?
I’m assuming the idea is that we should not have to change the pom’s of the modules to point directly to jfrog, but will be keeping the mavenrepo.openmrs.org alias?
Thanks! Mark