Skip to content

Commit 5c68167

Browse files
committed
Merge branch '1.1.1'
Signed-off-by: James Sutton <[email protected]>
2 parents 28ae3dd + fee6d36 commit 5c68167

File tree

87 files changed

+1774
-660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1774
-660
lines changed

.github/ISSUE_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Please fill out the form below before submitting, thank you!
22

3-
- [ ] Bug exists Release Version 1.1.0 ( Master Branch)
4-
- [ ] Bug exists in Snapshot Version 1.1.1-SNAPSHOT (Develop Branch)
3+
- [ ] Bug exists Release Version 1.1.1 ( Master Branch)
4+
- [ ] Bug exists in Snapshot Version 1.1.2-SNAPSHOT (Develop Branch)
55

66
If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ Eclipse hosts a Nexus repository for those who want to use Maven to manage their
3131
Add the repository definition and the dependency definition shown below to your pom.xml.
3232

3333
Replace %REPOURL% with either ``` https://repo.eclipse.org/content/repositories/paho-releases/ ``` for the official releases, or ``` https://repo.eclipse.org/content/repositories/paho-snapshots/ ``` for the nightly snapshots. Replace %VERSION% with the level required .
34-
The latest release version is ```1.1.0``` and the current snapshot version is ```1.1.1-SNAPSHOT```.
34+
35+
The latest release version is ```1.1.1``` and the current snapshot version is ```1.1.2-SNAPSHOT```.
36+
3537

3638
```
3739
<project ...>

org.eclipse.paho.client.eclipse.feature/feature.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
id="org.eclipse.paho.client.eclipse.feature"
44
label="%featureName"
55
provider-name="%providerName"
6-
version="1.1.0">
6+
version="1.1.1">
7+
78

89
<description url="http://www.eclipse.org/paho/">
910
%description

org.eclipse.paho.client.eclipse.feature/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<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/xsd/maven-4.0.0.xsd">
22
<modelVersion>4.0.0</modelVersion>
3-
3+
44
<parent>
55
<groupId>org.eclipse.paho</groupId>
66
<artifactId>java-parent</artifactId>
7-
<version>1.1.0</version>
7+
<version>1.1.1</version>
88
</parent>
9-
9+
1010
<artifactId>org.eclipse.paho.client.eclipse.feature</artifactId>
1111
<packaging>eclipse-feature</packaging>
1212

org.eclipse.paho.client.eclipse.view/META-INF/MANIFEST.MF

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %bundle.name
44
Bundle-SymbolicName: org.eclipse.paho.client.eclipse.view;singleton:=true
5-
Bundle-Version: 1.1.0
5+
Bundle-Version: 1.1.1
66
Bundle-Activator: org.eclipse.paho.client.eclipse.view.Activator
77
Bundle-Vendor: %bundle.provider
88
Bundle-Localization: plugin

org.eclipse.paho.client.eclipse.view/pom.xml

+6-7
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
<parent>
55
<groupId>org.eclipse.paho</groupId>
66
<artifactId>java-parent</artifactId>
7-
<version>1.1.0</version>
7+
<version>1.1.1</version>
88
</parent>
9-
9+
1010
<artifactId>org.eclipse.paho.client.eclipse.view</artifactId>
1111
<packaging>eclipse-plugin</packaging>
12-
12+
1313
<build>
1414
<plugins>
1515
<plugin>
1616
<groupId>org.eclipse.tycho</groupId>
1717
<artifactId>tycho-maven-plugin</artifactId>
1818
</plugin>
19-
19+
2020
<plugin>
2121
<groupId>org.eclipse.tycho</groupId>
2222
<artifactId>tycho-compiler-plugin</artifactId>
@@ -27,7 +27,7 @@
2727
<target>${java.version}</target>
2828
</configuration>
2929
</plugin>
30-
30+
3131
<plugin>
3232
<groupId>org.apache.maven.plugins</groupId>
3333
<artifactId>maven-resources-plugin</artifactId>
@@ -56,5 +56,4 @@
5656
</plugin>
5757
</plugins>
5858
</build>
59-
</project>
60-
59+
</project>

org.eclipse.paho.client.mqttv3.internal.traceformat/build.xml

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
<property name="ship.folder" value="./target/ship" />
88
<!-- classpath.folder = ship.folder of org.eclipse.paho.client.mqttv3 build.xml -->
99
<property name="classpath.folder" value="../org.eclipse.paho.client.mqttv3/target/ship" />
10-
11-
<property name="client.release.version" value="1.1.0" />
12-
<property name="bundleVersion" value="1.1.0" />
10+
<property name="client.release.version" value="1.1.1" />
11+
<property name="bundleVersion" value="1.1.1" />
1312
<property name="bundleVendor" value="Eclipse.org" />
1413
<property name="build.level" value="LYYMMDD" />
1514
<property name="paho-client-v3-trace-jar" value="org.eclipse.paho.client.mqttv3.trace.jar" />

org.eclipse.paho.client.mqttv3.repository/category.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<site>
3-
<bundle id="org.eclipse.paho.client.mqttv3" version="1.1.0">
3+
<bundle id="org.eclipse.paho.client.mqttv3" version="1.1.1">
44
<category name="Paho MQTT Java"/>
55
</bundle>
6-
<bundle id="org.eclipse.paho.client.eclipse.view" version="1.1.0">
6+
<bundle id="org.eclipse.paho.client.eclipse.view" version="1.1.1">
77
<category name="Paho MQTT Java"/>
88
</bundle>
99
<category-def name="Paho MQTT Java" label="Paho MQTT Java">

org.eclipse.paho.client.mqttv3.repository/pom.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<parent>
44
<groupId>org.eclipse.paho</groupId>
55
<artifactId>java-parent</artifactId>
6-
<version>1.1.0</version>
6+
<version>1.1.1</version>
77
</parent>
8-
8+
99
<artifactId>org.eclipse.paho.client.mqttv3.repository</artifactId>
1010
<packaging>eclipse-repository</packaging>
11-
11+
1212
<name>Paho P2 Repository</name>
13-
13+
1414
<build>
1515
<plugins>
1616
<plugin>
@@ -60,7 +60,7 @@
6060
<sourceLocation>${project.build.directory}/repository</sourceLocation>
6161
</configuration>
6262
</execution>
63-
</executions>
63+
</executions>
6464
</plugin> -->
6565
</plugins>
6666
</build>

org.eclipse.paho.client.mqttv3.test/pom.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.eclipse.paho</groupId>
66
<artifactId>java-parent</artifactId>
7-
<version>1.1.0</version>
7+
<version>1.1.1</version>
88
</parent>
99

1010
<artifactId>org.eclipse.paho.client.mqttv3.test</artifactId>
@@ -47,13 +47,14 @@
4747
<artifactId>maven-surefire-plugin</artifactId>
4848
<version>2.15</version>
4949
<configuration>
50+
<reuseForks>false</reuseForks>
51+
<forkCount>1</forkCount>
5052
<systemPropertyVariables>
5153
<SERVER_URI>${test.server_uri}</SERVER_URI>
5254
</systemPropertyVariables>
5355
<excludes>
5456
<exclude>${test.exclude}</exclude>
5557
</excludes>
56-
<excludedGroups>org.eclipse.paho.client.mqttv3.test.ManualTest</excludedGroups>
5758
</configuration>
5859
</plugin>
5960
</plugins>
@@ -63,7 +64,7 @@
6364
<dependency>
6465
<groupId>org.eclipse.paho</groupId>
6566
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
66-
<version>1.1.0</version>
67+
<version>1.1.1</version>
6768
</dependency>
6869

6970
<dependency>

org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/BasicSSLTest.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@
1515

1616
import java.io.File;
1717
import java.net.URI;
18+
import java.util.UUID;
1819
import java.util.logging.Level;
1920
import java.util.logging.Logger;
2021

2122
import org.eclipse.paho.client.mqttv3.IMqttClient;
22-
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
23-
import org.eclipse.paho.client.mqttv3.MqttCallback;
24-
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
25-
import org.eclipse.paho.client.mqttv3.MqttException;
26-
import org.eclipse.paho.client.mqttv3.MqttMessage;
2723
import org.eclipse.paho.client.mqttv3.MqttTopic;
2824
import org.eclipse.paho.client.mqttv3.test.client.MqttClientFactoryPaho;
2925
import org.eclipse.paho.client.mqttv3.test.logging.LoggingUtilities;
@@ -51,6 +47,8 @@ public class BasicSSLTest {
5147
private static MqttClientFactoryPaho clientFactory;
5248
private static File keystorePath;
5349
private static int messageSize = 100000;
50+
private static String topicPrefix;
51+
5452

5553
/**
5654
* @throws Exception
@@ -66,6 +64,8 @@ public static void setUpBeforeClass() throws Exception {
6664
serverHost = serverURI.getHost();
6765
clientFactory = new MqttClientFactoryPaho();
6866
clientFactory.open();
67+
topicPrefix = "BasicSSLTest-" + UUID.randomUUID().toString() + "-";
68+
6969
}
7070
catch (Exception exception) {
7171
log.log(Level.SEVERE, "caught exception:", exception);
@@ -97,7 +97,7 @@ public static void tearDownAfterClass() throws Exception {
9797
* An ssl connection with server cert authentication, simple pub/sub
9898
* @throws Exception
9999
*/
100-
@Test
100+
@Test(timeout=10000)
101101
public void testSSL() throws Exception {
102102
URI serverURI = new URI("ssl://" + serverHost + ":" + TestProperties.getServerSSLPort());
103103
String methodName = Utility.getMethodName();
@@ -118,7 +118,7 @@ public void testSSL() throws Exception {
118118
log.info("Connecting...(serverURI:" + serverURI + ", ClientId:" + methodName);
119119
mqttClient.connect();
120120

121-
String[] topicNames = new String[]{methodName + "/Topic"};
121+
String[] topicNames = new String[]{topicPrefix + methodName + "/Topic"};
122122
int[] topicQos = {2};
123123
log.info("Subscribing to..." + topicNames[0]);
124124
mqttClient.subscribe(topicNames, topicQos);
@@ -160,7 +160,7 @@ public void testSSL() throws Exception {
160160
* An ssl connection with server cert authentication, small workload with multiple clients
161161
* @throws Exception
162162
*/
163-
@Test
163+
@Test(timeout=60000)
164164
public void testSSLWorkload() throws Exception {
165165
URI serverURI = new URI("ssl://" + serverHost + ":" + TestProperties.getServerSSLPort());
166166
String methodName = Utility.getMethodName();
@@ -170,7 +170,7 @@ public void testSSLWorkload() throws Exception {
170170
IMqttClient[] mqttPublisher = new IMqttClient[4];
171171
IMqttClient[] mqttSubscriber = new IMqttClient[20];
172172
try {
173-
String[] topicNames = new String[]{methodName + "/Topic"};
173+
String[] topicNames = new String[]{topicPrefix + methodName + "/Topic"};
174174
int[] topicQos = {0};
175175

176176
MqttTopic[] mqttTopic = new MqttTopic[mqttPublisher.length];
@@ -256,7 +256,7 @@ public void testSSLWorkload() throws Exception {
256256
* 'messageSize' defined at start of test, change it to meet your requirements
257257
* @throws Exception
258258
*/
259-
@Test
259+
@Test(timeout=10000)
260260
public void testSSLLargeMessage() throws Exception {
261261
URI serverURI = new URI("ssl://" + serverHost + ":" + TestProperties.getServerSSLPort());
262262
String methodName = Utility.getMethodName();
@@ -278,7 +278,7 @@ public void testSSLLargeMessage() throws Exception {
278278
log.info("Connecting...(serverURI:" + serverURI + ", ClientId:" + methodName);
279279
mqttClient.connect();
280280

281-
String[] topicNames = new String[]{methodName + "/Topic"};
281+
String[] topicNames = new String[]{topicPrefix + methodName + "/Topic"};
282282
int[] topicQos = {2};
283283
log.info("Subscribing to..." + topicNames[0]);
284284
mqttClient.subscribe(topicNames, topicQos);
@@ -322,7 +322,7 @@ public void testSSLLargeMessage() throws Exception {
322322
* A non ssl connection to an ssl channel
323323
* @throws Exception
324324
*/
325-
@Test
325+
@Test(timeout=10000)
326326
public void testNonSSLtoSSLChannel() throws Exception {
327327
String methodName = Utility.getMethodName();
328328
LoggingUtilities.banner(log, cclass, methodName);

org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/BasicTest.java

+11-6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import java.net.URI;
1717
import java.util.ArrayList;
18+
import java.util.UUID;
1819
import java.util.logging.Level;
1920
import java.util.logging.Logger;
2021

@@ -47,6 +48,8 @@ public class BasicTest {
4748

4849
private static URI serverURI;
4950
private static MqttClientFactoryPaho clientFactory;
51+
private static String topicPrefix;
52+
5053

5154
/**
5255
* @throws Exception
@@ -61,6 +64,8 @@ public static void setUpBeforeClass() throws Exception {
6164
serverURI = TestProperties.getServerURI();
6265
clientFactory = new MqttClientFactoryPaho();
6366
clientFactory.open();
67+
topicPrefix = "BasicTest-" + UUID.randomUUID().toString() + "-";
68+
6469
}
6570
catch (Exception exception) {
6671
log.log(Level.SEVERE, "caught exception:", exception);
@@ -90,7 +95,7 @@ public static void tearDownAfterClass() throws Exception {
9095
/**
9196
* @throws Exception
9297
*/
93-
@Test
98+
@Test(timeout=10000)
9499
public void testConnect() throws Exception {
95100
String methodName = Utility.getMethodName();
96101
LoggingUtilities.banner(log, cclass, methodName);
@@ -136,7 +141,7 @@ public void testConnect() throws Exception {
136141
/**
137142
* @throws Exception
138143
*/
139-
@Test
144+
@Test(timeout=10000)
140145
public void testHAConnect() throws Exception {
141146
String methodName = Utility.getMethodName();
142147
LoggingUtilities.banner(log, cclass, methodName);
@@ -186,14 +191,14 @@ public void testHAConnect() throws Exception {
186191
/**
187192
* @throws Exception
188193
*/
189-
@Test
194+
@Test(timeout=10000)
190195
public void testPubSub() throws Exception {
191196
String methodName = Utility.getMethodName();
192197
LoggingUtilities.banner(log, cclass, methodName);
193198

194199
IMqttClient client = null;
195200
try {
196-
String topicStr = "topic" + "_02";
201+
String topicStr = topicPrefix + "topic" + "_02";
197202
String clientId = methodName;
198203
client = clientFactory.createMqttClient(serverURI, clientId);
199204

@@ -236,7 +241,7 @@ public void testPubSub() throws Exception {
236241
/**
237242
* @throws Exception
238243
*/
239-
@Test
244+
@Test(timeout=10000)
240245
public void testMsgProperties() throws Exception {
241246
String methodName = Utility.getMethodName();
242247
LoggingUtilities.banner(log, cclass, methodName);
@@ -304,7 +309,7 @@ public void testMsgProperties() throws Exception {
304309
/**
305310
* @throws Exception
306311
*/
307-
@Test
312+
@Test(timeout=10000)
308313
public void testConnOptDefaults() throws Exception {
309314
String methodName = Utility.getMethodName();
310315
LoggingUtilities.banner(log, cclass, methodName);

0 commit comments

Comments
 (0)