Add top-level pom to samples
This commit is contained in:
19
README.md
19
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
|
||||
|
||||
|
||||
89
pom.xml
Normal file
89
pom.xml
Normal file
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.springframework.amqp</groupId>
|
||||
<artifactId>spring-amqp-samples</artifactId>
|
||||
<name>Spring AMQP Distribution</name>
|
||||
<version>1.0.0.BUILD-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>helloworld</module>
|
||||
<module>stocks</module>
|
||||
</modules>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>staging</id>
|
||||
<properties>
|
||||
<dist.staging>/${java.io.tmpdir}/spring-amqp/dist</dist.staging>
|
||||
</properties>
|
||||
<distributionManagement>
|
||||
<site>
|
||||
<id>spring-site-staging</id>
|
||||
<url>file:///${java.io.tmpdir}/spring-amqp/docs/${project.version}</url>
|
||||
</site>
|
||||
<repository>
|
||||
<id>spring-milestone-staging</id>
|
||||
<url>file:///${java.io.tmpdir}/spring-amqp/milestone</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>spring-snapshot-staging</id>
|
||||
<url>file:///${java.io.tmpdir}/spring-amqp/snapshot</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
</profile>
|
||||
</profiles>
|
||||
<scm>
|
||||
<url>http://github.com/SpringSource/spring-amqp-samples</url>
|
||||
<connection>scm:git:git://github.com/SpringSource/spring-amqp-samples.git</connection>
|
||||
<developerConnection>scm:git:git://github.com/SpringSource/spring-amqp-samples.git</developerConnection>
|
||||
</scm>
|
||||
<distributionManagement>
|
||||
<!-- see 'staging' profile for dry-run deployment settings -->
|
||||
<downloadUrl>http://github.com/SpringSource/spring-amqp-samples</downloadUrl>
|
||||
<site>
|
||||
<id>spring-site</id>
|
||||
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-amqp/docs/${project.version}</url>
|
||||
</site>
|
||||
<repository>
|
||||
<id>spring-milestone</id>
|
||||
<name>Spring Milestone Repository</name>
|
||||
<url>s3://maven.springframework.org/milestone</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>spring-snapshot</id>
|
||||
<name>Spring Snapshot Repository</name>
|
||||
<url>s3://maven.springframework.org/snapshot</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<!-- available only in the springframework maven repository. see <repositories> section below -->
|
||||
<groupId>org.springframework.build.aws</groupId>
|
||||
<artifactId>org.springframework.build.aws.maven</artifactId>
|
||||
<version>3.0.0.RELEASE</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
</build>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>repository.springframework.maven.release</id>
|
||||
<name>Spring Framework Maven Release Repository</name>
|
||||
<url>http://maven.springframework.org/release</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>repository.springframework.maven.milestone</id>
|
||||
<name>Spring Framework Maven Milestone Repository</name>
|
||||
<url>http://maven.springframework.org/milestone</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<!-- necessary for org.springframework.build.aws.maven dependency -->
|
||||
<id>repository.source.maven.release</id>
|
||||
<name>SpringSource Maven Release Repository</name>
|
||||
<url>http://repository.springsource.com/maven/bundles/release</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</project>
|
||||
Reference in New Issue
Block a user