Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate definitions of dependency in the pom.xml file is causing the failure while running bigtable test. #3579

Closed
suhasm21 opened this issue Aug 17, 2018 · 1 comment
Assignees
Labels
api: bigtable Issues related to the Bigtable API. dependencies priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@suhasm21
Copy link

https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/google-cloud-clients/google-cloud-bigtable/pom.xml#L44

Duplicate definitions of dependency in the pom.xml file is causing the failure. (grpc-google-cloud-bigtable-admin-v2)

$ mvn verify -am -pl google-cloud-bigtable -Dbigtable.env=prod -Dbigtable.table=projects/PROJECT_ID/instances/INSTANCE_ID/tables/my-table

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.api.grpc:grpc-google-cloud-bigtable-admin-v2:jar -> duplicate declaration of version (?) @ line 73, column 17
[ERROR] Non-resolvable import POM: Could not find artifact com.google.cloud:google-cloud-bom:pom:0.58.1-alpha-SNAPSHOT @ com.google.cloud:google-cloud-clients:0.58.1-alpha-SNAPSHOT, /home/suhasm/google-cloud-java/google-cloud-clients/pom.xml, line 174, column 19
[ERROR] 'dependencies.dependency.version' for com.google.cloud:google-cloud-core:jar is missing. @ line 21, column 17
[ERROR] 'dependencies.dependency.version' for com.google.cloud:google-cloud-core-grpc:jar is missing. @ line 25, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api.grpc:proto-google-cloud-bigtable-v2:jar is missing. @ line 29, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api.grpc:grpc-google-cloud-bigtable-v2:jar is missing. @ line 33, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api.grpc:proto-google-cloud-bigtable-admin-v2:jar is missing. @ line 38, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api.grpc:grpc-google-cloud-bigtable-admin-v2:jar is missing. @ line 73, column 17
[ERROR] 'dependencies.dependency.version' for com.google.cloud:google-cloud-core:test-jar is missing. @ line 67, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api:gax-grpc:jar:testlib is missing. @ line 93, column 17
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.google.cloud:google-cloud-bigtable:0.58.1-alpha-SNAPSHOT (/home/suhasm/google-cloud-java/google-cloud-clients/google-cloud-bigtable/pom.xml) has 9 errors
[ERROR] Non-resolvable import POM: Could not find artifact com.google.cloud:google-cloud-bom:pom:0.58.1-alpha-SNAPSHOT @ com.google.cloud:google-cloud-clients:0.58.1-alpha-SNAPSHOT, /home/suhasm/google-cloud-java/google-cloud-clients/pom.xml, line 174, column 19 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for com.google.cloud:google-cloud-core:jar is missing. @ line 21, column 17
[ERROR] 'dependencies.dependency.version' for com.google.cloud:google-cloud-core-grpc:jar is missing. @ line 25, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api.grpc:proto-google-cloud-bigtable-v2:jar is missing. @ line 29, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api.grpc:grpc-google-cloud-bigtable-v2:jar is missing. @ line 33, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api.grpc:proto-google-cloud-bigtable-admin-v2:jar is missing. @ line 38, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api.grpc:grpc-google-cloud-bigtable-admin-v2:jar is missing. @ line 73, column 17
[ERROR] 'dependencies.dependency.version' for com.google.cloud:google-cloud-core:test-jar is missing. @ line 67, column 17
[ERROR] 'dependencies.dependency.version' for com.google.api:gax-grpc:jar:testlib is missing. @ line 93, column 17
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

@JustinBeckwith JustinBeckwith added the triage me I really want to be triaged. label Aug 18, 2018
@yihanzhen yihanzhen added priority: p2 Moderately-important priority. Fix may not be included in next release. dependencies api: bigtable Issues related to the Bigtable API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Aug 20, 2018
@JustinBeckwith JustinBeckwith removed the triage me I really want to be triaged. label Aug 20, 2018
@garrettjonesgoogle
Copy link
Member

I think the real problem is Could not find artifact com.google.cloud:google-cloud-bom:pom:0.58.1-alpha-SNAPSHOT.

Run mvn install -DskipTests in the root directory before running your command that is specific to google-cloud-bigtable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the Bigtable API. dependencies priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants