|
|
Re: Can't build Paho Java project [message #1176913 is a reply to message #1176773] |
Fri, 08 November 2013 16:44 |
|
I was able to:
git clone git://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.java.git
cd org.eclipse.paho.mqtt.java.git
mvn package
NB you may prefer to run
mvn package -Dmaven.test.skip=true
(on a Mac running Mavericks with Java 7)
That was master / 0.4.0 - I'm just building develop now.
Developer Advocate | Eclipse Paho project | mqtt.org | andypiper.me
|
|
|
Re: Can't build Paho Java project [message #1176920 is a reply to message #1176913] |
Fri, 08 November 2013 16:46 |
|
... now built the develop branch with the same set of commands, works.
Regarding your questions about 0.2.1 - yes it is MQTT 3.1-compliant and it is stable. You don't get the asynchronous API that was added after 0.3.x though, and the version from the git repo is generally in better shape overall.
Developer Advocate | Eclipse Paho project | mqtt.org | andypiper.me
|
|
|
Re: Can't build Paho Java project [message #1176973 is a reply to message #1176920] |
Fri, 08 November 2013 17:35 |
Valerio Ferrantelli Messages: 3 Registered: November 2013 |
Junior Member |
|
|
Hi Andy,
thanks for your reply!
I've used your commands and I confirm that source code is downloaded and built.
But now, how can I open it into Eclipse, read, modify and rebuild it?
If I perform the following steps:
- open eclipse (kepler, java7 installed, fedora linux)
- import -> existing proj into workspace
- selecting the org.eclipse.paho.mqtt.java folder (the folder downloaded and built with your commands)
- 3 projs are found (mqttv3, mqttv3/internal/traceformat, mqttv3app)
- finish
---> 2022 errors found, for example:
Assert cannot be resolved
AfterClass cannot be resolved
BeforeClass cannot be resolved
ClientComms cannot be resolved
Thanks for your support, it is very important and useful for me.
BR
Valerio
|
|
|
Re: Can't build Paho Java project [message #1177068 is a reply to message #1176973] |
Fri, 08 November 2013 18:56 |
|
Right, that looks like a library path issue on the Eclipse projects. I have raised a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=421363
There are a few projects so it is worth understanding what they are:
org.eclipse.paho.client.mqttv3 is the client library (which uses the internal traceformat project)
org.eclipse.paho.sample.mqttv3app is the basic set of samples (which use the client library)
org.eclipse.paho.sample.utility is a GUI utility which also uses the client library, but I do not think it ever has been set up as an Eclipse workspace project.
org.eclipse.paho.client.mqttv3 *should* just build (I haven't checked for myself lately). If it doesn't, try adding the traceformat project to the library path for it in project settings.
The others probably need the library project mqttv3 added to their paths.
BTW, most of the developers hang out on the mailing list https://dev.eclipse.org/mailman/listinfo/paho-dev and you'll find that much more active than these web-based forums.
Please do contribute any comments and detail on the bugzilla ticket with your setup and progress so we can try to get this fixed quickly for you.
Developer Advocate | Eclipse Paho project | mqtt.org | andypiper.me
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03390 seconds