Sunday, October 17, 2010

Maven: Add JBoss Maven repository as your alternate remote repository.

Hibernate publishes its artifacts to the JBoss Maven Repository under the org.hibernate groupId/namespace. To setup Maven to access JBoss Maven Repository follow the steps here. This will add the JBoss Maven Repository as an additional repository along with central maven repository.


#1. Create a file named 'settings.xml' in the '.m2' directory under your home directory. For me it is: /home/rhasija/.m2

And add the following content to it:

 


  
    

      jboss-public-repository
              
        
          jboss-public-repository-group
          JBoss Public Maven Repository Group
          https://repository.jboss.org/nexus/content/groups/public-jboss/
          default
          
            true
            never
          
          
            true
            never
          
        
      

      
        
          jboss-public-repository-group
          JBoss Public Maven Repository Group
          https://repository.jboss.org/nexus/content/groups/public-jboss/
          default
          
            true
            never
          
          
            true
            never
          
        
      

    
  

  
    jboss-public-repository
  

No comments:

Post a Comment

Your comments are welcome. It will help me improve my communication and content...plus it will encourage me! :-)