Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Unable to locally deploy generated Java client with Maven #35

Open
syedashrafulla opened this issue Nov 26, 2017 · 0 comments
Open

Unable to locally deploy generated Java client with Maven #35

syedashrafulla opened this issue Nov 26, 2017 · 0 comments

Comments

@syedashrafulla
Copy link

syedashrafulla commented Nov 26, 2017

I used the following commands:

> cd ~
> virtualenv test
> cd test
> source bin/activate
> pip install google-apis-client-generator
> curl -o discovery.json "https://monitoring.googleapis.com/\$discovery/rest?version=v3"
> generate_library --input=discovery.json --language=java --output_dir=monitoring-client-library
> mkdir repo
> cd monitoring-client-library
> mvn deploy -DaltDeploymentRepository=snapshot-repo::default::file:///$HOME/test/repo/

The error I get is
[ERROR] Failed to execute goal on project google-api-services-monitoring: Could not resolve dependencies for project com.google.apis:google-api-services-monitoring:jar:v3-rev20171115-1.22.0-SNAPSHOT: Failure to find com.google.api-client:google-api-client:jar:1.22.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repos

The Nexus repo manager only has 1.15-beta.

P.S. I'm new to Java and Maven so it's probable I just don't know what to modify in the generated pom.xml.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant