Archetype
Créer archetype catalogue
Un archetype catalogue est un fichier xml qui contient les référence sur les archetypes.
<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0 http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd">
<archetypes>
<archetype>
<groupId>org.openjfx</groupId>
<artifactId>javafx-archetype-fxml</artifactId>
<version>0.0.7-SNAPSHOT</version>
<description>Archetype pour javafx et fxml</description>
</archetype>
<archetype>
<groupId>org.openjfx</groupId>
<artifactId>javafx-archetype-simple</artifactId>
<version>0.0.7-SNAPSHOT</version>
<description>Archetype pour javafx simple</description>
</archetype>
</archetypes>
</archetype-catalog>
Le fichier si dessus contient 2 références sur des dossiers qui sont dans le même dossier que lui.
[https://maven.apache.org/archetype/maven-archetype-plugin/specification/archetype-catalog.html](Maven catalogue archetype référence)
Installer le catalogue chez Intelij
https://www.jetbrains.com/help/idea/archetype-catalogs.html
Ajout ArcheType pour créer projet javafx
Ajout des archetypes en local
Télécharger dans un dossier les archetypes et les installer avec les commandes suivantes:
git clone https://github.com/openjfx/javafx-maven-archetypes.git
cd javafx-maven-archetypes
mvn clean install
https://github.com/openjfx/javafx-maven-archetypes
Créer un catalogue d'archetype (voir ci-dessus)