Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 18046 invoked from network); 4 Apr 2007 18:52:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2007 18:52:05 -0000 Received: (qmail 77743 invoked by uid 500); 4 Apr 2007 18:52:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 77727 invoked by uid 500); 4 Apr 2007 18:52:11 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 77718 invoked by uid 99); 4 Apr 2007 18:52:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 11:52:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 11:52:03 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HZAa7-0006bg-DG for users@activemq.apache.org; Wed, 04 Apr 2007 11:51:43 -0700 Message-ID: <9843254.post@talk.nabble.com> Date: Wed, 4 Apr 2007 11:51:43 -0700 (PDT) From: Tim Morrow 2 To: users@activemq.apache.org Subject: Forking activemq with maven plugin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tim.morrow@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm in the process of automating my container tests, part of which includes spinning up an ActiveMQ instance for the duration of running the tests. I found the maven plugin and it works great for starting ActiveMQ, the problem being that it blocks the Maven build process. I'd like to be able to fork it, continue with the maven build, then kill it when I'm done. Similar problems occur with other plugins, for example Jetty. However, I can run Jetty using Cargo, which has an option to fork. I don't _think_ Maven provides a way of doing this. Is there a way to coerce ActiveMQ, when run from the Maven plugin, to fork? There are plenty of other solutions, of course. * I could simply run ActiveMQ from maven as a java class, but I can't seem to find if there is a main class with AMQ 4.x * I could create a Spring config that boots an embedded broker and write a small Main class to startup Spring (does anyone know if there is such a class in Spring already) Is there a link to the source code of the maven plugin? I'd like to see the source of BrokerMojo, but I can't seem to find it anywhere. Thanks in advance, Tim -- View this message in context: http://www.nabble.com/Forking-activemq-with-maven-plugin-tf3527573s2354.html#a9843254 Sent from the ActiveMQ - User mailing list archive at Nabble.com.