cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2165
Views
0
Helpful
3
Replies

intelliJ/Maven CS SDK issue

EU UC Support
Level 4
Level 4

Hi


I have been following the getting started guide to try and register with the context services. Followed all the steps as per the following

https://developer.cisco.com/site/context-service/discover/getting-started/

I am having issues trying to run the register class. Each time i get the following error:

Error:(4, 39) java: package com.cisco.thunderhead.connector does not exist

Error:(5, 36) java: package com.cisco.thunderhead.plugin does not exist

Its like itellij isnt able to find the Maven repository to locate the packages. Checked through all settings and everything looks good. First time user of both applications so hoepfully a pretty simple mistake.

Thanks.

1 Accepted Solution

Accepted Solutions

Hi

Seemed to be some roague dependies in my POM file. Removing that issue and then running mvn clean install seemed to do the trick.


Thanks

View solution in original post

3 Replies 3

vchhabra
Level 5
Level 5

Can you confirm that you have the latest SDK 1.0.7 and you have updated your POM file? Also, we had some service registration backend issues earlier this week that are now resolved.

Hi

Seemed to be some roague dependies in my POM file. Removing that issue and then running mvn clean install seemed to do the trick.


Thanks

rdediana
Cisco Employee
Cisco Employee

I'm experiencing the same issue.

i'm following the getting started guide

https://developer.cisco.com/site/context-service/discover/getting-started/

Error:(6, 39) java: package com.cisco.thunderhead.connector does not exist

Error:(7, 36) java: package com.cisco.thunderhead.plugin does not exist

i've added the required dependencies to the pom.xml file:

the compiler is highlighting the <version>2.0.1</version> with an error: dependency not found

<dependencies>

   <dependency>

        <groupId>com.cisco.thunderhead</groupId>

        <artifactId>context-service-sdk</artifactId>

        <version>2.0.1</version>

   </dependency>

   <dependency>

        <groupId>commons-logging</groupId>

        <artifactId>commons-logging</artifactId>

       <version>1.2</version>

   </dependency>

</dependencies>


<edit>

[ERROR]

[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

RDEDIANA-M-H1S6:cs-example regandediana$ mvn clean install

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building sdk-example 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[WARNING] The POM for com.cisco.thunderhead:context-service-sdk:jar:2.0.1 is missing, no dependency information available

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.298 s

[INFO] Finished at: 2017-06-20T17:52:03-04:00

[INFO] Final Memory: 8M/245M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project sdk-example: Could not resolve dependencies for project com.cisco.thunderhead:sdk-example:jar:1.0-SNAPSHOT: Failure to find com.cisco.thunderhead:context-service-sdk:jar:2.0.1 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

</edit>


any thoughts our suggestions would be greatly appreciated.

Regan