From b585bac48f0da53eda49b5fe0091b41f175423f2 Mon Sep 17 00:00:00 2001 From: dsyer Date: Sun, 13 Mar 2011 13:20:09 +0000 Subject: [PATCH] Add top-level pom to samples --- README.md | 19 +++++++----- pom.xml | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 7 deletions(-) create mode 100644 pom.xml diff --git a/README.md b/README.md index 3b19210..19f67ea 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,18 @@ Install the [RabbitMQ](http://www.rabbitmq.com) broker first (version SpringSource ToolSuite users (or Eclipse users with the latest m2eclipse plugin) can import the projects as existing Maven projects. -The Stocks sample has a UI that can be launched either as a unit test -or as a Java main, and a daemon server process with the same -properties. They don't run from the Maven command line because their -classnames don't match the pattern configured in the project for unit -tests, but you can run them from an IDE easily. Run the `Server` and -then the `Client` and you should see a swing client pop up and stock -tickers appearing. +The Stocks sample has a UI that can be launched as a Java main, and a +daemon server process with the same properties. You can run them from +an IDE easily. Run the `Server` and then the `Client` and you should +see a swing client pop up and stock tickers appearing. To run from +the command line you can use the Maven exec plugin: + + $ mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass=org.springframework.amqp.rabbit.stocks.Server & + $ mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass=org.springframework.amqp.rabbit.stocks.Client + +In the example above we backgrounded the server process, or you could +run it in a different window to make things clearer in the console +logs. # Contributing to Spring AMQP Samples diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..600b799 --- /dev/null +++ b/pom.xml @@ -0,0 +1,89 @@ + + + 4.0.0 + org.springframework.amqp + spring-amqp-samples + Spring AMQP Distribution + 1.0.0.BUILD-SNAPSHOT + pom + + helloworld + stocks + + + UTF-8 + + + + staging + + /${java.io.tmpdir}/spring-amqp/dist + + + + spring-site-staging + file:///${java.io.tmpdir}/spring-amqp/docs/${project.version} + + + spring-milestone-staging + file:///${java.io.tmpdir}/spring-amqp/milestone + + + spring-snapshot-staging + file:///${java.io.tmpdir}/spring-amqp/snapshot + + + + + + http://github.com/SpringSource/spring-amqp-samples + scm:git:git://github.com/SpringSource/spring-amqp-samples.git + scm:git:git://github.com/SpringSource/spring-amqp-samples.git + + + + http://github.com/SpringSource/spring-amqp-samples + + spring-site + scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-amqp/docs/${project.version} + + + spring-milestone + Spring Milestone Repository + s3://maven.springframework.org/milestone + + + spring-snapshot + Spring Snapshot Repository + s3://maven.springframework.org/snapshot + + + + + + + org.springframework.build.aws + org.springframework.build.aws.maven + 3.0.0.RELEASE + + + + + + repository.springframework.maven.release + Spring Framework Maven Release Repository + http://maven.springframework.org/release + + + repository.springframework.maven.milestone + Spring Framework Maven Milestone Repository + http://maven.springframework.org/milestone + + + + repository.source.maven.release + SpringSource Maven Release Repository + http://repository.springsource.com/maven/bundles/release + + +