Giter VIP home page Giter VIP logo

Comments (4)

kaikreuzer avatar kaikreuzer commented on June 6, 2024

Hi Ronald,

The missing artifacts are available in a Maven repo at https://raw.githubusercontent.com/openhab/openhab.repo/master/ https://raw.githubusercontent.com/openhab/openhab.repo/master/
This repo is referenced in https://github.com/openhab/openhab2/blob/master/distribution/pom.xml#L96 https://github.com/openhab/openhab2/blob/master/distribution/pom.xml#L96, so it should be automatically used by the Maven build.

In my case, I see this in the log file:
Downloading: https://repo.eclipse.org/content/repositories/snapshots/org/eclipse/smarthome/binding/org.eclipse.smarthome.binding.lifx/0.8.0-SNAPSHOT/maven-metadata.xml
Downloading: https://raw.githubusercontent.com/openhab/openhab.repo/master/org/eclipse/smarthome/binding/org.eclipse.smarthome.binding.lifx/0.8.0-SNAPSHOT/org.eclipse.smarthome.binding.lifx-0.8.0-SNAPSHOT.jar
[WARNING] Checksum validation failed, no checksums available from the repository for https://raw.githubusercontent.com/openhab/openhab.repo/master/org/eclipse/smarthome/binding/org.eclipse.smarthome.binding.lifx/0.8.0-SNAPSHOT/org.eclipse.smarthome.binding.lifx-0.8.0-SNAPSHOT.jar
Downloaded: https://raw.githubusercontent.com/openhab/openhab.repo/master/org/eclipse/smarthome/binding/org.eclipse.smarthome.binding.lifx/0.8.0-SNAPSHOT/org.eclipse.smarthome.binding.lifx-0.8.0-SNAPSHOT.jar (267 KB at 465.1 KB/sec)
Downloading: https://repo.eclipse.org/content/repositories/snapshots/org/openhab/ui/org.openhab.ui.paperui/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading: https://raw.githubusercontent.com/openhab/openhab.repo/master/org/openhab/ui/org.openhab.ui.paperui/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading: https://raw.githubusercontent.com/openhab/openhab.repo/master/org/openhab/ui/org.openhab.ui.paperui/2.0.0-SNAPSHOT/org.openhab.ui.paperui-2.0.0-SNAPSHOT.jar
[WARNING] Checksum validation failed, no checksums available from the repository for https://raw.githubusercontent.com/openhab/openhab.repo/master/org/openhab/ui/org.openhab.ui.paperui/2.0.0-SNAPSHOT/org.openhab.ui.paperui-2.0.0-SNAPSHOT.jar
Downloaded: https://raw.githubusercontent.com/openhab/openhab.repo/master/org/openhab/ui/org.openhab.ui.paperui/2.0.0-SNAPSHOT/org.openhab.ui.paperui-2.0.0-SNAPSHOT.jar (3300 KB at 1526.8 KB/sec)

Do you maybe have some Maven proxies defined that prevent this repo from being accessed?

Best regards,
Kai

Am 07.12.2014 um 16:18 schrieb Ronald Dehuysser [email protected]:

Hi all,

I'm author of another home automation framework called JMom NG. Since I prefer working in a larger opensource project and you guys are tackling my biggest concern with openHAB (usability), I like to help with the development op openHAB.

And now the stupid question: I cloned into the repo and in Eclipse all is fine... I then tried to run mvn clean install and I get exceptions due to missing dependencies.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.777 s
[INFO] Finished at: 2014-12-07T16:00:32+01:00
[INFO] Final Memory: 79M/727M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (distro-assembly) on project distribution: Failed to create assembly: Unable to
resolve dependencies for assembly 'runtime': Failed to resolve dependencies for: runtime: Missing:
[ERROR] ----------
[ERROR] 1) org.eclipse.smarthome.binding:org.eclipse.smarthome.binding.lifx:jar:0.8.0-SNAPSHOT
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.eclipse.smarthome.binding -DartifactId=org.eclipse.smarthome.binding.lifx -Dversion=0.8.0-SNAPSHOT -Dpackaging=jar -Dfile=
/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse.smarthome.binding -DartifactId=org.eclipse.smarthome.binding.lifx -Dversion=0.8.0-SNAPSHOT -Dpackaging=jar -Dfile=/p
ath/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] 2) org.openhab.ui:org.openhab.ui.paperui:jar:2.0.0-SNAPSHOT
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.openhab.ui -DartifactId=org.openhab.ui.paperui -Dversion=2.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.openhab.ui -DartifactId=org.openhab.ui.paperui -Dversion=2.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dr
epositoryId=[id]
I looked into the eclipse smarthome repository and the dependency for org.eclipse.smarthome.binding.lifx is indeed not published. The paperui dependency/module I also can not find in the cloned openHAB2 project.

What am I missing?

Kind regards,
Ronald


Reply to this email directly or view it on GitHub #70.

from openhab-addons.

rdehuyss avatar rdehuyss commented on June 6, 2024

Hi Kai,

thanks for your fast reaction. It wasn't due to maven proxies but due to my own nexus which was configured as a <mirrorOf>*</mirrorOf>. And this is apparently evil :-)... see: http://justaddwater.dk/2012/01/20/maven-mirrorof-in-settings-xml-breaks-the-build/

All works when I changed it to be <mirrorOf>central</mirrorOf>.

Learned something new already!

Thanks!
Ronald

from openhab-addons.

kaikreuzer avatar kaikreuzer commented on June 6, 2024

Glad it was so easy to solve :-)

from openhab-addons.

alanamircruz avatar alanamircruz commented on June 6, 2024

Hello everyone, I almost got crazy with this one.

But I do share my settings.xml used for my maven installation in server, behind a proxy and ran through a Jenkins docker container for Build Pipelines (Blue Ocean). If somebody finds it useful, here you go c:

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <activeProfiles>
    <activeProfile>my-nexus</activeProfile>
    <activeProfile>mvn-repo</activeProfile>
  </activeProfiles>

<!-- Jenkins mvn as bind mount. Here we need to set the mount path but for the container -v not to the local server -->
  <localRepository>/.m2/repository</localRepository>

<!-- Nexus -->
  <mirrors>
    <mirror>
      <id>my-nexus</id>
      <mirrorOf>central</mirrorOf>
      <name>my-nexus</name>
      <url>http://my.nexus.url/repository/maven-public/</url>
    </mirror>
    <mirror>
      <id>mvn-central</id>
      <name>Maven Central</name>
      <url>https://mvnrepository.com/</url>
      <mirrorOf>mvn-central</mirrorOf>
    </mirror>
    <mirror>
      <id>repo-maven</id>
      <name>Repo Maven</name>
      <url>https://repo.maven.apache.org/maven2</url>
      <mirrorOf>repo-maven</mirrorOf>
    </mirror>
    <mirror>
      <id>central</id>
      <name>Maven Plugin Repository</name>
      <url>https://repo1.maven.org/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>

  </mirrors>

  <pluginGroups></pluginGroups>

  <profiles>
    <profile>
      <id>my-nexus</id>
    </profile>   

    <profile>
      <id>mvn-repo</id>
 
      <repositories>
 
        <repository>
          <id>mvn-central</id>
          <name>Maven Central</name>
          <url>https://mvnrepository.com/</url>
        </repository>
 
        <repository>
          <id>repo-maven</id>
          <name>Repo Maven</name>
          <url>https://repo.maven.apache.org/maven2</url>
        </repository>
 
        <repository>
          <id>repo1-maven</id>
          <name>Repo1 Maven</name>
          <url>https://repo1.maven.org/maven2/</url>
        </repository>
 
        <repository> 
          <id>repository.spring.release</id>
          <name>Spring GA Repository</name>
          <url>https://repo.spring.io/plugins-release/</url>
        </repository>
 
      </repositories>
      <pluginRepositories>
        <pluginRepository>
            <id>repository.spring.release</id>
            <name>Spring GA Repository</name>
            <url>https://repo.spring.io/plugins-release/</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>

  </profiles>

  <proxies>
    <proxy>
      <active>true</active>
      <host>proxy.server.com</host>
      <id>proxy-server</id>
      <nonProxyHosts>127.0.0.1</nonProxyHosts>
      <port>3128</port>
      <protocol>http</protocol>
    </proxy>
  </proxies>

  <servers>
<!-- My-Nexus user and password -->
    <server>
     <id>my-nexus</id>
     <username>my_nexus_user</username>
     <password>PASSWORD</password>
    </server>
  </servers>
</settings>

from openhab-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.