Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

[resolved] Error to run oauth2 example

Hi all,
I follow the README file to run the oauth2 example but  have error to start the service:
Starting the service
---------------------------------------
* In the servlet container
cd war; mvn jetty:run-war

It has some error:

BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.279 s
Finished at: 2014-11-03T13:32:48-05:00
Final Memory: 9M/183M
------------------------------------------------------------------------
Failed to execute goal on project jaxrs-oauth2-service-war: Could not re
solve dependencies for project org.talend.cxf-examples.jaxrs-oauth-example:jaxrs
-oauth2-service-war:war:1.0: Failed to collect dependencies at org.talend.cxf-ex
amples.jaxrs-oauth-example:jaxrs-oauth2-service:jar:1.0: Failed to read artifact
descriptor for org.talend.cxf-examples.jaxrs-oauth-example:jaxrs-oauth2-service
:jar:1.0: Could not find artifact org.talend.cxf-examples:talend-cxf-examples0683p000009MAB6.pngo
m:1.0 in central () ->

To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please rea
d the following articles:

lutionException

Could you please help me?
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Kai
You have to build it first.
First build an examples parent pom, if it is a jaxrs_oauth2 folder then the examples pom would be two folders up. Do "mvn install --non-recursive" there, next do cxf examples pom build the same way (one folder up from the jaxrs_oauth2 folder). Then build the jaxrs_oauth2 example.
Let me know how it goes please
Sergey

View solution in original post

3 Replies
Anonymous
Not applicable

Hi Kai
You have to build it first.
First build an examples parent pom, if it is a jaxrs_oauth2 folder then the examples pom would be two folders up. Do "mvn install --non-recursive" there, next do cxf examples pom build the same way (one folder up from the jaxrs_oauth2 folder). Then build the jaxrs_oauth2 example.
Let me know how it goes please
Sergey
_AnonymousUser
Specialist III
Specialist III
Author

Hi  sberyozkin,

THanks, it works.  You are so nice. You saved my day.
Anonymous
Not applicable

Np at all :-). Thanks for experimenting with the demo...
Sergey