forked from jeroenr/Maven-Jsvc-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
40 lines (37 loc) · 1.61 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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>