Skip to content

A plugin that builds installers using bootstrappers, commons-daemon and jsvc

Notifications You must be signed in to change notification settings

rubenqba/jsvc-maven-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Maven plugin that builds installers using bootstrappers, commons-daemon and jsvc.

Currently only the linux file system is supported.  An entry would looks like the following snippet with default values:

<build>
    <plugins>
        <plugin>
            <groupId>daemon-plugin</groupId>
            <artifactId>jsvc-maven-plugin</artifactId>
            <version>1.0-SNAPSHOT</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>daemonize</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <applicationConfiguration>
                    <name>${project.artifactId}</name>
                    <version>${project.version}</version>
                    <mainClass>my.daemon.MyDaemon</mainClass>
                    <arguments>-t 4</arguments>
                    <scriptName>${project.artifactId}</scriptName>
                </applicationConfiguration>
                <targetSystemConfiguration>
                    <javaHome>/usr/lib/jvm/java-6-openjdk-amd64</javaHome>
                    <applicationJarLocation>/var/lib/${project.artifactId}</applicationJarLocation>
                    <daemonJarLocation>/usr/share/java</daemonJarLocation>
                </targetSystemConfiguration>
                <daemonConfiguration>
                    <daemonUser>root</daemonUser>
                    <delayInMillis>20</delayInMillis>
                </daemonConfiguration>
            </configuration>
        </plugin>
    </plugins>
</build>

About

A plugin that builds installers using bootstrappers, commons-daemon and jsvc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 89.7%
  • Smalltalk 10.3%