sonos-java icon indicating copy to clipboard operation
sonos-java copied to clipboard

Cannot find cling-core:jar

Open ontolo-zz opened this issue 13 years ago • 3 comments

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.018s [INFO] Finished at: Sat Jul 21 15:03:58 BST 2012 [INFO] Final Memory: 4M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonos-java: Could not resolve dependencies for project org.tensin.sonos:sonos-java:jar:1.0.0-SNAPSHOT: Could not find artifact org.teleal.cling:cling-core:jar:1.0.5 in central (http://repo1.maven.org/maven2) -> [Help 1] [ERROR]

ontolo-zz avatar Jul 21 '12 14:07 ontolo-zz

You have to add this repository : http://teleal.org/m2/ (or http://4thline.org/m2/ ) in order to get in your local repository the cling* jar. (as i'm using a maven repository on my side (nexus) i don't put the additionnal repositories in the pom.xml of my projects, i just have to configure my main nexus repo)

SR-G avatar Jul 21 '12 14:07 SR-G

I was looking for the same information, and the bug list should not be the place to find it. I will suggest this is added to either the README file or a wiki page.

Write something easy and copy/pasteable like

How To Build

To enable the required maven repositories add the following profile to your settings.xml

 <profiles>
    <profile>
      <id>4thline</id>
      <repositories>
        <repository>
          <id>4thline.org-repo</id>
          <url>http://4thline.org/m2</url>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>

To activate by default add:

  <activeProfiles>
    <activeProfile>4thline</activeProfile>
  </activeProfiles>

more information on mavens settings.xml can be found at http://maven.apache.org/settings.html

Phylock avatar Mar 12 '13 20:03 Phylock

Good point. I just added those informations in the README file. Thanks for the reminder.

SR-G avatar Mar 12 '13 20:03 SR-G