User Tools

Site Tools


beewm:devel:maven_repository_in_the_project

This is an old revision of the document!


Maven Repository in the Project

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\>_
beewm/devel/maven_repository_in_the_project.1365514523.txt.gz ยท Last modified: 2013/04/09 15:35 by admin