Spring DM 中bundle和 library仓库

query site: http://ebr.springsource.com/repository/app/

How do I configure a Maven build to work with the repository?

The bundle repository makes its artefacts available in a suitable format for use with Maven. First define the SpringSource Bundle Repository to Maven as follows:

<repository> <id>com.springsource.repository.bundles.release</id> <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name> <url>http://repository.springsource.com/maven/bundles/release</url> </repository> <repository> <id>com.springsource.repository.bundles.external</id> <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name> <url>http://repository.springsource.com/maven/bundles/external</url> </repository>

If you are using library definitions with the SpringSource dm Server you will need to add the following:

<repository> <id>com.springsource.repository.libraries.release</id> <name>SpringSource Enterprise Bundle Repository - SpringSource Library Releases</name> <url>http://repository.springsource.com/maven/libraries/release</url> </repository> <repository> <id>com.springsource.repository.libraries.external</id> <name>SpringSource Enterprise Bundle Repository - External Library Releases</name> <url>http://repository.springsource.com/maven/libraries/external</url> </repository>

With the repositories configured, adding a dependency to a project is a simple matter of including the maven snippet displayed on the details page of each bundle when using the SpringSource repository browser. For example:

<dependency> <groupId>org.springframework</groupId> <artifactId>org.springframework.core</artifactId> <version>2.5.4.A</version> </dependency>

 

 

Virgo repository:

 

Xml代码   收藏代码
  1. <repositories>  
  2.     <repository>  
  3.             <id>org.eclipse.virgo.maven.repository.bundles.release</id>  
  4.             <name>Eclipse Virgo Bundles Maven Repository</name>  
  5.             <url>http://zodiac.springsource.com/maven/bundles/release</url>  
  6.         </repository>  
  7.         <repository>  
  8.             <id>org.eclipse.virgo.maven.repository.libraries.release</id>  
  9.             <name>Eclipse Virgo Libraries Maven Repository</name>  
  10.             <url>http://zodiac.springsource.com/maven/libraries/release</url>  
  11.         </repository>  
  12. </repositories>  

 

参考:http://ebr.springsource.com/repository/app/faq#q8

你可能感兴趣的:(spring,Bundle,osgi)