diff --git a/Jenkinsfile b/Jenkinsfile index e57f8378b4b14030ce9bec891496876a98e124ea..b9264338c01f3abefd7c81d062a292f3d0d626bb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -128,7 +128,7 @@ pipeline { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { 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 { diff --git a/README.md b/README.md index 43c52db73b6f22e84bae672473e1e27a14c42aa9..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 @@ -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. +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 5bcd40c3ef7c003d5bb26bc0522965ad646c654c..32850d9f09ce6cf69c6c7eb527c0519759f56d87 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ <groupId>de.ozgcloud</groupId> <artifactId>ozgcloud-formcycle-plugin</artifactId> - <version>1.4.0-SNAPSHOT</version> + <version>2.0.0-SNAPSHOT</version> <packaging>jar</packaging> <name>FormCycle Plugin</name> @@ -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.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> <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. --> @@ -129,29 +139,12 @@ <groupId>de.xima.fc.maven.plugin</groupId> <artifactId>fc-deploy-plugin-maven-plugin</artifactId> <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> <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 --> @@ -194,6 +187,8 @@ <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> <manifestEntries> + <Plugin-Key>${project.groupId}:${project.artifactId}</Plugin-Key> + <Plugin-Repository>none</Plugin-Repository> <Build-Timestamp>${maven.build.timestamp}</Build-Timestamp> <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id> <Implementation-Title>${project.groupId}:${project.artifactId}</Implementation-Title>