Skip to content

Commit 57dcbc5

Browse files
authored
doc: add groupId in Maven query (#921)
When querying Maven central using the artifactId `operator-framework`, there were multiple matches: - One using the groupId: `com.github.containersolutions` - Another one using: `io.javaoperatorsdk` While is obvious that the right one is the one using the groupId `io.javaoperatorsdk`, we can avoid confusions by querying Maven central using both the artifactId and the group Id fields.
1 parent dee3819 commit 57dcbc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/documentation/use-samples.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ examples:
2626

2727
# Implementing a Sample Operator
2828

29-
Add [dependency](https://search.maven.org/search?q=a:operator-framework) to your project with Maven:
29+
Add [dependency](https://search.maven.org/search?q=a:operator-framework%20AND%20g:io.javaoperatorsdk) to your project with Maven:
3030

3131
```xml
3232

3333
<dependency>
3434
<groupId>io.javaoperatorsdk</groupId>
3535
<artifactId>operator-framework</artifactId>
36-
<version>{see https://search.maven.org/search?q=a:operator-framework for latest version}</version>
36+
<version>{see https://search.maven.org/search?q=a:operator-framework%20AND%20g:io.javaoperatorsdk for latest version}</version>
3737
</dependency>
3838
```
3939

@@ -188,14 +188,14 @@ public class QuarkusOperator implements QuarkusApplication {
188188

189189
You can also let Spring Boot wire your application together and automatically register the controllers.
190190

191-
Add [this dependency](https://search.maven.org/search?q=a:operator-framework-spring-boot-starter) to your project:
191+
Add [this dependency](https://search.maven.org/search?q=a:operator-framework-spring-boot-starter%20AND%20g:io.javaoperatorsdk) to your project:
192192

193193
```xml
194194

195195
<dependency>
196196
<groupId>io.javaoperatorsdk</groupId>
197197
<artifactId>operator-framework-spring-boot-starter</artifactId>
198-
<version>{see https://search.maven.org/search?q=a:operator-framework-spring-boot-starter for
198+
<version>{see https://search.maven.org/search?q=a:operator-framework-spring-boot-starter%20AND%20g:io.javaoperatorsdk for
199199
latest version}
200200
</version>
201201
</dependency>
@@ -224,7 +224,7 @@ necessary, but it doesn't need real access to a Kubernetes cluster.
224224
<dependency>
225225
<groupId>io.javaoperatorsdk</groupId>
226226
<artifactId>operator-framework-spring-boot-starter-test</artifactId>
227-
<version>{see https://search.maven.org/search?q=a:operator-framework-spring-boot-starter for
227+
<version>{see https://search.maven.org/search?q=a:operator-framework-spring-boot-starter%20AND%20g:io.javaoperatorsdk for
228228
latest version}
229229
</version>
230230
</dependency>

0 commit comments

Comments
 (0)