Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit 2390289

Browse files
committed
common-codes problem solved. New instruction to solve the building with Maven is illustrated
1 parent a018292 commit 2390289

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,49 @@ Contains the SANSA Examples for [Apache Spark](http://spark.apache.org/).
1010

1111
### [sansa-examples-flink](https://github.com/SANSA-Stack/SANSA-Examples/tree/master/sansa-examples-flink)
1212
Contains the SANSA Examples for [Apache Flink](http://flink.apache.org/).
13+
14+
## Not able to build the project with maven then read this section:
15+
*Step 1:* just make sure you are using the updated Maven Package Manager. Just run the `mvn --version` to be sure that your mvn is the latest. If it is not then run following commands in your prefered termianl:
16+
As the project is under development might have some problems and end up with errors during the `mvn clean install -U` building process. Therefore, hopefully there is a solution to solve this issue:
17+
18+
```
19+
sudo apt-get --only-upgrade install maven
20+
mvn --versoin
21+
```
22+
if it does not update your current maven (last version is 3.6.0) then follow these commands:
23+
24+
```
25+
cd ~/Downloads
26+
wget http://apache.mirror.digionline.de/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
27+
sudo mkdir -p /usr/local/apache-maven
28+
sudo mv apache-maven-3.6.0-bin.tar.gz /usr/local/apache-maven
29+
cd /usr/local/apache-maven
30+
sudo tar -xzvf apache-maven-3.6.0-bin.tar.gz
31+
```
32+
*Step 2:* then based on your default `$SHELL` add following env variables:
33+
34+
```
35+
#MAVEN env variables
36+
export M2_HOME=/usr/local/apache-maven/apache-maven-3.6.0
37+
export M2=$M2_HOME/bin
38+
export MAVEN_OPTS="-Xms256m -Xmx512m"
39+
export PATH=$M2:$PATH
40+
```
41+
Do not remember to source new environmental variables:
42+
```
43+
source ~/.bashrc
44+
```
45+
46+
Now just check if the installation process is done correctly run this command:
47+
48+
```
49+
mvn --version
50+
```
51+
52+
Results:
53+
54+
![alt text](https://i.imgur.com/gRK41hK.png)
55+
56+
![alt text](https://i.imgur.com/3BwAp7f.png)
57+
58+

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
</dependency>
161161

162162
<!-- Guava -->
163-
<!-- <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId>
163+
<!-- <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId>
164164
<version>19.0</version> </dependency> -->
165165

166166
<!-- RDF Layer -->
@@ -239,6 +239,12 @@
239239
<scope>import</scope>
240240
</dependency>
241241

242+
<!-- Commons-codec dependency: solve the issue of making clean install-->
243+
<dependency>
244+
<groupId>commons-codec</groupId>
245+
<artifactId>commons-codec</artifactId>
246+
<version>1.11</version>
247+
</dependency>
242248

243249
</dependencies>
244250
</dependencyManagement>

0 commit comments

Comments
 (0)