Sitelet https://github.com/googleapis/google-cloud-java/issues/3579
Skip to content

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

Description

@suhasm21

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigtableIssues related to the Bigtable API.dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions