Created
February 17, 2017 16:10
-
-
Save abelsromero/ad6b95cbf65879b3a890ce72065036c0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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>org.codehaus.gmaven</groupId> | |
| <artifactId>gmaven-plugin</artifactId> | |
| <version>1.5</version> | |
| <executions> | |
| <execution> | |
| <phase>initialize</phase> | |
| <goals> | |
| <goal>execute</goal> | |
| </goals> | |
| <configuration> | |
| <source> | |
| /* If required | |
| System.setProperty('http.proxyHost', host) | |
| System.setProperty('http.proxyPort', port) | |
| */ | |
| def tmpDir = System.getProperty('java.io.tmpdir') | |
| File file = new File(tmpDir, 'graphviz-2.38.zip') | |
| def ant = new AntBuilder() | |
| if (!file.exists()) | |
| ant.get(src: "http://www.graphviz.org/pub/graphviz/stable/windows/${file.name}", dest: file) | |
| if (!new File(tmpDir, 'release').exists()) | |
| ant.unzip(src: file.absolutePath, dest: tmpDir, overwrite: true) | |
| </source> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just setup other plugins to use
${java.io.tmpdir}/release/bin/dot.exeas dot executable.