Skip to content
Snippets Groups Projects
Commit 58e1b984 authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'OZG-4693: Plugin an Formcycle 8 anpassen' (#21) from...

Merge pull request 'OZG-4693: Plugin an Formcycle 8 anpassen' (#21) from OZG-4693-update_for_formcycle_8 into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/formcycle-plugin/pulls/21
parents 06576559 a4f81bb3
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ pipeline { ...@@ -128,7 +128,7 @@ pipeline {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn --version' sh 'mvn --version'
sh 'mvn -s $MAVEN_SETTINGS -P ci-build package fc-deploy:deploy -DfcDeployUrl="https://formcycle.dev.ozg-sh.de/formcycle" -DfcDeployClientId="2" -DfcDeployToken=adminhase23 -DskipTests=true -Dmaven.wagon.http.retryHandler.count=3' sh 'mvn -s $MAVEN_SETTINGS -P ci-build fc-deploy:deploy -DfcDeployUrl="https://formcycle.dev.ozg-sh.de/formcycle" -DfcDeployClientId="2" -DfcDeployToken=adminhase23 -DskipTests=true -Dmaven.wagon.http.retryHandler.count=3'
} }
} }
post { post {
......
...@@ -17,17 +17,17 @@ mvn clean install ...@@ -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. 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: FC läuft bisher nur auf Java 11. Deshalb vorher eine passende Java Version setzen:
```bash ```bash
export JAVA_HOME=/opt/jdk-11 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: Mittels des `fc-server`-Plugin für Maven kann einfach ein Entwicklungsserver gestartet werden:
```bash ```bash
...@@ -50,12 +50,18 @@ In diesem Fall muss die native Bibliothek extra installiert werden: ...@@ -50,12 +50,18 @@ 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. 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: Dabei wird automatisch das Deploy-Plugin mit in FORMCYCLE installiert. Änderungen können so auf den laufenden FORMCYCLE Server geladen werden:
```bash ```bash
mvn package fc-deploy-plugin:deploy -DfcDeployUrl=http://localhost:8080/xima-formcycle -DfcDeployToken=admin 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 ### Debug
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<groupId>de.ozgcloud</groupId> <groupId>de.ozgcloud</groupId>
<artifactId>ozgcloud-formcycle-plugin</artifactId> <artifactId>ozgcloud-formcycle-plugin</artifactId>
<version>1.4.0-SNAPSHOT</version> <version>2.0.0-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>FormCycle Plugin</name> <name>FormCycle Plugin</name>
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Version of FORMCYCLE to built against. --> <!-- Version of FORMCYCLE to built against. -->
<xfc.version>7.4.0</xfc.version> <xfc.version>8.0.0</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> <formcycle-adapter-interface.version>2.2.0-SNAPSHOT</formcycle-adapter-interface.version>
<lombok.version>1.18.30</lombok.version> <lombok.version>1.18.30</lombok.version>
...@@ -28,10 +30,20 @@ ...@@ -28,10 +30,20 @@
<maven-assembly-plugin.version>3.2.0</maven-assembly-plugin.version> <maven-assembly-plugin.version>3.2.0</maven-assembly-plugin.version>
<maven-clean-plugin.version>3.1.0</maven-clean-plugin.version> <maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-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> </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 required by this plugin. -->
<dependencies> <dependencies>
<!-- Reference FORMCYCLE libraries. The plugin is installed in a running --> <!-- Reference FORMCYCLE libraries. The plugin is installed in a running -->
...@@ -40,11 +52,9 @@ ...@@ -40,11 +52,9 @@
<dependency> <dependency>
<groupId>de.xima.fc</groupId> <groupId>de.xima.fc</groupId>
<artifactId>fc-logic</artifactId> <artifactId>fc-logic</artifactId>
<version>${xfc.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- You can add additional dependencies here. --> <!-- You can add additional dependencies here. -->
<!-- Some common libraries as apache-commons and guava are provided by --> <!-- Some common libraries as apache-commons and guava are provided by -->
<!-- FORMCYCLE and can be set to scope=provided. --> <!-- FORMCYCLE and can be set to scope=provided. -->
...@@ -129,29 +139,12 @@ ...@@ -129,29 +139,12 @@
<groupId>de.xima.fc.maven.plugin</groupId> <groupId>de.xima.fc.maven.plugin</groupId>
<artifactId>fc-deploy-plugin-maven-plugin</artifactId> <artifactId>fc-deploy-plugin-maven-plugin</artifactId>
<version>${fc-deploy-plugin-maven-plugin.version}</version> <version>${fc-deploy-plugin-maven-plugin.version}</version>
<executions>
<execution>
<id>upload</id>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>de.xima.fc.maven.plugin</groupId> <groupId>de.xima.fc.maven.plugin</groupId>
<artifactId>fc-server-maven-plugin</artifactId> <artifactId>fc-server-maven-plugin</artifactId>
<version>${fc-server-maven-plugin.version}</version> <version>${fc-server-maven-plugin.version}</version>
<configuration>
<bootstrap>
<pluginManagement>
<deployMavenProject>true</deployMavenProject>
</pluginManagement>
</bootstrap>
</configuration>
</plugin> </plugin>
<!-- When cleaning the project, also delete the created plugin JAR file --> <!-- When cleaning the project, also delete the created plugin JAR file -->
...@@ -194,6 +187,8 @@ ...@@ -194,6 +187,8 @@
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest> </manifest>
<manifestEntries> <manifestEntries>
<Plugin-Key>${project.groupId}:${project.artifactId}</Plugin-Key>
<Plugin-Repository>none</Plugin-Repository>
<Build-Timestamp>${maven.build.timestamp}</Build-Timestamp> <Build-Timestamp>${maven.build.timestamp}</Build-Timestamp>
<Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id> <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
<Implementation-Title>${project.groupId}:${project.artifactId}</Implementation-Title> <Implementation-Title>${project.groupId}:${project.artifactId}</Implementation-Title>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment