diff --git a/README.md b/README.md index 0a4131ce333e2f05c770d48b0176dced06bc3310..035839ade920093ef2493a8d2f1dc96b2faac126 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pom.xml b/pom.xml index b6b401e6e9c291a760f7e42b6e5676d8e082a6ec..dfc14891f13ea1e8701e9505166a164c2aceeac6 100644 --- a/pom.xml +++ b/pom.xml @@ -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 -->