Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Keep Jetty instance alive in daemon mode after maven command completes

I can't seem to get any input on this.  Maybe it wasn't sent to the mailing
list, don't know.

Anyway, I didn't think my question was real hard to answer.

I'm looking for a configuration that allows me to start a jetty instance in
deamon mode that keeps running until a jetty:stop command is issued.  So
that testers can test software in a CI environment with automated deploys.


My config:

<plugin>
                        <groupId>org.mortbay.jetty</groupId>
                        <artifactId>jetty-maven-plugin</artifactId>
                        <version>8.1.5.v20120716</version>
                        <configuration>
                            <contextPath>/bulk-uploader</contextPath>
                            <stopKey>stopherding</stopKey>
                            <stopPort>9999</stopPort>
                           
<jettyXml>src/main/resources/env/${env}/jetty.xml</jettyXml>
                            <daemon>true</daemon>
                            <webApp>
                                <contextPath>/bulk-uploader</contextPath>
                            </webApp>
                        </configuration>
                        <executions>
                            <execution>
                                <id>deploy</id>
                                <phase>install</phase>
                                <goals>
                                    <goal>deploy-war</goal>
                                </goals>
                                <configuration>
                                    <reload>manual</reload>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>



--
View this message in context: http://jetty.4.n6.nabble.com/Keep-Jetty-instance-alive-in-daemon-mode-after-maven-command-completes-tp4959365p4959383.html
Sent from the Jetty User mailing list archive at Nabble.com.


Back to the top