Skip to content

alexkasko/windows-service-installer

Repository files navigation

Maven plugin to build installers with Windows service support

This plugin allows to build installers with support to be installed and run as Windows service. Installer is based on izPack, PrunSrv is used for Windows service management.

Maven-generated site.

Plugin usage

Add common library as a dependency:

<dependency>
    <groupId>com.alexkasko.installer</groupId>
    <artifactId>windows-service-installer-common</artifactId>
    <version>1.0.6</version>
</dependency>

Implement com.alexkasko.installer.DaemonLauncher in application launcher class:

public class Launcher implements DaemonLauncher {
    public void startDaemon() {
        // start application background thread
    }
    public void stopDaemon() {
        // stop (interrupt) application background thread
    }
}

Add plugin to build part of pom file:

<plugin>
    <!-- to be run with "mvn windows-service-installer:installer" -->
    <groupId>com.alexkasko.installer</groupId>
    <artifactId>maven-windows-service-installer-plugin</artifactId>
    <version>1.0.6</version>
    <dependencies>
        <dependency>
            <groupId>com.alexkasko.installer</groupId>
            <artifactId>windows-service-installer-common</artifactId>
            <version>1.0.6</version>
        </dependency>
    </dependencies>
    <configuration>
        ...
    </configuration>
</plugin>

Run mvn windows-service-installer:installer to build installer.

License information

This project is released under the Apache License 2.0

Changelog

1.0.6 (2014-09-17)

  • support for custom packs
  • icons customizations
  • extended support for eng locale

1.0.5 (2014-08-02)

  • use absolute paths for app dirs
  • allow to use x86 launchers for x86_64 installers

1.0.3 (2014-01-25)

  • allow to not start service immediately after installation

1.0.2 (2013-12-17)

  • initial public version

About

Maven plugin to build installers with Windows service support

Resources

License

Stars

Watchers

Forks

Packages

No packages published