Bumped verision 0.7

This commit is contained in:
andrea
2015-07-08 19:54:29 +02:00
parent a1fb2115cd
commit f0a8346ef4
8 changed files with 53 additions and 51 deletions
+13 -41
View File
@@ -20,19 +20,16 @@ and into [WSO2 Messge broker] (http://techexplosives-pamod.blogspot.it/2014/05/m
Start play with it, download the self distribution tar from [BinTray](http://dl.bintray.com/andsel/generic/distribution-0.6-bundle-tar.tar.gz) , Start play with it, download the self distribution tar from [BinTray](http://dl.bintray.com/andsel/generic/distribution-0.6-bundle-tar.tar.gz) ,
the un untar and start the broker listening on 1883 port and enjoy! the un untar and start the broker listening on 1883 port and enjoy!
``` ```
tar zxf distribution-0.6-bundle-tar.tar.gz tar zxf distribution-0.7-bundle-tar.tar.gz
cd bin cd bin
./moquette.sh ./moquette.sh
``` ```
### Running inside OSGi container Or if you are on Windows shell
Starting from version 0.6 Moquette is OSGi compliant, to see it in action:
``` ```
mvn clean install; cd bin
cd bundle; .\moquette.bat
mvn install pax:provision ```
```
## Embedding in other projects ## Embedding in other projects
To embed Moquette in another maven project is sufficient to include a repository and declare the dependency: To embed Moquette in another maven project is sufficient to include a repository and declare the dependency:
@@ -56,9 +53,9 @@ Include dependency in your project:
``` ```
<dependency> <dependency>
<groupId>org.dna.mqtt</groupId> <groupId>org.eclipse.moquette</groupId>
<artifactId>moquette-broker</artifactId> <artifactId>moquette-broker</artifactId>
<version>0.6</version> <version>0.7</version>
</dependency> </dependency>
``` ```
@@ -68,36 +65,11 @@ After a git clone of the repository, cd into the cloned sources and: `mvn clean
In distribution/target directory will be produced the selfcontained tar for the broker with all dependencies and a running script. In distribution/target directory will be produced the selfcontained tar for the broker with all dependencies and a running script.
## SSL configuration ## Guide
Here are some simple steps to do to configure Moquette to serve over SSL
**Details ** **Documentation reference guide**
Moquette uses JavaKeyStore? and certificates to handle SSL. In order to expose it over SSL you have create a keystore for Web site http://andsel.github.io/moquette/
the broker (select the password), exporting a certificate and define 4 variables into moquette.conf.
**Developers resources**
**Create a keystore**
In a directory generate the keystore using the JRE's keytool:
```
keytool -keystore serverkeystore.jks -alias testserver -genkey -keyalg RSA
```
To make it work you have to answer at the first question, say moquette.dna.org and as password we could use passw0rdsrv
for both (keystore and keymanger)
**Export a certificate**
Then you need export a certificate:
```
keytool -export -alias testserver -keystore serverkeystore.jks -file testserver.crt
```
**Imporing on the client side**
Supposing you have already created the keystore for the client side, (name it clientkeystore for example), we could import the certificate with:
```
keytool -keystore clientkeystore.jks -import -alias testserver -file testserver.crt -trustcacerts
```
It's done! We just need use the Paho client to connect to the server, check ServerIntegrationSSLTest.java integration test to see how.
**Developers resources**
Google Group https://groups.google.com/forum/#!forum/moquette-mqtt Google Group https://groups.google.com/forum/#!forum/moquette-mqtt
+9 -1
View File
@@ -7,7 +7,7 @@
<!--<relativePath>../pom.xml</relativePath>--> <!--<relativePath>../pom.xml</relativePath>-->
<artifactId>moquette-parent</artifactId> <artifactId>moquette-parent</artifactId>
<groupId>org.eclipse.moquette</groupId> <groupId>org.eclipse.moquette</groupId>
<version>0.7-SNAPSHOT</version> <version>0.7</version>
</parent> </parent>
<artifactId>moquette-broker</artifactId> <artifactId>moquette-broker</artifactId>
@@ -17,6 +17,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bintray.package>org.dna.mqtt.moquette-broker</bintray.package>
</properties> </properties>
<dependencies> <dependencies>
@@ -179,4 +180,11 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<distributionManagement>
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/${bintray.repo}/${bintray.package}</url>
</repository>
</distributionManagement>
</project> </project>
@@ -41,7 +41,7 @@ public class Server {
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
final Server server = new Server(); final Server server = new Server();
server.startServer(); server.startServer();
System.out.println("Server started, version 0.7-SNAPSHOT"); System.out.println("Server started, version 0.7");
//Bind a shutdown hook //Bind a shutdown hook
Runtime.getRuntime().addShutdownHook(new Thread() { Runtime.getRuntime().addShutdownHook(new Thread() {
@Override @Override
+1 -1
View File
@@ -6,7 +6,7 @@
<!--<relativePath>../pom.xml</relativePath>--> <!--<relativePath>../pom.xml</relativePath>-->
<artifactId>moquette-parent</artifactId> <artifactId>moquette-parent</artifactId>
<groupId>org.eclipse.moquette</groupId> <groupId>org.eclipse.moquette</groupId>
<version>0.7-SNAPSHOT</version> <version>0.7</version>
</parent> </parent>
<artifactId>distribution</artifactId> <artifactId>distribution</artifactId>
+1 -1
View File
@@ -52,5 +52,5 @@ MOQUETTE_PATH=$MOQUETTE_HOME/
#LOG_FILE_LEVEL=fine #LOG_FILE_LEVEL=fine
JAVA_OPTS_SCRIPT="-XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true" JAVA_OPTS_SCRIPT="-XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true"
$JAVA -server $JAVA_OPTS $JAVA_OPTS_SCRIPT -Dlog4j.configuration="file:$LOG_FILE" -Dmoquette.path="$MOQUETTE_PATH" -cp "$MOQUETTE_HOME/lib/moquette-broker-0.7-SNAPSHOT.jar:$MOQUETTE_HOME/lib/*" org.eclipse.moquette.server.Server $JAVA -server $JAVA_OPTS $JAVA_OPTS_SCRIPT -Dlog4j.configuration="file:$LOG_FILE" -Dmoquette.path="$MOQUETTE_PATH" -cp "$MOQUETTE_HOME/lib/*" org.eclipse.moquette.server.Server
+8 -3
View File
@@ -7,7 +7,7 @@
<!--<relativePath>../pom.xml</relativePath>--> <!--<relativePath>../pom.xml</relativePath>-->
<artifactId>moquette-parent</artifactId> <artifactId>moquette-parent</artifactId>
<groupId>org.eclipse.moquette</groupId> <groupId>org.eclipse.moquette</groupId>
<version>0.7-SNAPSHOT</version> <version>0.7</version>
</parent> </parent>
<artifactId>moquette-netty-parser</artifactId> <artifactId>moquette-netty-parser</artifactId>
@@ -17,6 +17,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bintray.package>org.dna.mqtt.moquette-netty-parser</bintray.package>
</properties> </properties>
<dependencies> <dependencies>
@@ -89,6 +90,10 @@
</plugins> </plugins>
</build> </build>
<repositories> <distributionManagement>
</repositories> <repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/${bintray.repo}/${bintray.package}</url>
</repository>
</distributionManagement>
</project> </project>
+9 -1
View File
@@ -7,7 +7,7 @@
<!--<relativePath>../pom.xml</relativePath>--> <!--<relativePath>../pom.xml</relativePath>-->
<artifactId>moquette-parent</artifactId> <artifactId>moquette-parent</artifactId>
<groupId>org.eclipse.moquette</groupId> <groupId>org.eclipse.moquette</groupId>
<version>0.7-SNAPSHOT</version> <version>0.7</version>
</parent> </parent>
<artifactId>moquette-parser-commons</artifactId> <artifactId>moquette-parser-commons</artifactId>
@@ -17,6 +17,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bintray.package>org.dna.mqtt.moquette-parser-commons</bintray.package>
</properties> </properties>
<dependencies> <dependencies>
@@ -41,4 +42,11 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<distributionManagement>
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/${bintray.repo}/${bintray.package}</url>
</repository>
</distributionManagement>
</project> </project>
+11 -2
View File
@@ -7,15 +7,17 @@
<netty.version>4.0.24.Final</netty.version> <netty.version>4.0.24.Final</netty.version>
<source.version>1.7</source.version> <source.version>1.7</source.version>
<target.version>1.7</target.version> <target.version>1.7</target.version>
<bintray.repo>andsel/maven</bintray.repo>
<bintray.parent.package>org.dna.mqtt.moquette-parent</bintray.parent.package>
</properties> </properties>
<groupId>org.eclipse.moquette</groupId> <groupId>org.eclipse.moquette</groupId>
<artifactId>moquette-parent</artifactId> <artifactId>moquette-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>0.7-SNAPSHOT</version> <version>0.7</version>
<name>Moquette MQTT parent</name> <name>Moquette MQTT parent</name>
<url>http://code.google.com/p/moquette-mqtt/</url> <url>https://github.com/andsel/moquette/</url>
<modules> <modules>
@@ -62,4 +64,11 @@
<url>https://oss.sonatype.org/content/repositories/snapshots</url> <url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository> </repository>
</repositories> </repositories>
<distributionManagement>
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/${bintray.repo}/${bintray.parent.package}</url>
</repository>
</distributionManagement>
</project> </project>