Sunday, October 17, 2010

Maven and Spring Enterprise Bundle Repository (in settings.xml)

There is this very informative article about Maven and adding Spring dependencies to your project here.

But I was not able to add the repositories below to my pom.xml and be able to connect with Enterprise Bundle Repository (EBR). I had to add them to my /home/rhasija/.m2/settings.xml file:

  
    SpringSource Enterprise Bundle Repository – External Bundle Milestones
    http://repository.springsource.com/maven/bundles/milestone
  

  
    SpringSource Enterprise Bundle Repository – SpringSource Bundle Releases
    http://repository.springsource.com/maven/bundles/release
  

  
    SpringSource Enterprise Bundle Repository – External Bundle Releases
    http://repository.springsource.com/maven/bundles/external
  


I am sure I must have done something wrong, but I prefer them to be in settings.xml anyway, instead of adding the above mentioned repositories to every project of mine.

No comments:

Post a Comment

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