aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2/pom.xml
diff options
context:
space:
mode:
authorThomas <>2022-02-02 18:01:06 +0100
committerThomas <>2022-02-08 09:35:52 +0100
commitfeaa0a61527f0eb29ce33fb9e1aa1ddb0703779d (patch)
treeb925c5ba0b9a7fac4aa5f25a34b78c18f78eca51 /eidas_modules/authmodule-eIDAS-v2/pom.xml
parentb81ef7a782278cb941d3b424ccbe1ccc976c54f3 (diff)
downloadNational_eIDAS_Gateway-feaa0a61527f0eb29ce33fb9e1aa1ddb0703779d.tar.gz
National_eIDAS_Gateway-feaa0a61527f0eb29ce33fb9e1aa1ddb0703779d.tar.bz2
National_eIDAS_Gateway-feaa0a61527f0eb29ce33fb9e1aa1ddb0703779d.zip
feature(ernp): generate ERnP client from openAPI specification
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2/pom.xml')
-rw-r--r--eidas_modules/authmodule-eIDAS-v2/pom.xml48
1 files changed, 47 insertions, 1 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/pom.xml b/eidas_modules/authmodule-eIDAS-v2/pom.xml
index 5a24b67f..3ee16b0c 100644
--- a/eidas_modules/authmodule-eIDAS-v2/pom.xml
+++ b/eidas_modules/authmodule-eIDAS-v2/pom.xml
@@ -145,6 +145,16 @@
<scope>compile</scope>
</dependency>
<dependency>
+ <groupId>org.openapitools</groupId>
+ <artifactId>jackson-databind-nullable</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>io.swagger.parser.v3</groupId>
+ <artifactId>swagger-parser</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>org.bitbucket.b_c</groupId>
<artifactId>jose4j</artifactId>
</dependency>
@@ -229,6 +239,9 @@
<resource>
<directory>target/generated-sources/cxf</directory>
</resource>
+ <resource>
+ <directory>target/generated-sources/swagger</directory>
+ </resource>
</resources>
<plugins>
@@ -262,7 +275,7 @@
</dependencies>
<executions>
<execution>
- <id>generate-sources</id>
+ <id>generate-sources-soap</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
@@ -303,6 +316,39 @@
</plugin>
<plugin>
+ <groupId>org.openapitools</groupId>
+ <artifactId>openapi-generator-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-sources-json</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <skip>false</skip>
+ <skipOverwrite>false</skipOverwrite>
+ <inputSpec>${project.basedir}/src/main/resources/wsdl/ernp_client/openapi.json</inputSpec>
+ <generatorName>java</generatorName>
+ <output>${project.build.directory}/generated/swagger</output>
+ <apiPackage>at.asitplus.eidas.specific.modules.auth.eidas.v2.dao.ernp.api</apiPackage>
+ <modelPackage>at.asitplus.eidas.specific.modules.auth.eidas.v2.dao.ernp.model</modelPackage>
+ <invokerPackage>at.asitplus.eidas.specific.modules.auth.eidas.v2.dao.ernp.invoker</invokerPackage>
+ <configOptions>
+ <configPackage>at.asitplus.eidas.specific.modules.auth.eidas.v2.clients.ernp</configPackage>
+ <delegatePattern>true</delegatePattern>
+ <basePackage>at.asitplus.eidas.specific.modules.auth.eidas.v2</basePackage>
+ <java8>true</java8>
+ <dateLibrary>java8</dateLibrary>
+ <serializationLibrary>jackson</serializationLibrary>
+ <library>resttemplate</library>
+ </configOptions>
+ </configuration>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-maven-plugin.version}</version>