eclipse-paho / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.15k stars 893 forks source link

paho.mqtt.java fails to build from source #691

Open lordterrial opened 5 years ago

lordterrial commented 5 years ago

Running on a raspberry pi 3, Description: Ubuntu 18.04.2 LTS Release: 18.04

$mvn package -DskipTests

[INFO] -----------< org.eclipse.paho:org.eclipse.paho.mqtt.utility >----------- [INFO] Building org.eclipse.paho.mqtt.utility 1.2.1 [5/5] [INFO] --------------------------------[ jar ]--------------------------------- Downloading from cbi: https://repo.eclipse.org/content/repositories/cbi-releases/org/apache/maven/plugins/maven-source-plugin/3.0.1/maven-source-plugin-3.0.1.pom Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/3.0.1/maven-source-plugin-3.0.1.pom Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/3.0.1/maven-source-plugin-3.0.1.pom (5.7 kB at 96 kB/s) Downloading from cbi: https://repo.eclipse.org/content/repositories/cbi-releases/org/apache/maven/plugins/maven-source-plugin/3.0.1/maven-source-plugin-3.0.1.jar Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/3.0.1/maven-source-plugin-3.0.1.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/3.0.1/maven-source-plugin-3.0.1.jar (31 kB at 499 kB/s) Downloading from cbi: https://repo.eclipse.org/content/repositories/cbi-releases/org/apache/maven/plugins/maven-javadoc-plugin/3.0.0/maven-javadoc-plugin-3.0.0.pom Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin/3.0.0/maven-javadoc-plugin-3.0.0.pom Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin/3.0.0/maven-javadoc-plugin-3.0.0.pom (18 kB at 210 kB/s) Downloading from cbi: https://repo.eclipse.org/content/repositories/cbi-releases/org/apache/maven/plugins/maven-javadoc-plugin/3.0.0/maven-javadoc-plugin-3.0.0.jar Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin/3.0.0/maven-javadoc-plugin-3.0.0.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin/3.0.0/maven-javadoc-plugin-3.0.0.jar (416 kB at 2.5 MB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/paho/org.eclipse.paho.client.mqttv3/1.2.2/org.eclipse.paho.client.mqttv3-1.2.2.pom [WARNING] The POM for org.eclipse.paho:org.eclipse.paho.client.mqttv3:jar:1.2.2 is missing, no dependency information available Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/paho/org.eclipse.paho.client.mqttv3/1.2.2/org.eclipse.paho.client.mqttv3-1.2.2.jar [ERROR] Failed to execute goal on project org.eclipse.paho.mqtt.utility: Could not resolve dependencies for project org.eclipse.paho:org.eclipse.paho.mqtt.utility:jar:1.2.1: Failure to find org.eclipse.paho:org.eclipse.paho.client.mqttv3:jar:1.2.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :org.eclipse.paho.mqtt.utility

CraigGemmill commented 5 years ago

Is this planned to be addressed? I am seeing the same problem today (9-Sept). I even get it when I switch to v1.2.1 tag. With v1.2.0 I get an error too, but it seems to be related to something else.

icraggs commented 5 years ago

For now you can build by specifying the project:

mvn package -DskipTests --projects org.eclipse.paho.client.mqttv3

as is done on the Travis builds.

rdasgupt commented 4 years ago

Could you try with the latest 1.2.2 master branch. I could successfully build on:

lsb_release -a

LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic

java -version

openjdk version "11.0.5" 2019-10-15 OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04) OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing)

mvn -version

Apache Maven 3.6.0 Maven home: /usr/share/maven Java version: 11.0.5, vendor: Private Build, runtime: /usr/lib/jvm/java-11-openjdk-amd64

mvn package -DskipTests

.... .... [INFO] Building jar: /root/paho.mqtt.java/org.eclipse.paho.sample.utility/target/org.eclipse.paho.mqtt.utility-1.2.2-javadoc.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Eclipse Paho 1.2.2: [INFO] [INFO] Eclipse Paho ....................................... SUCCESS [ 0.743 s] [INFO] org.eclipse.paho.client.mqttv3 ..................... SUCCESS [ 10.357 s] [INFO] org.eclipse.paho.client.mqttv3.test ................ SUCCESS [ 11.577 s] [INFO] Paho P2 Repository ................................. SUCCESS [ 1.277 s] [INFO] org.eclipse.paho.mqtt.utility ...................... SUCCESS [ 46.122 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:14 min [INFO] Finished at: 2020-01-24T19:50:54Z [INFO] ------------------------------------------------------------------------