Search code examples
mavenrepositoryuploading

How to upload custom jars to Maven repository


I have a custom jar named core-ui-1.0.jar which is based on Spring. I used http://download.java.net/maven/2/ repository to download spring jars to compile my java files inside core-ui-1.0.jar. Now my core-ui-1.0.jar is ready to release

Can someone help me how can I release my core-ui jar to http ://download.java.net/maven/2/ so that any person can download it from maven 2 repository the way we download spring, hibernate jars etc.

Please let me know if I have the right to upload anything to http://download.java.net/maven/2/ or am I thinking in wrong direction.

Thanks in advance.


Solution

  • You need to create a release. I suggest using the maven-release-plugin if you're build is based on maven.

    To have your artifacts available in maven central follow the instructions here: