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

Both sides previous revisionPrevious revision
devel:maven_repository_in_the_project [2013/08/19 14:38] epujadasdevel:maven_repository_in_the_project [2013/08/19 14:39] (current) epujadas
Line 3: Line 3:
 === Ganymed SSH library === === 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\>
Line 20: Line 20:
 </file> </file>
  
-  Add the dependency:+  Add the dependency:
 <file> <file>
     \<dependency\>     \<dependency\>
Line 46: Line 46:
 </file> </file>
  
-  * Add the dependency:+  * Add the dependency in the ''pom.xml'':
 <file> <file>
 <dependency> <dependency>
beewm/devel/maven_repository_in_the_project.1376915889.txt.gz · Last modified: 2013/08/19 14:38 (external edit)