<repositories>
<repository>
<id>floreysoft-releases</id>
<url>https://github.com/floreysoft/maven-repo/raw/master/releases</url>
</repository>
<repository>
<id>floreysoft-snapshots</id>
<url>https://github.com/floreysoft/maven-repo/raw/master/snapshots</url>
</repository>
<repositories>
-
Clone the maven-repo project on the same folder level of this project.
-
Run yarn deploy on the module you want to publish. This will deploy to the maven-repo only on local machine. Changes will still be pending.
-
Deploy to local maven-repo with -SNAPSHOT appended to project version
-
Push changes to github.
-
Remove the -SNAPSHOT tail from project version
-
Tag and commit the code
-
Deploy to local maven-repo
-
Push changes to github
mvn install:install-file -Dfile=path-to-jar -DgroupId=group-id -DartifactId=artifact-id -Dversion=version -Dpackaging=jar -DlocalRepositoryPath=maven-repo/releases
https://cemerick.com/2010/08/24/hosting-maven-repos-on-github/