Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 40635 invoked from network); 21 Jul 2008 16:37:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jul 2008 16:37:16 -0000 Received: (qmail 93465 invoked by uid 500); 21 Jul 2008 16:37:15 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 93408 invoked by uid 500); 21 Jul 2008 16:37:15 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 93399 invoked by uid 99); 21 Jul 2008 16:37:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2008 09:37:15 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2008 16:36:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 18200238896E; Mon, 21 Jul 2008 09:36:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r678466 - in /cxf/trunk/distribution/src/main/release/samples/jms_queue: README.txt pom.xml Date: Mon, 21 Jul 2008 16:36:14 -0000 To: commits@cxf.apache.org From: seanoc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080721163615.18200238896E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: seanoc Date: Mon Jul 21 09:36:14 2008 New Revision: 678466 URL: http://svn.apache.org/viewvc?rev=678466&view=rev Log: Enabled demo to be built and run using maven. Updated README Added: cxf/trunk/distribution/src/main/release/samples/jms_queue/pom.xml Modified: cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt Modified: cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt?rev=678466&r1=678465&r2=678466&view=diff ============================================================================== --- cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt (original) +++ cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt Mon Jul 21 09:36:14 2008 @@ -26,6 +26,10 @@ javac, and java to build and run the demos, you must set the environment. + +Building and running the demo using ant +--------------------------------------- + This demo requires ActiveMQ 5.0.0. Before you run this demo, please make sure you had installed the ActiveMQ 5.0.0 and set ACTIVEMQ_HOME and ACTIVEMQ_VERSION environment variables. @@ -44,29 +48,6 @@ For Windows: set ACTIVEMQ_VERSION=5.0.0 - - -Before you run this demo, please start up the JMS message broker first. - -From your ActiveMQ 5.0.0 installation launch ActiveMQ JMS broker in a -separate window or in the background using the commandline: - -For Unix: - -cd /bin -activemq - -For Windows: -cd \bin -activemq.bat - -The location of depends on whether you have installed the -binary or source release. - - -Building and running the demo using ant ---------------------------------------- - From the base directory of this sample (i.e., where this README file is located), the Ant build.xml file can be used to build and run the demo. The server and client targets automatically build the demo. @@ -82,6 +63,24 @@ files, run "ant clean". +Building and running the demo using maven +--------------------------------------- + +From the base directory of this sample (i.e., where this README file is +located), the Ant build.xml file can be used to build and run the demo. + +Using either UNIX or Windows: + + mvn install (this will build the demo) + In separate command windows/shells: + mvn -Pjms.broker + mvn -Pserver + mvn -Pclient + +To remove the code generated from the WSDL file and the .class +files, run "mvn clean". + + Building the demo using wsdl2java and javac ------------------------------------------- Added: cxf/trunk/distribution/src/main/release/samples/jms_queue/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_queue/pom.xml?rev=678466&view=auto ============================================================================== --- cxf/trunk/distribution/src/main/release/samples/jms_queue/pom.xml (added) +++ cxf/trunk/distribution/src/main/release/samples/jms_queue/pom.xml Mon Jul 21 09:36:14 2008 @@ -0,0 +1,190 @@ + + + 4.0.0 + org.apache.cxf.samples + jms_queue + 1.0 + + [2,) + [5,) + + + src + + + maven-compiler-plugin + + 1.5 + 1.5 + + + + org.apache.cxf + cxf-codegen-plugin + LATEST + + + generate-sources + generate-sources + + + + ${basedir}/wsdl/jms_greeter.wsdl + + + + + wsdl2java + + + + + + + + + server + + test + + + org.codehaus.mojo + exec-maven-plugin + + + test + + java + + + demo.jms_greeter.server.Server + + ${basedir}/wsdl/jms_greeter.wsdl + + + + + + + + + + client + + test + + + org.codehaus.mojo + exec-maven-plugin + + + test + + java + + + demo.jms_greeter.client.Client + + ${basedir}/wsdl/jms_greeter.wsdl + + + + + + + + + + jms.broker + + test + + + org.codehaus.mojo + exec-maven-plugin + + + test + + java + + + demo.jms_greeter.broker.EmbeddedBroker + + + + + + + + + snapshots + + + apache-snapshots + Apache SNAPSHOT Repository + http://people.apache.org/repo/m2-snapshot-repository/ + + true + + + + + java.net + http://download.java.net/maven/1/ + legacy + + + + + apache-plugin-snapshots + Apache Maven Plugin Snapshots + http://people.apache.org/repo/m2-snapshot-repository + + false + + + true + + + + + + + + + java.net + http://download.java.net/maven/1/ + legacy + + + + + + org.apache.cxf + cxf-rt-frontend-jaxws + ${cxf.version} + + + org.apache.cxf + cxf-rt-transports-http + ${cxf.version} + + + + org.apache.cxf + cxf-rt-transports-http-jetty + ${cxf.version} + + + org.apache.cxf + cxf-rt-transports-jms + ${cxf.version} + + + org.apache.activemq + activemq-core + ${activemq.version} + + +