Skip to content
Snippets Groups Projects
Commit 1f523069 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4693 update plugin for formcycle 8

parent 790f020b
No related branches found
No related tags found
No related merge requests found
......@@ -17,17 +17,17 @@ mvn clean install
Die so erzeugte JAR-Datei findet sich im Hauptverzeichnis (`./ozgcloud-formcycle-plugin.jar`). Dies ist eine `fat-jar` mit den benötigten Abhängigkeiten und kann in FORMCYCLE hochgeladen werden. Es sollte nicht die Datei aus dem `target`-Ordner genommen werden.
## Entwickeln
# Entwickeln
### Vorbedingungen
## Vorbedingungen
FC läuft bisher nur auf Java 11. Deshalb vorher eine passende Java Version setzen:
```bash
export JAVA_HOME=/opt/jdk-11
```
### Locale Entwicklung
## Locale Entwicklung
### Server Plugin
Mittels des `fc-server`-Plugin für Maven kann einfach ein Entwicklungsserver gestartet werden:
```bash
......@@ -52,11 +52,16 @@ In diesem Fall muss die native Bibliothek extra installiert werden:
Jetzt kann auf [http://localhost:8080/xima-formcylce](http://localhost:8080/xima-formcylce) zugegriffen werden.
Mit `-Dport=8085` kann der Port geändert werden.
### Deploy Plugin
Dabei wird automatisch das Deploy-Plugin mit in FORMCYCLE installiert. Änderungen können so auf den laufenden FORMCYCLE Server geladen werden:
```bash
mvn package fc-deploy-plugin:deploy -DfcDeployUrl=http://localhost:8080/xima-formcycle -DfcDeployToken=admin
```
ab version 8:
```bash
mvn fc-deploy:deploy -DfcDeployUrl=http://localhost:8080/xima-formcycle -DfcDeployToken=admin
```
### Debug
......
......@@ -14,7 +14,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Version of FORMCYCLE to built against. -->
<xfc.version>7.4.0</xfc.version>
<xfc.version>8.0.3</xfc.version>
<fc-server-maven-plugin.version>8.0.3</fc-server-maven-plugin.version>
<fc-deploy-plugin-maven-plugin.version>8.0.1</fc-deploy-plugin-maven-plugin.version>
<formcycle-adapter-interface.version>2.2.0-SNAPSHOT</formcycle-adapter-interface.version>
<lombok.version>1.18.30</lombok.version>
......@@ -28,10 +30,20 @@
<maven-assembly-plugin.version>3.2.0</maven-assembly-plugin.version>
<maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<fc-server-maven-plugin.version>7.4.0</fc-server-maven-plugin.version>
<fc-deploy-plugin-maven-plugin.version>7.0.1</fc-deploy-plugin-maven-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>de.xima.fc</groupId>
<artifactId>fc</artifactId>
<version>${xfc.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<!-- Dependencies required by this plugin. -->
<dependencies>
<!-- Reference FORMCYCLE libraries. The plugin is installed in a running -->
......@@ -40,11 +52,9 @@
<dependency>
<groupId>de.xima.fc</groupId>
<artifactId>fc-logic</artifactId>
<version>${xfc.version}</version>
<scope>provided</scope>
</dependency>
<!-- You can add additional dependencies here. -->
<!-- Some common libraries as apache-commons and guava are provided by -->
<!-- FORMCYCLE and can be set to scope=provided. -->
......@@ -145,13 +155,6 @@
<groupId>de.xima.fc.maven.plugin</groupId>
<artifactId>fc-server-maven-plugin</artifactId>
<version>${fc-server-maven-plugin.version}</version>
<configuration>
<bootstrap>
<pluginManagement>
<deployMavenProject>true</deployMavenProject>
</pluginManagement>
</bootstrap>
</configuration>
</plugin>
<!-- When cleaning the project, also delete the created plugin JAR file -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment