Development With Splitcells Network

## Public Dependency Repository

Normally, one does normally build the complete system byself, but there is a public m2 repository containing snapshot builds. Keep in mind and check their dates as these are not always up to date.

The repository can be looked up at GitHub. In order to use these snapshots, one has to extend ones local ~/.m2/settings.xml for Maven. A working example can be found here:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- These Maven settings are used, in order to test, if packages can be downloaded from GitHub. -->
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<!-- Prioritize GitHub repo via repository order, in order to avoid error caused by not finding dependency in Maven Central. -->
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/www-splitcells-net/net.splitcells.network</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
</repositories>
</profile>
</profiles>
</settings>


Provided your local terminal's current folder is the folder of this project, one can use the example via the following command: mvn --settings src/main/xml-pom/net/splitcells/network/build-with-github-snapshot.pom.xml verify.

The simplest way to start, is to add the following dependency:

<dependencies>
<dependency>
<groupId>net.splitcells</groupId>
<artifactId>system</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>


If you don't have a Maven parent POM and are looking into using one, instead of defining some defaults on your own, you might want to use the following parent. It enforces the used Java version etc.

<parent>
<groupId>net.splitcells</groupId>
<artifactId>pom-java-defaults</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath/>
</parent>