1. Summary
2. Features
3. Goals
5. Usage
6. Example
This plugin is designed to create a complete GETDOWN - project, which includes the getdown.txt, digest.txt and digest2.txt. The getdown.txt will be created from a jnlp - File. The maven-webstart-plugin creates the needed jnlp - File. Further this plugin is able to sign your code with a specific keystore. However this feature is only optional (see Features).
| Feature | Description |
|---|---|
| getdown.txt - generation | The plugin will create your getdown.txt with all the needed infromation by itself. For more information considering the getdown.txt - file visite the original wiki! |
| digest[2].txt - generation | The Generation of the digest - files (digest.txt and digest2.txt) will also happen automatically. These digest - files include the hashes of your project files. With these hashes Getdown is able to tell if it has to update or redownload any files. |
| signing | Optionally you can provide a keystore, with which the plugin should sign your files. If you don't provide any keystore - files the plugin will not sign anything. |
There are a few different goals, which can be declared in the plugin configuration inside your pom.xml - file.
-
getdowntxt
This goal will trigger the getdown - creation. This includes the files getdown.txt, digest.txt and digest2.txt. -
digest
This goal will sign your the files, which has been created by the getdowntxt - goal, if you provide a keystore.
jnlpfilepoints to the generated jnlp - File
appbasedefines the source path to the source - Files
appdirdefines the output directory for the getdown - files (default{project.basedir}\target\will be used)
versiondefines the current version (default it will be set tonull)
allow_offlinedefines if getdown is allowed to execute the application if no connection to appbase is established (default it will be set tofalse)
ui_backgrounddefines the background color which is shown when the background image is not set or is not loaded (default it will be set tonull)
ui_background_imagedefines the location of the background image (default it will be set tonull)
ui_error_backgrounddefines the location of the error background image (default it will be set tonull)
ui_icondefines the location of the icon image (default it will be set tonull)
ui_progressdefines the dimensions of the rectangle in which the progress displays (default it will be set tonull)eg. "17,321,358,22"
17 pixels from the left of the window
321 pixels from the top of the window
458 pixels wide
22 pixels tall
ui_progress_bardefines the color of the progressbar (default it will be set tonull)
ui_progress_textdefines the color of the progressbar text (default it will be set toblack)
ui_progress_imagedefines the image of the progressbar (default it will be set tonull)
ui_statusdefines the color of the status text (default it will be set toblack)
ui_text_shadowdefinest the color of the text shadow (default it will be set tonullso shadow is disabled)
ui_hide_decorationsdefines if ui decorations should be hidden (default it will befalse)
ui_min_show_secondsdefines the minimum show tim for getdown (default it will be set to5s)
ui_install_errordefines the URL which will be shown if an error occurs (default it will be set tonull)
ui_mac_dock_icondefines the location of the dock icon for MACs (default it will be set tonull)
jvmargsdefines the arguments for the JVM (more values possible see Example, default it will be set tonull)
appargsdefines the arguments for your application (more values possible see Example, default it will be set tonull)
keystoredefines the location of the keystore.jks for code signing (default it will be set tonullso signing is disabled)
storepassdefines the password for the keystore.jks (default it will be set tonull)
aliasdefines the alias for the used key in your keystore (default it will be set tonull)
<project>
...
<dependencies>
...
<dependency>
<!-- getdown -->
</dependency>
...
</dependencies>
...
<build>
...
<!-- webstart-maven-plugin -->
...
<plugin>
<groupId>info.margreiter.getdown</groupId>
<artifactId>webstart2getdown-maven-plugin</artifactId>
<version>1.0.2</version> <!-- version can be different -->
<executions>
<execution>
<phase>package</phase>
<goals>
<!-- define goals here | see goals - section for more information -->
</goals>
<configuration>
<!-- define configuration here | see configuration - section for more information -->
</configuration>
</execution>
</executions>
</plugin>
...
</build>
...
<pluginRepositories>
<pluginRepository>
<id>getdown-maven-github-repo</id>
<url>https://thomasx.github.io/webstart2getdown-maven-plugin/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
...
</project>https://github.com/thomasX/webstart2getdown-maven-plugin-example1