-
Notifications
You must be signed in to change notification settings - Fork 4
Maven repositories
Szymon Tarnowski edited this page Sep 2, 2020
·
2 revisions
Project besides the central maven repository is also published in the Bintray repository. To download dependencies it is required to add information about the repository in "pom.xml" file. The project is also available from other repositories.
<project>
...
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-starnowski-bmunit-extension</id>
<name>bintray</name>
<url>https://dl.bintray.com/starnowski/bmunit-extension</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-starnowski-bmunit-extension</id>
<name>bintray-plugins</name>
<url>https://dl.bintray.com/starnowski/bmunit-extension</url>
</pluginRepository>
</pluginRepositories>
...
</project>
Or add this information in maven "settings.xml" file.
<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-starnowski-bmunit-extension</id>
<name>bintray</name>
<url>https://dl.bintray.com/starnowski/bmunit-extension</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-starnowski-bmunit-extension</id>
<name>bintray-plugins</name>
<url>https://dl.bintray.com/starnowski/bmunit-extension</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>bintray</activeProfile>
</activeProfiles>
</settings>
Project is also published in jcenter repository. To use it you have to attach repository in project descriptor or the maven settings.
<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray-plugins</name>
<url>https://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>bintray</activeProfile>
</activeProfiles>
</settings>