Coder Social home page Coder Social logo

windows-service-installer's Introduction

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

windows-service-installer's People

Stargazers

Barbicane avatar Matías Dumrauf avatar Sergey Baranov avatar Trayan Azarov avatar Brandon Fish avatar Leandro Kersting de Freitas avatar Todd avatar  avatar  avatar Emerson Castaneda avatar

Watchers

 avatar James Cloos avatar Alex Kashchenko avatar Michael Marcenich avatar  avatar

windows-service-installer's Issues

java.lang.NoClassDefFoundError: com/google/common/collect/EmptyImmutableList$1

I'm getting this error when I run mvn clean insall

Exception in thread "Thread-6" java.lang.NoClassDefFoundError: com/google/common/collect/EmptyImmutableList$1
        at com.google.common.collect.ImmutableList.of(ImmutableList.java:68)
        at com.google.common.collect.ImmutableList.copyFromCollection(ImmutableList.java:294)
        at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:260)
        at ru.concerteza.util.concurrency.CallableList.call(CallableList.java:45)
        at ru.concerteza.util.concurrency.CallableList.call(CallableList.java:19)
        at ru.concerteza.util.concurrency.CtzConcurrencyUtils$CallableWrapper.run(CtzConcurrencyUtils.java:35)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.EmptyImmutableList$1
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 7 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.