Skip to content

Openshift dependencies are downloaded when using the libraries #1311

Closed
@salaboy

Description

@salaboy

Bug Report

What did you do?

I've created a spring-boot application and I've added the following dependencies to my project:

	<dependency>
			<groupId>io.javaoperatorsdk</groupId>
			<artifactId>operator-framework-spring-boot-starter</artifactId>
			<version>3.0.0</version>
		</dependency>
		<dependency>
			<groupId>io.fabric8</groupId>
			<artifactId>crd-generator-apt</artifactId>
			<version>5.12.2</version>
			<scope>provided</scope>
		</dependency>
           <dependency>
			<groupId>io.javaoperatorsdk</groupId>
			<artifactId>operator-framework-spring-boot-starter-test</artifactId>
			<version>3.0.0</version>
		</dependency>

What did you expect to see?

I've expected only Kubernetes libraries to be downloaded, nothing specific to any Kubernetes distribution

What did you see instead? Under which circumstances?

All these dependencies get downloaded:

Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model/5.12.2/openshift-model-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model/5.12.2/openshift-model-5.12.2.pom (4.4 kB at 32 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-clusterautoscaling/5.12.2/openshift-model-clusterautoscaling-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-clusterautoscaling/5.12.2/openshift-model-clusterautoscaling-5.12.2.pom (3.3 kB at 26 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-operator/5.12.2/openshift-model-operator-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-operator/5.12.2/openshift-model-operator-5.12.2.pom (3.2 kB at 22 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-operatorhub/5.12.2/openshift-model-operatorhub-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-operatorhub/5.12.2/openshift-model-operatorhub-5.12.2.pom (3.9 kB at 21 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-machine/5.12.2/openshift-model-machine-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-machine/5.12.2/openshift-model-machine-5.12.2.pom (3.1 kB at 22 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-whereabouts/5.12.2/openshift-model-whereabouts-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-whereabouts/5.12.2/openshift-model-whereabouts-5.12.2.pom (3.2 kB at 23 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-monitoring/5.12.2/openshift-model-monitoring-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-monitoring/5.12.2/openshift-model-monitoring-5.12.2.pom (3.8 kB at 8.6 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-storageversionmigrator/5.12.2/openshift-model-storageversionmigrator-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-storageversionmigrator/5.12.2/openshift-model-storageversionmigrator-5.12.2.pom (3.3 kB at 23 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-tuned/5.12.2/openshift-model-tuned-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-tuned/5.12.2/openshift-model-tuned-5.12.2.pom (3.2 kB at 23 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-console/5.12.2/openshift-model-console-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-console/5.12.2/openshift-model-console-5.12.2.pom (3.2 kB at 23 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-machineconfig/5.12.2/openshift-model-machineconfig-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-machineconfig/5.12.2/openshift-model-machineconfig-5.12.2.pom (3.2 kB at 22 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-miscellaneous/5.12.2/openshift-model-miscellaneous-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-miscellaneous/5.12.2/openshift-model-miscellaneous-5.12.2.pom (3.4 kB at 25 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-hive/5.12.2/openshift-model-hive-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-hive/5.12.2/openshift-model-hive-5.12.2.pom (3.4 kB at 25 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-installer/5.12.2/openshift-model-installer-5.12.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/fabric8/openshift-model-installer/5.12.2/openshift-model-installer-5.12.2.pom (3.2 kB at 25 kB/s)

Environment

Kubernetes cluster type:

$ Mention java-operator-sdk version from pom.xml file

$ java -version

$ kubectl version

Possible Solution

Create separate dependencies for adding Openshift models to the project, if the implementation requires them.

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions