Skip to content

Commit

Permalink
Fix problems with the swagger-maven-plugin not working with Spring Fr…
Browse files Browse the repository at this point in the history
…amework 6
  • Loading branch information
filiphr committed Jul 18, 2023
1 parent e70c9b8 commit d788659
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
21 changes: 20 additions & 1 deletion docs/public-api/tools/flowable-oas-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<plugin>
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>3.1.5</version>
<version>3.1.8</version>
<configuration>
<apiSources>
<apiSource>
Expand Down Expand Up @@ -124,6 +124,25 @@
</apiSource>
</apiSources>
</configuration>
<dependencies>
<!-- Swagger uses javax XML Bind, so add that in order for everything to work properly -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- The swagger Maven plugin uses older Spring version. Use the same version in order to avoid problems -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.framework.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>compile</phase>
Expand Down
22 changes: 20 additions & 2 deletions modules/flowable-app-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@
<plugin>
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>3.1.6</version>
<version>3.1.8</version>
<configuration>
<skipSwaggerGeneration>true</skipSwaggerGeneration>
<apiSources>
<apiSource>
<springmvc>true</springmvc>
Expand Down Expand Up @@ -420,6 +419,25 @@
</apiSource>
</apiSources>
</configuration>
<dependencies>
<!-- Swagger uses javax XML Bind, so add that in order for everything to work properly -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- The swagger Maven plugin uses older Spring version. Use the same version in order to avoid problems -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.framework.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>generate-resources</phase>
Expand Down

0 comments on commit d788659

Please sign in to comment.