User Tools

Site Tools


beewm:devel:maven_repository_in_the_project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
devel:maven_repository_in_the_project [2013/04/09 15:35] – created admindevel:maven_repository_in_the_project [2013/08/19 14:39] (current) epujadas
Line 1: Line 1:
-==== Maven Repository in the Project ====+===== 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: 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:
-  Add a lib directory in the project root +  Add a lib directory in the project root 
-  Install a repository with maven in this lib directory:+  Install a repository with maven in this lib directory:
 <file> <file>
-_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_+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
 </file> </file>
  
-  Add a repository in the pom.xml:+  Add a repository in the pom.xml:
 <file> <file>
-    _\<repositories\>+    \<repositories\>
  \<repository\>  \<repository\>
      \<id\>ProjectRepo\</id\>      \<id\>ProjectRepo\</id\>
Line 16: Line 17:
      \<url\>file://${project.basedir}/lib\</url\>      \<url\>file://${project.basedir}/lib\</url\>
         \</repository\>          \</repository\> 
-    \</repositories\>_+    \</repositories\>
 </file> </file>
  
-  Add the dependency:+  Add the dependency:
 <file> <file>
-    _\<dependency\>+    \<dependency\>
         \<groupId\>ch.ethz.ganymed\</groupId\>         \<groupId\>ch.ethz.ganymed\</groupId\>
  \<artifactId\>ganymed-ssh2\</artifactId\>  \<artifactId\>ganymed-ssh2\</artifactId\>
  \<version\>build250\</version\>  \<version\>build250\</version\>
-    \</dependency\>_+    \</dependency\>
 </file> </file>
  
 +=== CISD Data Store Server (DSS) client ===
 +  * Install a repository with maven in the project's ''lib'' directory:
 +<file>
 +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
 +</file>
 +
 +  * Add a repository in the ''pom.xml'':
 +<file>
 +<repositories>
 + <repository>
 + <id>ProjectRepo</id>
 + <name>ProjectRepo</name>
 + <url>file://${project.basedir}/lib</url>
 + </repository>
 +</repositories>
 +</file>
 +
 +  * Add the dependency in the ''pom.xml'':
 +<file>
 +<dependency>
 + <groupId>ch.systemsx.cisd</groupId>
 + <artifactId>dss_client</artifactId>
 + <version>13.04.4-r29608</version>
 +</dependency>
 +</file>
beewm/devel/maven_repository_in_the_project.1365514523.txt.gz · Last modified: 2013/04/09 15:35 by admin