... |
... |
@@ -188,7
+188,7 @@ |
188 |
188 |
{{/code}} |
189 |
189 |
))) |
190 |
190 |
|
191 |
|
-=== Response === |
|
191 |
+== Response == |
192 |
192 |
|
193 |
193 |
Das Deploy-Plugin liefert einen Statuscode und ein JSON-Objekt mit den Details zurück. Der Status-Code ist 2xx, falls das Deploy-Plugin erfolgreich ausgeführt wurde. |
194 |
194 |
|
... |
... |
@@ -373,60
+373,5 @@ |
373 |
373 |
} |
374 |
374 |
{{/code}} |
375 |
375 |
|
376 |
|
-== Maven-Deploy-Plugin == |
|
376 |
+== Beispiel für Maven == |
377 |
377 |
|
378 |
|
-Um ein Plugin nach dem Bauen über Maven in FORMCYCLE hochzuladen, gibt es auch ein Maven-Plugin, welches das Deploy-Servlet anspricht. Dieses ist über die Artifactory von XIMA erhältlich, falls man die entsprechenden Rechte hierfür hat: |
379 |
|
- |
380 |
|
-{{code language="xml"}} |
381 |
|
-<plugin> |
382 |
|
- <groupId>de.xima.fc.maven.plugin</groupId> |
383 |
|
- <artifactId>fc-deploy-plugin-maven-plugin</artifactId> |
384 |
|
- <version>1.1.0</version> |
385 |
|
- <configuration> |
386 |
|
- <url>http://localhost:8080/formcycle</url> |
387 |
|
- <pluginName>deploy-plugin</pluginName> |
388 |
|
- <clientId>52</clientId> |
389 |
|
- <token>admin</token> |
390 |
|
- <deployAction>save</deployAction> |
391 |
|
- <pluginIdent>name</manifest> |
392 |
|
- <pluginIdentifier>my-plugin.jar</pluginIdentifier> |
393 |
|
- <jarFile></jarFile> |
394 |
|
- <disallowInstall>false</disallowInstall> |
395 |
|
- <locale>en</locale> |
396 |
|
- <clearProperties>true</clearProperties> |
397 |
|
- <properties> |
398 |
|
- <property1>value1</property1> |
399 |
|
- <property2>value2</property2> |
400 |
|
- <properties> |
401 |
|
- </configuration> |
402 |
|
-</plugin |
403 |
|
-{{/code}} |
404 |
|
- |
405 |
|
-Das Plugin hat die folgenden Optionen zur Konfiguration: |
406 |
|
- |
407 |
|
-; url [Standardwert: //${fcDeployUrl}//] |
408 |
|
-: URL mit Kontextpfad zum FORMCYCLE-Server, etwa //http://localhost:8080/formcycle// |
409 |
|
-; pluginName [Standardwert: //deploy-plugin//] |
410 |
|
-: Der Name des Deploy-Plugins für den URL-Parameter //name//. In der Regel muss diese Option nicht gesetzt werden, der Standardwert ist ausreichend. |
411 |
|
-; clientId [Standardwert: //${fcDeployClientId}//] |
412 |
|
-: ID des Mandanten, für den das Plugin installiert, aktualisiert oder gelöscht werden soll. Entspricht dem Parameter //client-id// des Deploy-Plugins, siehe oben. |
413 |
|
-; clientUuid |
414 |
|
-: UUID des Mandanten, für den das Plugin installiert, aktualisiert oder gelöscht werden soll. Entspricht dem Parameter //client-uuid// des Deploy-Plugins, siehe oben. |
415 |
|
-; token [Standardwert: ${fcDeployToken}] |
416 |
|
-: Passwort für das Servlet-Plugin, falls in der Konfiguration des Deploy-Plugins ein Passwort gesetzt wurde. |
417 |
|
-; deployAction [Standardwert: //save//] |
418 |
|
-: Aktion, welche mit dem Plugin durchgeführt werden soll. Erlaubte Werte sind //save//, //update-properties//, //activate//, //deactivate// und //delete//. Entspricht dem Parameter //deploy-action// des Deploy-Plugins, siehe oben. |
419 |
|
-; pluginIdent [Standardwert: //manifest//] |
420 |
|
-: Die Art, wie nach einem vorhandenen Plugin gesucht wird. Entspricht dem Parameter //plugin-ident// des Deploy-Plugins, siehe oben. |
421 |
|
-; pluginIdentifier [Standardwert: //Implementation-Title=${project.groupId}:${project.artifactId}//] |
422 |
|
-: Identifikator des Plugins, welches aktualisiert oder gelöscht werden soll. Entspricht dem Parameter //plugin-identifier// des Deploy-Plugins, siehe oben. |
423 |
|
-; jarFile [Standartwert: Haupt-Build-Artifakt des Maven-Projekts] |
424 |
|
-: Pfad zur JAR-Datei, die hochgeladen werden soll, relativ zum Basisverzeichnis des Maven-Projekts. |
425 |
|
-; disallowInstall [Standardwert: //false//] |
426 |
|
-: Wenn //true// und das Plugin noch nicht existiert, wird abgebrochen und ein Fehler zurückgegeben. Entspricht dem Parameter //disallow-install// des Deploy-Plugins, siehe oben. |
427 |
|
-; locale [Standardwert: //en//] |
428 |
|
-: Sprache, die für die Installation, Aktualisierung oder Löschung des Plugins genutzt wird. Entspricht dem Parameter //locale// des Deploy-Plugins, siehe oben. |
429 |
|
-; clearProperties [Standardwert: //false//] |
430 |
|
-: Löscht die Werte aller Plugin-Eigenschaften. Entspricht dem Parameter //clear-properties// des Deploy-Plugins, siehe oben. |
431 |
|
-; properties |
432 |
|
-: Key-Value-Paare mit Eigenschaften, die an dem Plugin gesetzt werden sollen. Entspricht dem Parameter //clear-properties// des Deploy-Plugins, siehe oben. |