Sunday, June 21, 2015

Paho MQTT Java Client

Pho Java client is a MQTT client library written in Java. Paho Java client provides two APIs. 

Having decided to build from source, ran the below commands in Terminal 

git clone http://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.java.git

while trying to install using maven, using sudo install maven, it gave the below error. 

notice:configure --->  Configuring maven
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:error:configure maven is a stub, use maven1 instead.
:error:configure org.macports.configure for port maven returned: obsolete port
:debug:configure Error code: NONE
:debug:configure Backtrace: obsolete port
    while executing

This was corrected and the maven installed by just changing to sudo port install maven1 

also tried with the brew install maven
which installed maven 3.3 

after this ran the command 

mvn package -DskipTests

However, this seemed to fail with some compiler errors. 

I then decided to go with the source files to learn things on how the formatting is done etc.

References:

No comments:

Post a Comment