-
-
Save CSchulz/b039d7912a77c745273ec33df517bf90 to your computer and use it in GitHub Desktop.
swagger ui replace default url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>com.google.code.maven-replacer-plugin</groupId> | |
<artifactId>replacer</artifactId> | |
<version>1.5.3</version> | |
<executions> | |
<execution> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>replace</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<file>${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/index.html</file> | |
<replacements> | |
<replacement> | |
<token>http://petstore.swagger.io/v2/swagger.json</token> | |
<value>http://notexistingurl.de/api/swagger.json</value> | |
</replacement> | |
</replacements> | |
</configuration> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment