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:

<repositories>
	<repository>
            <id>org.eclipse.virgo.maven.repository.bundles.release</id>
            <name>Eclipse Virgo Bundles Maven Repository</name>
            <url>http://zodiac.springsource.com/maven/bundles/release</url>
        </repository>
        <repository>
            <id>org.eclipse.virgo.maven.repository.libraries.release</id>
            <name>Eclipse Virgo Libraries Maven Repository</name>
            <url>http://zodiac.springsource.com/maven/libraries/release</url>
        </repository>
</repositories>

 

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

 

你可能感兴趣的:(osgi,repository,SpringDM)