Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] How to use the maven repo for release 1.0

Hello,

I tried using the maven repo (with gradle) a few weeks ago and failed. Now since 1.0 is released I thought I should try again. Last time I ended up downloading the matt-client jar manually.


I have gotten this far:

If I change this (from http://www.eclipse.org/paho/clients/java/ which doesn’t work):
<dependency>
        <groupId>org.eclipse.paho</groupId>
        <artifactId>mqtt-client</artifactId>
        <version>%VERSION%</version>
</dependency>
to this:
<dependency>
        <groupId>org.eclipse.paho</groupId>
        <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
        <version>1.0.0</version>
</dependency>

But then the pom-file contains "${paho.version}” which doesn’t work. Perhaps I can define that myself but that can’t be correct? In gradle I just specify:

compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.+’
Which means that it will automatically fetch the latest 1.0-release I guess. It won’t define any paho-version variable.

What am I doing wrong? I can’t understand how this is supposed to work.


Best regards,
Gustav

Back to the top