GoogleCloudPlatform / DataflowTemplates

Cloud Dataflow Google-provided templates for solving in-Cloud data tasks
https://cloud.google.com/dataflow/docs/guides/templates/provided-templates
Apache License 2.0
1.14k stars 950 forks source link

[Bug]: mvn profile activateByDefault conflicts each other #1737

Closed Abacn closed 3 weeks ago

Abacn commented 1 month ago

Related Template(s)

N/A

Template Version

N/A

What happened?

when multiple true profiles set, it only pick up one if it. See context: https://stackoverflow.com/questions/5309379/how-to-keep-maven-profiles-which-are-activebydefault-active-even-if-another-prof

This causes error like

ERROR] Rule 0: org.codehaus.mojo.extraenforcer.dependencies.EnforceBytecodeVersion failed with message:
[ERROR] The following artifacts could not be resolved: io.confluent:kafka-schema-serializer:jar:7.6.0, io.confluent:common-utils:jar:7.6.0, io.confluent:kafka-schema-registry-client:jar:7.6.0, io.confluent:kafka-avro-serializer:jar:7.6.0: io.confluent:kafka-schema-serializer:jar:7.6.0 was not found in https://splunk.jfrog.io/splunk/ext-releases-local during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of splunk-artifactory has elapsed or updates are forced

We should avoid using activeByDefault which is broken by design

Relevant log output

No response