I’m trying to build the development version of the zwave binding but getting mvn errors. No issues w/ master branch. Any idea what I’m missing? It seems like it might be a connector issue w/ bintray. Any help appreciated.
mvn install -DskipTests
[INFO] Scanning for projects...
Downloading: http://oss.jfrog.org/libs-snapshot/org/openhab/binding/pom/2.0.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://oss.jfrog.org/libs-snapshot/org/openhab/binding/pom/2.0.0-SNAPSHOT/maven-metadata.xml (582 B at 2.0 KB/sec)
[WARNING] Could not transfer metadata org.openhab.binding:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-smarthome (http://download.eclipse.org/smarthome/updates-stable): Cannot access http://download.eclipse.org/smarthome/updates-stable with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Could not transfer metadata org.openhab.binding:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-openhab-core (https://dl.bintray.com/openhab/p2/openhab-core/2.0.0.x): Cannot access https://dl.bintray.com/openhab/p2/openhab-core/2.0.0.x with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Could not transfer metadata org.openhab.binding:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-openhab-deps-repo (https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.10): Cannot access https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.10 with type p2 using the available connector factories: BasicRepositoryConnectorFactory
Downloading: http://oss.jfrog.org/libs-snapshot/org/openhab/addons/pom/2.0.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://oss.jfrog.org/libs-snapshot/org/openhab/addons/pom/2.0.0-SNAPSHOT/maven-metadata.xml (581 B at 2.9 KB/sec)
[WARNING] Could not transfer metadata org.openhab.addons:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-smarthome (http://download.eclipse.org/smarthome/updates-stable): Cannot access http://download.eclipse.org/smarthome/updates-stable with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Could not transfer metadata org.openhab.addons:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-openhab-core (https://dl.bintray.com/openhab/p2/openhab-core/2.0.0.x): Cannot access https://dl.bintray.com/openhab/p2/openhab-core/2.0.0.x with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Could not transfer metadata org.openhab.addons:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-openhab-deps-repo (https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.10): Cannot access https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.10 with type p2 using the available connector factories: BasicRepositoryConnectorFactory
Downloading: http://oss.jfrog.org/libs-snapshot/org/openhab/pom/2.0.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://oss.jfrog.org/libs-snapshot/org/openhab/pom/2.0.0-SNAPSHOT/maven-metadata.xml (574 B at 3.1 KB/sec)
[WARNING] Could not transfer metadata org.openhab:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-smarthome (http://download.eclipse.org/smarthome/updates-stable): Cannot access http://download.eclipse.org/smarthome/updates-stable with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Could not transfer metadata org.openhab:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-openhab-core (https://dl.bintray.com/openhab/p2/openhab-core/2.0.0.x): Cannot access https://dl.bintray.com/openhab/p2/openhab-core/2.0.0.x with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Could not transfer metadata org.openhab:pom:2.0.0-SNAPSHOT/maven-metadata.xml from/to p2-openhab-deps-repo (https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.10): Cannot access https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.10 with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[INFO] Computing target platform for MavenProject: org.openhab.binding:org.openhab.binding.zwave:2.1.0-SNAPSHOT @ c:\Users\ellisbjohns\openhab2-master\git\org.openhab.binding.zwave\pom.xml
[INFO] Fetching p2.index from http://download.eclipse.org/smarthome/updates-stable/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/smarthome/updates-stable
[INFO] Adding repository https://dl.bintray.com/openhab/p2/openhab-core/2.0.0.x
[INFO] Adding repository https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.10
[INFO] Resolving dependencies of MavenProject: org.openhab.binding:org.openhab.binding.zwave:2.1.0-SNAPSHOT @ c:\Users\ellisbjohns\openhab2-master\git\org.openhab.binding.zwave\pom.xml
[INFO] Resolving class path of MavenProject: org.openhab.binding:org.openhab.binding.zwave:2.1.0-SNAPSHOT @ c:\Users\ellisbjohns\openhab2-master\git\org.openhab.binding.zwave\pom.xml
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ZWave Binding 2.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- tycho-packaging-plugin:0.24.0:build-qualifier (default-build-qualifier) @ org.openhab.binding.zwave ---
[INFO] The project's OSGi version is 2.1.0.201706092313
[INFO]
[INFO] --- tycho-packaging-plugin:0.24.0:validate-id (default-validate-id) @ org.openhab.binding.zwave ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.24.0:validate-version (default-validate-version) @ org.openhab.binding.zwave ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ org.openhab.binding.zwave ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory c:\Users\ellisbjohns\openhab2-master\git\org.openhab.binding.zwave\src\main\resources
[INFO]
[INFO] --- tycho-compiler-plugin:0.24.0:compile (default-compile) @ org.openhab.binding.zwave ---
[WARNING] The effective compiler target level 1.8 is incompatible with the following OSGi execution environments: [JavaSE-1.7 (assumes 1.7)] @ MavenProject: org.openhab.binding:org.openhab.binding.zwave:2.1.0-SNAPSHOT @ c:\Users\ellisbjohns\openhab2-master\git\org.openhab.binding.zwave\pom.xml
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default) @ org.openhab.binding.zwave ---
[INFO] Changes detected - recompiling the module!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ org.openhab.binding.zwave ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory c:\Users\ellisbjohns\openhab2-master\git\org.openhab.binding.zwave\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (compiletests) @ org.openhab.binding.zwave ---
[INFO] Changes detected - recompiling the module!
[INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
[INFO] Found 0 errors and 0 warnings.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.754 s
[INFO] Finished at: 2017-06-09T19:13:38-04:00
[INFO] Final Memory: 26M/447M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:testCompile (compiletests) on project org.openhab.binding.zwave: Compilation failure -> [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/MojoFailureException
Found a solution: Changed the maven pom file’s source and target config to 1.7 (i.e. testCompile goal) and skiped the tests (i.e. mvn install -DskipTests). See beow
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
<executions>
<execution>
<id>compiletests</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>