Skip to content

NitorCreations/maven-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Publishing artifacts in this repository

This repo is based on this article with the addition of generating indexes.

Required steps

  1. Check out this repository into a directory that you will have to specify when you deploy

     $ git clone git@github.com:NitorCreations/maven-repository.git
    
  2. Deploy your artifact with the checked out repo as altDeploymentRepository

     $ cd your-project; mvn -DaltDeploymentRepository=releases::default::file:../maven-repository/releases clean deploy
    
  3. Regenerate the index

     $ cd ../maven-repository/.index; mvn install; mvn clean
    
  4. Git-add new stuff and commit

     $ cd ..; git add .; git commit -m "Added vX.Y of your-project"; git push
    

Adding to maven settings

Add the following section under /settings/profiles/profile/repositories in your .m2/settings.xml

    <repository>
      <id>nitor-github</id>
      <url>https://raw.github.com/NitorCreations/maven-repository/master/releases</url>
    </repository>

About

Nitor Creations Maven repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published