diff --git a/pom.xml b/pom.xml index aa0b9e6b3344220652e7c04f8f6bdf44753139c5..954dffeef48796e286a8368f4e6570fc7a0467a0 100644 --- a/pom.xml +++ b/pom.xml @@ -118,8 +118,9 @@ <!-- distribution management --> <projectId>${project.artifactId}</projectId> <site.server>eis-public-reports</site.server> - <distribution.site.host>doc.e-is.pro</distribution.site.host> - <site.repository>scpexe://${distribution.site.host}/var/www/doc.e-is.pro/duniter4j</site.repository> + <site.host>doc.e-is.pro</site.host> + <site.path>/var/www/doc.e-is.pro/duniter4j</site.path> + <site.repository>scpexe://${site.host}${site.path}</site.repository> <release.server>eis-nexus-deploy</release.server> <release.repository>http://nexus.e-is.pro/nexus/content/repositories/duniter4j-releases</release.repository> <snapshot.server>eis-nexus-deploy</snapshot.server> diff --git a/src/site/markdown/build.md b/src/site/markdown/build.md index 96d192aaddd5630453f2c2cfc63ac47858ea7910..f96d926f072cc8ff7a176d03e43d6cb0721cff00 100644 --- a/src/site/markdown/build.md +++ b/src/site/markdown/build.md @@ -2,20 +2,49 @@ # Build from source ## Get source and compile + +### Install Java JDK + +- Linux (Debian, Ubuntu): + +```bash +sudo apt-get install openjdk-8-jdk +``` + +- Windows: download then unzip JDK (8 ou +) from [Oracle web site](http://oracle.com/java/index.html) + + +### Install LibSodium + -Install required dependencies: - -- Install Java JDK (8 or more) +- Linux : follow [this instructions](https://download.libsodium.org/doc/installation/index.html) (anglais). + + * After install, check that the file `libsodium.so` exists inside directory `/usr/local/lib` or `/opt/local/lib`. -- Install [libsodium](http://doc.libsodium.org/installation/index.html) + * If not exists, but at another location, please create a symbolic link under directory `/usr/local/lib` or `/opt/local/lib`. - * Linux: after [installation](http://doc.libsodium.org/installation/index.html), make sure the file 'libsodium.so' exists on: `/usr/local/lib` or `/opt/local/lib`. - If not, create a symbolic link. +- Windows : Aucune instalation nécessaire (fichier `sodium.dll` déjà présent dans `duniter4j-core-shared/lib`); * Windows: copy the file 'sodium.dll' into directory 'duniter4j-core/lib/' + +### Installer Apache Maven 3 + +Install [Apache Maven 3](http://maven.apache.org): + +- Linux (Debian, Ubuntu): + +```bash + sudo apt-get install maven +``` + +- Windows : [download here](http://maven.apache.org/download.cgi) (version 3.x) then install using [this instructions](http://maven.apache.org/install.html). + + - Install [Maven 3](http://maven.apache.org/): `sudo apt-get install maven` +### Get source the compile + - Get the source code, then compile using Maven: ``` diff --git a/src/site/markdown/development_tutorial.md b/src/site/markdown/development_tutorial.md index 10bacf00abdbd6a8effa64693f411b5322aa64a6..cee4419bae560ba57c51bff327193e0e79f9be19 100644 --- a/src/site/markdown/development_tutorial.md +++ b/src/site/markdown/development_tutorial.md @@ -200,12 +200,14 @@ La compilation du projet utilise Maven, par la commande `mvn` (à ne pas confon #### Tout compiler -Executez la commande suivante pour compiler l'ensemble du projet : +Executez la commande suivante pour compiler l'ensemble du projet : + ```bash mvn install ``` -Si tout c'est bien passé, vous devriez obtenir quelque chose qui ressemble à cela : +Si tout c'est bien passé, vous devriez obtenir quelque chose qui ressemble à cela : + ```bash (...) [INFO] Building zip: /home/eis/git/duniter/duniter4j/duniter4j-es-assembly/target/duniter4j-es-0.3.5-SNAPSHOT-standalone.zip @@ -243,6 +245,7 @@ Par la suite, vous pourrez **ignorer les tests unitaires**, de cette manière : ```bash mvn install -DskipTests ``` + Cela permet une compilation plus rapide. ### Lancer un noeud ElasticSearch @@ -338,11 +341,21 @@ En utilisant un navigateur, vous allez requêter . - [GET-1] Visualisez un bloc quelconque (par exemple le premier #0): http://localhost:9200/g1-test/block/0 Etudiez ensuite le format du résultat : + ```json -{"_index":"g1-test","_type":"block","_id":"0","_version":1,"found":true,"_source":{ - ... +{ + "_index":"g1-test", + "_type":"block", + "_id":"0", + "_version":1, + "found":true, + "_source": { + "number": 0, + "...": "..." + } } ``` + > Observez qu'ElasticSeach a ajouté des informations : `_index`, `_type`, etc. - [GET-2] Pour éviter d'avoir les informations additionnelles, ajoutez `/_source` : http://localhost:9200/g1-test/block/0/_source