Swagger-UI using Spring framework
[cps.git] / cps / cps-parent / pom.xml
index db80970..04f423c 100644 (file)
 
     <properties>
         <java.version>11</java.version>
-        <maven-resources-plugin.version>3.2.0</maven-resources-plugin.version>
-        <maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version>
-        <maven-replacer-plugin.version>1.5.3</maven-replacer-plugin.version>
         <oparent.version>3.1.0</oparent.version>
         <spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version>
         <swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version>
-        <swagger-ui.version>3.35.0</swagger-ui.version>
     </properties>
 
     <dependencyManagement>
                         </execution>
                     </executions>
                 </plugin>
-                <plugin>
-                    <!-- Download Swagger UI webjar. -->
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-dependency-plugin</artifactId>
-                    <version>${maven-dependency-plugin.version}</version>
-                    <executions>
-                        <execution>
-                            <phase>prepare-package</phase>
-                            <goals>
-                                <goal>unpack</goal>
-                            </goals>
-                            <configuration>
-                                <artifactItems>
-                                    <artifactItem>
-                                        <groupId>org.webjars</groupId>
-                                        <artifactId>swagger-ui</artifactId>
-                                        <version>${swagger-ui.version}</version>
-                                    </artifactItem>
-                                </artifactItems>
-                                <outputDirectory>
-                                    ${project.build.directory}/swagger-ui-${swagger-ui.version}
-                                </outputDirectory>
-                            </configuration>
-                        </execution>
-                    </executions>
-                </plugin>
-                <plugin>
-                    <!-- Copy Swagger UI resources to static resources directory. -->
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-resources-plugin</artifactId>
-                    <version>${maven-resources-plugin.version}</version>
-                    <executions>
-                        <execution>
-                            <id>copy-resources</id>
-                            <phase>prepare-package</phase>
-                            <goals>
-                                <goal>copy-resources</goal>
-                            </goals>
-                            <configuration>
-                                <outputDirectory>${project.build.outputDirectory}/static/swagger-ui
-                                </outputDirectory>
-                                <resources>
-                                    <resource>
-                                        <directory>
-                                            ${project.build.directory}/swagger-ui-${swagger-ui.version}/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/
-                                        </directory>
-                                        <excludes>
-                                            <exclude>**/*.gz</exclude>
-                                        </excludes>
-                                    </resource>
-                                </resources>
-                            </configuration>
-                        </execution>
-                    </executions>
-                </plugin>
-                <plugin>
-                    <!-- Replace the OpenAPI specification example URL with the local one. -->
-                    <groupId>com.google.code.maven-replacer-plugin</groupId>
-                    <artifactId>replacer</artifactId>
-                    <version>${maven-replacer-plugin.version}</version>
-                    <executions>
-                        <execution>
-                            <phase>prepare-package</phase>
-                            <goals>
-                                <goal>replace</goal>
-                            </goals>
-                        </execution>
-                    </executions>
-                    <configuration>
-                        <file>${project.build.outputDirectory}/static/swagger-ui/index.html</file>
-                        <replacements>
-                            <replacement>
-                                <token>https://petstore.swagger.io/v2/swagger.json</token>
-                                <value>/api/cps/openapi.json</value>
-                            </replacement>
-                        </replacements>
-                    </configuration>
-                </plugin>
             </plugins>
         </pluginManagement>
         <plugins>