Skip to main content

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

I'm finding the 1.0.1 snapshot very stable and using it via Gradle in Android Studio etc.


On Wed, Aug 27, 2014 at 4:51 PM, Al Stockdill-Mander <asm@xxxxxxxx> wrote:
Christian,

We make the Paho jar available through maven via an eclipse hosted repository, the details are in the download section of the java client page (http://www.eclipse.org/paho/clients/java/)
If you're using a build system such as Gradle that won't do variable expansion in pom files then you're correct, there is no Paho 1.0.0 jar available via maven that will work, there is only the SNAPSHOT release (which to be honest is pretty stable at the moment, https://hudson.eclipse.org/paho/job/paho-java-dev-nightly/ and there haven't been any changes for a couple of weeks - http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.java.git/log/?h=develop)

Al


On 27/08/14 15:54, Christian Götz wrote:
Hi Al,
Hi Ian,

thanks for your replies.
Just for my understanding, there is no stable version of Paho 1.X
available at the moment via Maven?

I'm asking because I'm giving a tutorial at IotCon in Berlin next Monday
and I wanted to use Paho 1.0.0 to build a device simulator and it would
have been great to use Paho via Maven like all the other libraries.

Thanks,
Christian



Al Stockdill-Mander wrote:
Sorry, I meant to reply on this earlier, thanks Ian. I'm guessing the
problem Christian and Gustav are having is due to using something like
gradle that won't do variable expansion. The 1.0.1-SNAPSHOT release
doesn't use variable expansion in the pom files anymore and has
resolved similar issues for people trying to incorporate it into
something like Android Studio.

On 26/08/14 18:00, Ian Craggs wrote:
Hi Christian, Gustav,

I spoke to Al this morning who said that this is intended to be fixed in
the 1.1 release.   He suggested using 1.0.1-SNAPSHOT for now (I don't
know if/how this will help).   (Just in case you haven't seen it, the
description for getting the Paho Java client through Maven is on this
page: https://www.eclipse.org/paho/clients/java/).

I've raised a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=442613

To install into the Eclipse IDE you can use the update site:
http://download.eclipse.org/paho.

Ian


On 08/26/2014 04:51 AM, Christian Götz wrote:
Hi everybody,

I have the same problem as Gustav, I can't get the Paho 1.0.0 version
from Maven.

My IDE gives me the following error: "invalid uri
'http://<internal-ip>/nexus/content/groups/public//org/eclipse/paho/java-parent/${paho.version}/java-parent-${paho.version}.pom':

escaped absolute path not valid"

Is there any way to get the Paho 1.0.0 release through Maven?

Thanks,
Christian


Gustav Sohtell wrote:
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>
then it finds the pom-file
(https://repo.eclipse.org/content/repositories/paho-releases/org/eclipse/paho/org.eclipse.paho.client.mqttv3/1.0.0/org.eclipse.paho.client.mqttv3-1.0.0.pom).



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
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

--
Ian Craggs
icraggs@xxxxxxxxxx                  IBM United Kingdom
Committer on Paho, Mosquitto



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



--
Andy Piper | Kingston upon Thames, London (UK)
blog: http://andypiper.co.uk   |   skype: andypiperuk
twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper

Back to the top