Skip to content

Commit 07281bd

Browse files
committed
Merge branch 'hotfix-1.1.27'
2 parents cd69193 + 4bf352e commit 07281bd

6 files changed

Lines changed: 166 additions & 259 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: 49 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<name>baseCode</name>
66
<groupId>baseCode</groupId>
77
<artifactId>baseCode</artifactId>
8-
<version>1.1.26</version>
8+
<version>1.1.27</version>
99
<inceptionYear>2003</inceptionYear>
1010
<description>
1111
<![CDATA[Data structures, math and statistics tools, and utilities that are often needed across projects.]]>
@@ -52,6 +52,24 @@
5252
<artifactId>poi</artifactId>
5353
<version>5.4.1</version>
5454
<optional>true</optional>
55+
<exclusions>
56+
<exclusion>
57+
<groupId>org.apache.logging.log4j</groupId>
58+
<artifactId>log4j-api</artifactId>
59+
</exclusion>
60+
<exclusion>
61+
<groupId>commons-codec</groupId>
62+
<artifactId>commons-codec</artifactId>
63+
</exclusion>
64+
<exclusion>
65+
<groupId>commons-io</groupId>
66+
<artifactId>commons-io</artifactId>
67+
</exclusion>
68+
<exclusion>
69+
<groupId>org.apache.commons</groupId>
70+
<artifactId>commons-collections4</artifactId>
71+
</exclusion>
72+
</exclusions>
5573
</dependency>
5674

5775
<dependency>
@@ -64,7 +82,7 @@
6482
<dependency>
6583
<groupId>commons-net</groupId>
6684
<artifactId>commons-net</artifactId>
67-
<version>3.11.1</version>
85+
<version>3.12.0</version>
6886
</dependency>
6987
<dependency>
7088
<groupId>org.apache.commons</groupId>
@@ -91,17 +109,17 @@
91109
<dependency>
92110
<groupId>commons-io</groupId>
93111
<artifactId>commons-io</artifactId>
94-
<version>2.18.0</version>
112+
<version>2.20.0</version>
95113
</dependency>
96114
<dependency>
97115
<groupId>org.apache.commons</groupId>
98116
<artifactId>commons-collections4</artifactId>
99-
<version>4.4</version>
117+
<version>4.5.0</version>
100118
</dependency>
101119
<dependency>
102120
<groupId>commons-codec</groupId>
103121
<artifactId>commons-codec</artifactId>
104-
<version>1.18.0</version>
122+
<version>1.19.0</version>
105123
<scope>runtime</scope>
106124
</dependency>
107125
<dependency>
@@ -113,32 +131,34 @@
113131
<dependency>
114132
<groupId>org.apache.commons</groupId>
115133
<artifactId>commons-csv</artifactId>
116-
<version>1.14.0</version>
134+
<version>1.14.1</version>
117135
</dependency>
118136

119137
<!-- R engine -->
138+
<!-- rJava -->
120139
<dependency>
121140
<groupId>org.rosuda.REngine</groupId>
122141
<artifactId>REngine</artifactId>
123-
<version>2.1.0</version>
142+
<version>${rJava.version}</version>
143+
<optional>true</optional>
124144
</dependency>
125145
<dependency>
126146
<groupId>org.rosuda.REngine</groupId>
127147
<artifactId>Rserve</artifactId>
128-
<version>1.8.1</version>
148+
<version>${rserve.version}</version>
129149
<optional>true</optional>
130150
</dependency>
131-
<!-- JRI is the engine implementation -->
132151
<dependency>
133-
<groupId>RoSuDA</groupId>
152+
<groupId>org.rosuda.REngine</groupId>
134153
<artifactId>JRI</artifactId>
135-
<version>0.5-0</version>
136-
<scope>runtime</scope>
154+
<version>${rJava.version}</version>
155+
<optional>true</optional>
137156
</dependency>
138157
<dependency>
139-
<groupId>RoSuDA</groupId>
158+
<groupId>org.rosuda.REngine</groupId>
140159
<artifactId>JRIEngine</artifactId>
141-
<version>0.5-0</version>
160+
<version>${rJava.version}</version>
161+
<optional>true</optional>
142162
</dependency>
143163

144164
<!-- Sparse matrix library; lapack -->
@@ -300,25 +320,25 @@
300320
<dependency>
301321
<groupId>org.assertj</groupId>
302322
<artifactId>assertj-core</artifactId>
303-
<version>3.27.3</version>
323+
<version>3.27.4</version>
304324
<scope>test</scope>
305325
</dependency>
306326
<dependency>
307327
<groupId>org.apache.logging.log4j</groupId>
308328
<artifactId>log4j-api</artifactId>
309-
<version>2.24.3</version>
329+
<version>${log4j.version}</version>
310330
<scope>test</scope>
311331
</dependency>
312332
<dependency>
313333
<groupId>org.apache.logging.log4j</groupId>
314334
<artifactId>log4j-core</artifactId>
315-
<version>2.24.3</version>
335+
<version>${log4j.version}</version>
316336
<scope>test</scope>
317337
</dependency>
318338
<dependency>
319339
<groupId>org.apache.logging.log4j</groupId>
320340
<artifactId>log4j-slf4j-impl</artifactId>
321-
<version>2.24.3</version>
341+
<version>${log4j.version}</version>
322342
<scope>test</scope>
323343
</dependency>
324344
</dependencies>
@@ -335,6 +355,7 @@
335355
<includes>
336356
<include>**/*.owl.gz</include>
337357
<include>**/*.properties</include>
358+
<include>**/*.R</include>
338359
</includes>
339360
<filtering>false</filtering>
340361
</resource>
@@ -449,7 +470,7 @@
449470
<artifactId>maven-surefire-plugin</artifactId>
450471
<version>2.22.2</version>
451472
<configuration>
452-
<argLine>-enableassertions -Djava.awt.headless=true</argLine>
473+
<argLine>-enableassertions -Djava.awt.headless=true -Djava.library.path=${rJava.libDir}</argLine>
453474
<reportsDirectory>target/surefire-reports</reportsDirectory>
454475
<redirectTestOutputToFile>true</redirectTestOutputToFile>
455476
<includes>
@@ -656,6 +677,9 @@
656677
<configuration>
657678
<allowMajorUpdates>false</allowMajorUpdates>
658679
<ignoredVersions>.*-a.*,.*-b.*,.*-M.*</ignoredVersions>
680+
<dependencyExcludes>
681+
<dependencyExclude>org.rosuda.REngine:*:*</dependencyExclude>
682+
</dependencyExcludes>
659683
</configuration>
660684
</plugin>
661685
</plugins>
@@ -678,6 +702,12 @@
678702
<pavlab.server>frink.pavlab.msl.ubc.ca</pavlab.server>
679703
<pavlab.repoDir>/space/maven2</pavlab.repoDir>
680704
<pavlab.siteDir>/space/web/maven-sites</pavlab.siteDir>
705+
<log4j.version>2.25.1</log4j.version>
681706
<lucene.version>3.6.2</lucene.version>
707+
<!-- rJava -->
708+
<!-- You may override this in ~/.m2/settings.xml -->
709+
<rJava.version>1.0-13</rJava.version>
710+
<rJava.libDir>/usr/lib64/R/library/rJava/jri</rJava.libDir>
711+
<rserve.version>1.8-14</rserve.version>
682712
</properties>
683713
</project>

0 commit comments

Comments
 (0)