2015-05-13 06:12:07 -04:00
|
|
|
Running the ActiveMQ Artemis Examples
|
2014-10-31 06:20:28 -04:00
|
|
|
============================
|
|
|
|
|
|
|
|
To run an individual example firstly cd into the example directory and run
|
|
|
|
|
2015-08-05 15:33:20 -04:00
|
|
|
```sh
|
|
|
|
mvn verify
|
2014-10-31 06:20:28 -04:00
|
|
|
```
|
2015-08-05 15:33:20 -04:00
|
|
|
|
|
|
|
Most examples offer a way to start them without creating and starting the server (say if you want to do it manually)
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mvn verify -PnoServer
|
2014-10-31 06:20:28 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
If you are running against an un released version, i.e. from master branch, you will have to run `mvn install` on the root
|
2014-11-19 14:58:44 -05:00
|
|
|
pom.xml and the example/activemq-jms-examples-common/pom.xml first.
|
2014-10-31 06:20:28 -04:00
|
|
|
|
2015-08-05 15:33:20 -04:00
|
|
|
If you want to run all the examples (except those that need to be run standalone) you can run `mvn verify -Pexamples` in the examples
|
2014-10-31 06:20:28 -04:00
|
|
|
directory but before you do you will need to up the memory used by running:
|
|
|
|
|
|
|
|
```
|
|
|
|
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
|
|
|
|
```
|
|
|
|
### Recreating the examples
|
|
|
|
|
|
|
|
If you are trying to copy the examples somewhere else and modifying them. Consider asking Maven to explicitly list all the dependencies:
|
|
|
|
|
|
|
|
```
|
|
|
|
# if trying to modify the 'topic' example:
|
|
|
|
cd examples/jms/topic && mvn dependency:list
|
|
|
|
```
|