Skip to content

Commit 962a2d2

Browse files
committed
Remove system scope for rJava and Rserve dependencies
Add instructions in the README.md for how to install the JAR.
1 parent 0322de0 commit 962a2d2

3 files changed

Lines changed: 26 additions & 18 deletions

File tree

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# baseCode
2+
3+
Data structures, math and statistics tools, and utilities that are often needed across projects.
4+
5+
Used
6+
by [Gemma](https://github.com/PavlidisLab/Gemma), [ErmineJ](https://github.com/PavlidisLab/ermineJ), [GEOMMTx](https://github.com/PavlidisLab/GEOMMTx)
7+
and others.
8+
9+
## R integration
10+
11+
The R integration relies on native packages that needs to be installed in your local Maven repository in order to build
12+
baseCode.
13+
14+
[rJava](https://rforge.net/rJava/) is usually available as a system package or it can be installed from source or using
15+
`install.packages("rJava")` in R.
16+
17+
[Rserve](https://www.rforge.net/Rserve/) has to be installed from source with `install.packages("Rserve")`.
18+
19+
```bash
20+
# You may need to adjust the path depending on your system.
21+
mvn install:install-file -DgroupId=org.rosuda.REngine -DartifactId=REngine -Dversion=1.0-13 -Dpackaging=jar -Dfile=/usr/lib64/R/library/rJava/jri/REngine.jar
22+
mvn install:install-file -DgroupId=org.rosuda.REngine -DartifactId=JRI -Dversion=1.0-13 -Dpackaging=jar -Dfile=/usr/lib64/R/library/rJava/jri/JRI.jar
23+
mvn install:install-file -DgroupId=org.rosuda.REngine -DartifactId=JRIEngine -Dversion=1.0-13 -Dpackaging=jar -Dfile=/usr/lib64/R/library/rJava/jri/JRIEngine.jar
24+
mvn install:install-file -DgroupId=org.rosuda.REngine -DartifactId=Rserve -Dversion=1.8-14 -Dpackaging=jar -Dfile=/usr/lib64/R/library/Rserve/java/Rserve.jar
25+
```

README.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

pom.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,32 +122,24 @@
122122
<groupId>org.rosuda.REngine</groupId>
123123
<artifactId>REngine</artifactId>
124124
<version>${rJava.version}</version>
125-
<scope>system</scope>
126-
<systemPath>${rJava.REngine.jarPath}</systemPath>
127125
<optional>true</optional>
128126
</dependency>
129127
<dependency>
130128
<groupId>org.rosuda.REngine</groupId>
131129
<artifactId>Rserve</artifactId>
132130
<version>${rserve.version}</version>
133-
<scope>system</scope>
134-
<systemPath>${rserve.jarPath}</systemPath>
135131
<optional>true</optional>
136132
</dependency>
137133
<dependency>
138134
<groupId>org.rosuda.REngine</groupId>
139135
<artifactId>JRI</artifactId>
140136
<version>${rJava.version}</version>
141-
<scope>system</scope>
142-
<systemPath>${rJava.JRI.jarPath}</systemPath>
143137
<optional>true</optional>
144138
</dependency>
145139
<dependency>
146140
<groupId>org.rosuda.REngine</groupId>
147141
<artifactId>JRIEngine</artifactId>
148142
<version>${rJava.version}</version>
149-
<scope>system</scope>
150-
<systemPath>${rJava.JRIEngine.jarPath}</systemPath>
151143
<optional>true</optional>
152144
</dependency>
153145

@@ -693,12 +685,7 @@
693685
<!-- rJava -->
694686
<!-- You may override this in ~/.m2/settings.xml -->
695687
<rJava.version>1.0-13</rJava.version>
696-
<rJava.prefix>/usr/lib64/R/library/rJava</rJava.prefix>
697-
<rJava.libDir>${rJava.prefix}/jri</rJava.libDir>
698-
<rJava.REngine.jarPath>${rJava.prefix}/jri/REngine.jar</rJava.REngine.jarPath>
699-
<rJava.JRIEngine.jarPath>${rJava.prefix}/jri/JRIEngine.jar</rJava.JRIEngine.jarPath>
700-
<rJava.JRI.jarPath>${rJava.prefix}/jri/JRI.jar</rJava.JRI.jarPath>
688+
<rJava.libDir>/usr/lib64/R/library/rJava/jri</rJava.libDir>
701689
<rserve.version>1.8-14</rserve.version>
702-
<rserve.jarPath>/usr/lib64/R/library/Rserve/java/Rserve.jar</rserve.jarPath>
703690
</properties>
704691
</project>

0 commit comments

Comments
 (0)