Difference between revisions of "SimpleGraph-Installation"

From BITPlan Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Article|title=SimpleGraph Installation|text=
+
{{SimpleArticle|title=SimpleGraph Installation|text=
 
= Eclipse =
 
= Eclipse =
Select the File|Import/Git/Projects from Git Import Wizard from the Eclipse Main Menu
+
== Prerequisites ==
click "Next >"
+
# Eclipse (Oxygen recommended)
 +
# Java 8
 +
# Maven (e.g. m2eclipse)
 +
== Installation Steps ==
 +
Select the File{{!}}Import/Git/Projects from Git Import Wizard from the Eclipse Main Menu
 +
<br>[[File:gitimport1.png|400px]]
 +
<br>click "Next >"<br>
 
Select "Clone URI"
 
Select "Clone URI"
click "Next >"
+
<br>[[File:gitimport2.png|400px]]
 +
<br>click "Next >"<br>
 
enter the URL https://github.com/BITPlan/com.bitplan.simplegraph
 
enter the URL https://github.com/BITPlan/com.bitplan.simplegraph
click "Next >"
+
<br>[[File:gitimport3.png|400px]]
 +
<br>click "Next >"<br>
 
keep the selected Branch "master"
 
keep the selected Branch "master"
click "Next >"
+
<br>[[File:gitimport4.png|400px]]
 +
<br>click "Next >"<br>
 
select the target direcctory where you'd like to keep the project locally
 
select the target direcctory where you'd like to keep the project locally
click "Next >"
+
<br>[[File:gitimport5.png|400px]]
 +
<br>click "Next >"<br>
 
keep the wizard "Import existing Eclipse projects"
 
keep the wizard "Import existing Eclipse projects"
click "Next >"
+
<br>[[File:gitimport6.png|400px]]
 +
<br>click "Next >"<br>
 
keep all imported projects
 
keep all imported projects
click "Next >"
+
<br>[[File:gitimport7.png|400px]]
 +
<br>click "Finish >"<br>
 
There will be initial build errors since this is maven multi-module project and their are some interdependencies between the modules.
 
There will be initial build errors since this is maven multi-module project and their are some interdependencies between the modules.
 
+
Do a right-click "Run As/Maven install" on the main project com.bitplan.simplegraph to fix this
 +
== Importing new modules ==
 +
If you installed the project to eclipse a while ago and new modules have been added to the github repository you might want to import these.
 +
# do a team/pull
 +
# optionally check with right click show in / system explorer to see the new subdirectories
 +
# right click import/Project from git
 +
# choose Existing local repository
 +
# select com.bitplan.simplegraph
 +
# then select the module you would like to add
 
= Maven command line =
 
= Maven command line =
 
<source lang='bash'>
 
<source lang='bash'>
 
git clone https://github.com/BITPlan/com.bitplan.simplegraph
 
git clone https://github.com/BITPlan/com.bitplan.simplegraph
 
cd com.bitplan.simplegraph/
 
cd com.bitplan.simplegraph/
mvn install
+
mvn install -D skipTests -D gpg.skip
 
</source>
 
</source>
 
}}
 
}}
== expected result ==
+
{{Article|title=expected result|text=
 
<source lang='bash'>
 
<source lang='bash'>
[INFO] SimpleGraph ........................................ SUCCESS [  2.454 s]
+
[INFO] SimpleGraph ........................................ SUCCESS [  1.477 s]
[INFO] SimpleGraph Core ................................... SUCCESS [ 21.003 s]
+
[INFO] SimpleGraph Core ................................... SUCCESS [ 8.595 s]
[INFO] SimpleGraph FileSystem ............................. SUCCESS [  6.748 s]
+
[INFO] SimpleGraph CalDAV ................................. SUCCESS [  2.324 s]
[INFO] SimpleGraph JSON ................................... SUCCESS [  4.794 s]
+
[INFO] SimpleGraph CardDAV ................................ SUCCESS [  3.022 s]
[INFO] SimpleGraph Map .................................... SUCCESS [  7.487 s]
+
[INFO] SimpleGraph FileSystem ............................. SUCCESS [  3.282 s]
[INFO] SimpleGraph MediaWiki .............................. SUCCESS [  9.018 s]
+
[INFO] SimpleGraph GeoJson ................................ SUCCESS [  1.369 s]
[INFO] SimpleGraph Semantic MediaWiki ..................... SUCCESS [ 11.503 s]
+
[INFO] SimpleGraph JSON ................................... SUCCESS [  2.509 s]
[INFO] SimpleGraph SQL .................................... SUCCESS [  3.504 s]
+
[INFO] SimpleGraph GitHub ................................. SUCCESS [  6.505 s]
[INFO] SimpleGraph TripleStore ............................ SUCCESS [  6.921 s]
+
[INFO] SimpleGraph HTML ................................... SUCCESS [  5.807 s]
[INFO] SimpleGraph WikiData ............................... SUCCESS [ 13.057 s]
+
[INFO] SimpleGraph Java ................................... SUCCESS [  2.540 s]
[INFO] SimpleGraph Excel .................................. SUCCESS [ 33.838 s]
+
[INFO] SimpleGraph Mail ................................... SUCCESS [  1.370 s]
[INFO] SimpleGraph Powerpoint ............................. SUCCESS [ 35.076 s]
+
[INFO] SimpleGraph Map .................................... SUCCESS [  3.470 s]
 +
[INFO] SimpleGraph MediaWiki .............................. SUCCESS [  5.330 s]
 +
[INFO] SimpleGraph Semantic MediaWiki ..................... SUCCESS [ 13.929 s]
 +
[INFO] SimpleGraph PDF .................................... SUCCESS [  3.592 s]
 +
[INFO] SimpleGraph SNMP ................................... SUCCESS [  1.656 s]
 +
[INFO] SimpleGraph SQL .................................... SUCCESS [  2.262 s]
 +
[INFO] SimpleGraph TripleStore ............................ SUCCESS [  3.726 s]
 +
[INFO] SimpleGraph Excel .................................. SUCCESS [ 18.013 s]
 +
[INFO] SimpleGraph WikiData ............................... SUCCESS [ 10.562 s]
 +
[INFO] SimpleGraph Word ................................... SUCCESS [  4.170 s]
 +
[INFO] SimpleGraph XML .................................... SUCCESS [ 1.852 s]
 +
[INFO] SimpleGraph Powerpoint ............................. SUCCESS [ 30.485 s]
 +
[INFO] SimpleGraph Bundle ................................. SUCCESS [  6.004 s]
 
[INFO] ------------------------------------------------------------------------
 
[INFO] ------------------------------------------------------------------------
 
[INFO] BUILD SUCCESS
 
[INFO] BUILD SUCCESS
 
[INFO] ------------------------------------------------------------------------
 
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:36 min
+
[INFO] Total time: 02:24 min
 
</source>
 
</source>
 +
}}
 +
= Fat Jar =
 +
To include simplegraph as a single jar dependency for your project you might want to run:
 +
<source lang='bash'>
 +
cd com.bitplan.simplegraph/simplegraph-bundle
 +
mvn install -D skipTests -D gpg.skip -P createAssembly
 +
</source>
 +
which will create a jar-with-dependencies.jar
 
[[Category:frontend]]
 
[[Category:frontend]]
 
[[Category:SiGNaL]]
 
[[Category:SiGNaL]]
 
[[Category:SimpleGraph]]
 
[[Category:SimpleGraph]]

Latest revision as of 16:15, 5 March 2020

SimpleGraph Installation

Eclipse

Prerequisites

  1. Eclipse (Oxygen recommended)
  2. Java 8
  3. Maven (e.g. m2eclipse)

Installation Steps

Select the File|Import/Git/Projects from Git Import Wizard from the Eclipse Main Menu
Gitimport1.png
click "Next >"
Select "Clone URI"
Gitimport2.png
click "Next >"
enter the URL https://github.com/BITPlan/com.bitplan.simplegraph
Gitimport3.png
click "Next >"
keep the selected Branch "master"
Gitimport4.png
click "Next >"
select the target direcctory where you'd like to keep the project locally
Gitimport5.png
click "Next >"
keep the wizard "Import existing Eclipse projects"
Gitimport6.png
click "Next >"
keep all imported projects
Gitimport7.png
click "Finish >"
There will be initial build errors since this is maven multi-module project and their are some interdependencies between the modules. Do a right-click "Run As/Maven install" on the main project com.bitplan.simplegraph to fix this

Importing new modules

If you installed the project to eclipse a while ago and new modules have been added to the github repository you might want to import these.

  1. do a team/pull
  2. optionally check with right click show in / system explorer to see the new subdirectories
  3. right click import/Project from git
  4. choose Existing local repository
  5. select com.bitplan.simplegraph
  6. then select the module you would like to add

Maven command line

git clone https://github.com/BITPlan/com.bitplan.simplegraph
cd com.bitplan.simplegraph/
mvn install -D skipTests -D gpg.skip


expected result

[INFO] SimpleGraph ........................................ SUCCESS [  1.477 s]
[INFO] SimpleGraph Core ................................... SUCCESS [  8.595 s]
[INFO] SimpleGraph CalDAV ................................. SUCCESS [  2.324 s]
[INFO] SimpleGraph CardDAV ................................ SUCCESS [  3.022 s]
[INFO] SimpleGraph FileSystem ............................. SUCCESS [  3.282 s]
[INFO] SimpleGraph GeoJson ................................ SUCCESS [  1.369 s]
[INFO] SimpleGraph JSON ................................... SUCCESS [  2.509 s]
[INFO] SimpleGraph GitHub ................................. SUCCESS [  6.505 s]
[INFO] SimpleGraph HTML ................................... SUCCESS [  5.807 s]
[INFO] SimpleGraph Java ................................... SUCCESS [  2.540 s]
[INFO] SimpleGraph Mail ................................... SUCCESS [  1.370 s]
[INFO] SimpleGraph Map .................................... SUCCESS [  3.470 s]
[INFO] SimpleGraph MediaWiki .............................. SUCCESS [  5.330 s]
[INFO] SimpleGraph Semantic MediaWiki ..................... SUCCESS [ 13.929 s]
[INFO] SimpleGraph PDF .................................... SUCCESS [  3.592 s]
[INFO] SimpleGraph SNMP ................................... SUCCESS [  1.656 s]
[INFO] SimpleGraph SQL .................................... SUCCESS [  2.262 s]
[INFO] SimpleGraph TripleStore ............................ SUCCESS [  3.726 s]
[INFO] SimpleGraph Excel .................................. SUCCESS [ 18.013 s]
[INFO] SimpleGraph WikiData ............................... SUCCESS [ 10.562 s]
[INFO] SimpleGraph Word ................................... SUCCESS [  4.170 s]
[INFO] SimpleGraph XML .................................... SUCCESS [  1.852 s]
[INFO] SimpleGraph Powerpoint ............................. SUCCESS [ 30.485 s]
[INFO] SimpleGraph Bundle ................................. SUCCESS [  6.004 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:24 min


In Internet Explorer versions up to 8, things inside the canvas are inaccessible!

Fat Jar

To include simplegraph as a single jar dependency for your project you might want to run:

cd com.bitplan.simplegraph/simplegraph-bundle
mvn install -D skipTests -D gpg.skip -P createAssembly

which will create a jar-with-dependencies.jar