Skip to content

Instantly share code, notes, and snippets.

@CSchulz

CSchulz/pom.xml Secret

Created May 11, 2016
Embed
What would you like to do?
swagger ui replace default url
<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
You can’t perform that action at this time.