Labs got its own maven repository now:
Add the repos to your project POM. Here’s an example for the release repository:
<repository>
<id>consol-labs-release</id>
<url>http://labs.consol.de/maven/repository/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>consol-labs-snapshots</id>
<url>http://labs.consol.de/maven/snapshots-repository/</url>
<snapshots>
<enabled>true</enabled> <!-- Policy: always, daily, interval:xxx (xxx=#minutes, 60*24*7=10080), never -->
<updatePolicy>interval:10080</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
Simply add this profile to your project, and activate it when deploying:
<profile>
<id>dist-labs</id>
<distributionManagement>
<repository>
<id>consol-labs-release</id>
<url>scpexe://labs.consol.de/home/maven-repository/www/htdocs/repository</url>
</repository>
<snapshotRepository>
<id>consol-labs-snapshots</id>
<url>scpexe://labs.consol.de/home/maven-repository/www/htdocs/snapshots-repository</url>
</snapshotRepository>
</distributionManagement>
</profile>
Additionally, you’ll have to modify your $HOME/.m2/settings.xml and configure the user for SSH deployment:
<server>
<id>consol-labs-release</id>
<username>maven-repository</username>
</server>
<server>
<id>consol-labs-snapshots</id>
<username>maven-repository</username>
</server>
Now you can simply deploy using Maven:
mvn clean install deploy -Pdist-labs
Note: We only support SSH transport for now, using SSH authorized keys.