User Tools

Site Tools


beewm:devel:maven_repository_in_the_project

This is an old revision of the document!


Maven Repository in the Project

Ganymed SSH library

We need the ganymed ssh library for the LSF submission over ssh. Unfortunately I couldn't find a public maven repository which contains this. After looking for solution for including library in a maven project and reading the suggestions i decided to use the following solution:

  1. Add a lib directory in the project root
  2. Install a repository with maven in this lib directory:
mvn install:install-file -Dfile=../ibrain2/libraries/ganymed-ssh2/ganymed-ssh2.jar -DgroupId=ch.ethz.ganymed -DartifactId=ganymed-ssh2 -Dversion=build250 -Dpackaging=jar -DlocalRepositoryPath=lib -DcreateChecksum=true
  1. Add a repository in the pom.xml:
    \<repositories\>
	\<repository\>
	    \<id\>ProjectRepo\</id\>
	    \<name\>ProjectRepo\</name\>
	    \<url\>file://${project.basedir}/lib\</url\>
        \</repository\> 
    \</repositories\>
  1. Add the dependency:
    \<dependency\>
        \<groupId\>ch.ethz.ganymed\</groupId\>
	\<artifactId\>ganymed-ssh2\</artifactId\>
	\<version\>build250\</version\>
    \</dependency\>

CISD Data Store Server (DSS) client

  • Install a repository with maven in the project's lib directory:
mvn install:install-file -Dfile=../../../data/openBIS/releases/openBIS-clients-and-APIs-13.04.4-r29608/dss_client-13.04.4-r29608/dss_client/lib/dss_client.jar -DgroupId=ch.systemsx.cisd -DartifactId=dss_client -Dversion=13.04.4-r29608 -Dpackaging=jar -DlocalRepositoryPath=lib -DcreateChecksum=true
  • Add a repository in the pom.xml:
<repositories>
	<repository>
		<id>ProjectRepo</id>
		<name>ProjectRepo</name>
		<url>file://${project.basedir}/lib</url>
	</repository>
</repositories>
  • Add the dependency:
<dependency>
	<groupId>ch.systemsx.cisd</groupId>
	<artifactId>dss_client</artifactId>
	<version>13.04.4-r29608</version>
</dependency>
beewm/devel/maven_repository_in_the_project.1376915889.txt.gz ยท Last modified: 2013/08/19 14:38 (external edit)