For example, you can have a mvn-repo
project created.
For example, into ~/workspace/mvn-repo
folder
In order to do this, you will need to have the following snippet in your pom.xml
file
<distributionManagement>
<repository>
<id>internal.repo</id>
<name>Github Repo</name>
<url>file:///path/to/mvn-repo</url>
</repository>
</distributionManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file:///path/to/mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
If you already have a <distributionManagement>
tag in you pom.xml
file, you might want to comment that out for the moment.
mvn clean deploy
git commit -m "Added org.openjdk.jmh"
git push
<repositories>
<repository>
<id>nealxyc-github-repo</id>
<url>https://raw.githubusercontent.com/nealxyc/mvn-repo/master/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>