Maven Windows Service Installer Common Library

Maven plugin to build installers with Windows service support.

License

License

GroupId

GroupId

com.alexkasko.installer
ArtifactId

ArtifactId

windows-service-installer-common
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

Maven Windows Service Installer Common Library
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 windows-service-installer-common

How to add to project

<!-- https://jarcasting.com/artifacts/com.alexkasko.installer/windows-service-installer-common/ -->
<dependency>
    <groupId>com.alexkasko.installer</groupId>
    <artifactId>windows-service-installer-common</artifactId>
    <version>1.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.alexkasko.installer/windows-service-installer-common/
implementation 'com.alexkasko.installer:windows-service-installer-common:1.0.6'
// https://jarcasting.com/artifacts/com.alexkasko.installer/windows-service-installer-common/
implementation ("com.alexkasko.installer:windows-service-installer-common:1.0.6")
'com.alexkasko.installer:windows-service-installer-common:jar:1.0.6'
<dependency org="com.alexkasko.installer" name="windows-service-installer-common" rev="1.0.6">
  <artifact name="windows-service-installer-common" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.alexkasko.installer', module='windows-service-installer-common', version='1.0.6')
)
libraryDependencies += "com.alexkasko.installer" % "windows-service-installer-common" % "1.0.6"
[com.alexkasko.installer/windows-service-installer-common "1.0.6"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

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