Maven Windows Service Installer Plugin

Maven plugin to build installers with Windows service support.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.alexkasko.installer
ArtifactId

ArtifactId

maven-windows-service-installer-plugin
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven Windows Service Installer Plugin
Maven plugin to build installers with Windows service support.
Project URL

Project URL

https://github.com/alexkasko/windows-service-installer
Source Code Management

Source Code Management

https://github.com/alexkasko/windows-service-installer

Download maven-windows-service-installer-plugin

How to add to project

<plugin>
    <groupId>com.alexkasko.installer</groupId>
    <artifactId>maven-windows-service-installer-plugin</artifactId>
    <version>1.0.6</version>
</plugin>

Dependencies

compile (10)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-project jar 2.2.1
org.codehaus.izpack : izpack-standalone-compiler jar 4.3.5
ru.concerteza.util : ctz-utils jar 2.10
commons-io : commons-io jar 2.1
commons-lang : commons-lang jar 2.4
org.springframework : spring-core jar 3.0.3.RELEASE
com.google.guava : guava jar 10.0
org.freemarker : freemarker jar 2.3.18
org.apache.commons : commons-compress jar 1.3

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.6
1.0.5
1.0.3
1.0.2