I create a GitHub Repository(Private) and wanted to Use it as a Maven Dependency for Some Other Projects (Private). Accordingly I have tried out following approaches in the internet and still I could able to import the maven dependencies on the Other projects.
I have tried out these following approaches
https://gist.github.com/fernandezpablo85/03cf8b0cd2e7d8527063 through building a branch, which contains jar and linking the branch raw.githubusercontent.com as the repo url.
http://www.lordofthejars.com/2011/09/questa-di-marinella-e-la-storia-vera.html
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html (same as Step 1)
https://github.com/jitpack/maven-simple I tried linking with JITPACK and Tried but still it doesn't work.
This is based on Reference 5,
In my pom.xml file the project which I am going to use repository, I have added dependency as follows, ant it was able to update maven indices and able to download related pom.xml file for CMD.
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.Amutheezan</groupId>
<artifactId>CMD</artifactId>
<version>v1.0ALPHA2</version>
</dependency>
NOTE : - I place of version, I have tried recently released version, latest commit's value and 1.0-SNAPSHOT.
Still I couldn't able to import in either way.
import com.abc.CMD.*
or
import com.abc.*
Can help me out where I am making mistake ?