syndesisio / syndesis-rest

The API for Syndesis - a flexible, customizable, cloud-hosted platform that provides core integration capabilities as a service. It leverages Red Hat's existing product architecture using OpenShift Online/Dedicated and Fuse Integration Services.
https://syndesis-staging.b6ff.rh-idev.openshiftapps.com/api/v1/
Apache License 2.0
6 stars 17 forks source link

swagger-maven-plugin complains about missing junit dependency #56

Closed dsimansk closed 7 years ago

dsimansk commented 7 years ago

When I've tried to build the project locally, the process fails during runtime module execution of swagger:generate.

iPaaS API Java :: Project .......................... SUCCESS [  1.058 s]
iPaaS API Java :: API .............................. SUCCESS [  8.288 s]
iPaaS API Java :: Swagger UI Customizations ........ SUCCESS [  0.063 s]
iPaaS API Java :: Runtime .......................... FAILURE [  0.755 s]
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 10.466 s
Finished at: 2017-01-16T13:41:04+01:00
Final Memory: 58M/490M
------------------------------------------------------------------------
Failed to execute goal com.github.kongchen:swagger-maven-plugin:3.1.4:generate (default) on
project runtime: Execution default of goal com.github.kongchen:swagger-maven-
plugin:3.1.4:generate failed: Plugin com.github.kongchen:swagger-maven-plugin:3.1.4 or one of its
dependencies could not be resolved: Failure to find junit:junit:jar:4.8.2-redhat-1 in http://origin-
repository.jboss.org/nexus/content/groups/ea/ was cached in the local repository, resolution will
not be reattempted until the update interval of fuse-origin-ea-repository has elapsed or updates are forced -> [Help 1]
dsimansk commented 7 years ago

@jimmidyson closing this one. I've found out that my maven settings.xml caused the issue, for some reason Central repo was skipped in favor of RH ones.