added maven central package deployment support

This commit is contained in:
Amit Kumar Nandi 2024-02-15 22:32:42 +05:30
parent d426b6140f
commit 051da0551a
2 changed files with 43 additions and 0 deletions

36
.m2/settings.xml Normal file
View file

@ -0,0 +1,36 @@
<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>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/aamitn/URLShortener</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>aamitn</username>
<password>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</password>
</server>
</servers>
</settings>

View file

@ -276,5 +276,12 @@
</profiles>
<distributionManagement>
<repository>
<id>github</id>
<name>shortener</name>
<url>https://maven.pkg.github.com/aamitn/URLShortener</url>
</repository>
</distributionManagement>
</project>