Skip to content

Instantly share code, notes, and snippets.

@CSchulz

CSchulz/pom.xml Secret

Created May 11, 2016 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CSchulz/b039d7912a77c745273ec33df517bf90 to your computer and use it in GitHub Desktop.
Save CSchulz/b039d7912a77c745273ec33df517bf90 to your computer and use it in GitHub Desktop.
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