Closed girishaiocdawacs closed 3 years ago
cat ~/.m2/settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>github</id>
<name>GitHub Maven Packages</name>
<url>https://maven.pkg.github.com/girishaiocdawacs</url>
</repository>
<!-- workaround fix is -->
<!-- https://github.com/girishaiocdawacs/smart-pharmacy-event-management/issues/1 -->
<repository>
<id>github</id>
<name>GitHub Maven Packages</name>
<url>https://maven.pkg.github.com/girishaiocdawacs/smart-pharmacy-event-management</url>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_USERNAME}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
Mind. URL changed From
To
Module - smart-pharmacy-evevnt-management (java artifact uploaded to github package https://maven.pkg.github.com/girishaiocdawacs/smart-pharmacy-event-management/)
Module - smart pharmacy product service expected to look here -
Failing product service so embedding code for pubsub into the product service directly now.
Issue with maven oss is the url mismatch. Uploading artifact package is working fine however, Downloading from github is messing up with url. This is the maven deploy command.
REPO="gh::default::https://maven.pkg.github.com/girishaiocdawacs/" mvn -B clean deploy -DaltReleaseDeploymentRepository="${REPO}" -DaltSnapshotDeploymentRepository="${REPO}"