Änderungen von Dokument Plugin-Entwicklung


Von Version 1.1
bearbeitet von gru
am 20.01.2021, 16:18
Änderungskommentar: Imported from XAR
Auf Version 2.1
bearbeitet von rth
am 14.02.2022, 17:25
Änderungskommentar: Neuen Anhang pom.xml hochladen

Zusammenfassung

Details

Seiteneigenschaften
Dokument-Autor
... ... @@ -1,1 +1,1 @@
1 -XWiki.gru
1 +XWiki.rth
Inhalt
... ... @@ -12,7 +12,7 @@
12 12  
13 13  Zu Beginn der Entwicklung eines Plugins ist es nötig das entsprechende Entwicklungsprojekt aufzusetzten und zu konfigurieren. Für letzteres kommt hierbei das Build-Management-Tool [[Apache Maven>>url:https://maven.apache.org/||rel="__blank"]] zum Einsatz. Um die entsprechenden Abhängigkeiten zu {{formcycle case="dat"/}} bereitzustellen ist ein Repository unter der URL [[https:~~/~~/artifactory.xima-services.de/artifactory/fc-plugin-dev>>url:https://artifactory.xima-services.de/artifactory/fc-plugin-dev]] zu benutzen. Dieses beinhaltet alle öffentlich zur Verfügung stehenden Artefakte welche dem Plugin zur Laufzeit bereitgestellt und während der Entwicklung benötigt werden. Augangspunkt ist hierbei das Artefakt //fc-plugin-common//, welches die einzelnen Plugin-Schnittstellen beinhaltet und auch auf [[unserere Downloadseite zur Verfügung steht>>url:http://artifactory.xima-services.de/artifactory/fc-plugin-dev/de/xima/fc/fc-plugin-common/]]. Ein Auszug des Project Object Models (pom.xml) sieht dem entsprechend beispielhaft wie folgt aus:
14 14  
15 -{{panel title="Beispiel für pom.xml" initial="hidden" triggerable="true" fullwidth="true"}}
15 +{{panel title="Beispiel für pom.xml" fullwidth="true" initial="hidden" triggerable="true"}}
16 16  {{code language="xml"}}
17 17  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18 18   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
... ... @@ -24,7 +24,7 @@
24 24   <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
25 25  
26 26   <!-- Dependencies -->
27 - <xfc.version>6.0.0</xfc.version>
27 + <xfc.version>7.0.9</xfc.version>
28 28  
29 29   <!-- Plugins -->
30 30   <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
... ... @@ -55,8 +55,7 @@
55 55   <artifactId>maven-compiler-plugin</artifactId>
56 56   <version>${maven-compiler-plugin.version}</version>
57 57   <configuration>
58 - <source>1.8</source>
59 - <target>1.8</target>
58 + <release>11</release>
60 60   <encoding>UTF-8</encoding>
61 61   </configuration>
62 62   </plugin>
pom.xml
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ximaadmin
1 +XWiki.rth
Größe
... ... @@ -1,1 +1,1 @@
1 -2.1 KB
1 +2.2 KB
Inhalt
... ... @@ -14,11 +14,11 @@
14 14   <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15 15  
16 16   <!-- Dependencies -->
17 - <xfc-version>4.2.3</xfc-version>
17 + <xfc-version>7.0.9</xfc-version>
18 18  
19 19   <!-- Plugins -->
20 - <maven-compiler-plugin-version>3.3</maven-compiler-plugin-version>
21 - <maven-jar-plugin-version>2.4</maven-jar-plugin-version>
20 + <maven-compiler-plugin-version>3.8.1</maven-compiler-plugin-version>
21 + <maven-jar-plugin-version>3.1.0</maven-jar-plugin-version>
22 22   </properties>
23 23  
24 24   <repositories>
... ... @@ -52,8 +52,7 @@
52 52   <artifactId>maven-compiler-plugin</artifactId>
53 53   <version>${maven-compiler-plugin-version}</version>
54 54   <configuration>
55 - <source>1.7</source>
56 - <target>1.7</target>
55 + <release>11</release>
57 57   <encoding>UTF-8</encoding>
58 58   <showDeprecation>true</showDeprecation>
59 59   <showWarnings>true</showWarnings>
... ... @@ -78,5 +78,3 @@
78 78   </plugins>
79 79   </build>
80 80  </project>
81 -
82 -