Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.76 KB

maven_setup.md

File metadata and controls

57 lines (48 loc) · 1.76 KB

How to setup Maven

In order to get the KPotpourri artifacts, you need to add the custom bintray repository, as KPotpourri is not (yet) hosted on Maven Central.

Configure the repository

Add the following to your settings.xml:

<?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-christophpickl-cpickl</id>
                    <name>bintray</name>
                    <url>http://dl.bintray.com/christophpickl/cpickl</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-christophpickl-cpickl</id>
                    <name>bintray-plugins</name>
                    <url>http://dl.bintray.com/christophpickl/cpickl</url>
                </pluginRepository>
            </pluginRepositories>
            <id>bintray</id>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>bintray</activeProfile>
    </activeProfiles>
</settings>

Add the dependency

And then the proper Maven dependency to your pom.xml:

<dependency>
    <groupId>com.github.christophpickl.kpotpourri</groupId>
    <artifactId>common4k</artifactId>
    <version>1.x</version>
</dependency>