|
|
<table>
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th width="200px"><h6>[:rewind: Chapitre Précédent](/B-La-base-de-donnees/1%5D-Presentation)</h6></th>
|
|
|
<th colspan="3" width="600px"><h1 align="center">C-Compiler et Builder</h1></th>
|
|
|
<th width="200px"><h6 align="right">[Chapitre Suivant :fast_forward:](/D-Documentation/1%5D-Projet)</h6></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td> </td>
|
|
|
<td align="center">[:one:](/C-Compiler-et-Builder/1%5D-Dans-un-shell-via-Maven)<br/>Dans un shell</td>
|
|
|
<td align="center">[:two:](/C-Compiler-et-Builder/2%5D-Dans-Eclipse-via-Maven)<br/>Dans Eclipse</td>
|
|
|
<td align="center">:white_check_mark:<br/>Dans IntelIJ</td>
|
|
|
<td> </td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
|
|
|
<tfoot>
|
|
|
<tr align="right">
|
|
|
<td colspan="5">
|
|
|
<h6>:copyright: 2019 - <a href="mailto:admin@ferretrenaud.fr">FERRET Renaud</a></h6>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tfoot>
|
|
|
</table>
|
|
|
|
|
|
***
|
|
|
|
|
|
# Quand
|
|
|
|
|
|
Il faudra recompiler le projet après chaque pull ou changement de version du back.
|
|
|
|
|
|
Notez que vous n'avez pas besoin de recompiler si vous utilisez Docker (chapitre [E-3](/E-Lancement/3%5D-Via-docker)).
|
|
|
|
|
|
# Quoi
|
|
|
|
|
|
Si vous ne voulez pas installer [Maven](https://maven.apache.org/download.cgi), ou si vous avez déjà [IntelIJ](https://www.jetbrains.com/idea/download/)sur votre ordinateur vous pouvez recompiler le projet.
|
|
|
|
|
|
**Attention** : N'ouvrez pas le projet à la fois dans IntelIJ et dans Eclipse. Cela causera des problèmes, surtout à IntelIJ.
|
|
|
|
|
|
# Comment
|
|
|
|
|
|
Après l'installation d'IntelIJ, lancez le programme.
|
|
|
|
|
|
Maintenant, cliquez sur le bouton `Open`, indiquez le chemin vers le dossier que vous avez cloné.
|
|
|
|
|
|
|
|
|
A ce stade, il est conseillé de faire un clic sur l'onglet Maven (sur votre droite), puis cliquez sur le premier icone `Reload All Maven Project`.
|
|
|
|
|
|
|
|
|
Il ne doit pas y avoir de rouge sur le projet, vous pouvez maintenant le builder et/ou le lancer.
|
|
|
|
|
|
Dans de rare cas, si Maven ne marche plus commencez par vérifier que vous êtes connecté à Internet, ensuite :
|
|
|
* Première option, faites un clic sur l'onglet Maven (sur votre droite), puis cliquez sur le premier icone `Reload All Maven Project`.
|
|
|
* Seconde option, fermer IntelIJ. L'ensemble des librairies nécessaires à Maven sont placées sur votre disque dur dans le dossier **\[utilisateur\]/.m2** effacez le puis relancez IntelIJ et ré-appliquez la première solution.
|
|
|
|
|
|
Pour le builder, faire un clic sur l'onglet Maven (sur votre droite), puis ouvrez Lifecycle et cliquez sur `Package`.
|
|
|
|
|
|
Maven va encore télécharger des éléments, puis après quelques minutes vous devriez avoir :
|
|
|
|
|
|
Le livrable se trouve dans le dossier `target` de votre projet, pensez à faire un clic droit sur votre dossier puis `Reload From Disk` afin de le voir dans Eclipse.
|
|
|
|
|
|
***
|
|
|
|
|
|
<table>
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th width="200px"><h6>[:rewind: Chapitre Précédent](/B-La-base-de-donnees/1%5D-Presentation)</h6></th>
|
|
|
<th colspan="3" width="600px"><h1 align="center">C-Compiler et Builder</h1></th>
|
|
|
<th width="200px"><h6 align="right">[Chapitre Suivant :fast_forward:](/D-Documentation/1%5D-Projet)</h6></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td> </td>
|
|
|
<td align="center">[:one:](/C-Compiler-et-Builder/1%5D-Dans-un-shell-via-Maven)<br/>Dans un shell</td>
|
|
|
<td align="center">[:two:](/C-Compiler-et-Builder/2%5D-Dans-Eclipse-via-Maven)<br/>Dans Eclipse</td>
|
|
|
<td align="center">:white_check_mark:<br/>Dans IntelIJ</td>
|
|
|
<td> </td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
|
|
|
<tfoot>
|
|
|
<tr align="right">
|
|
|
<td colspan="5">
|
|
|
<h6>:copyright: 2019 - <a href="mailto:admin@ferretrenaud.fr">FERRET Renaud</a></h6>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tfoot>
|
|
|
</table> |
|
|
\ No newline at end of file |