Skip to content

Commit 8ba7ccd

Browse files
Java: Add os-maven-plugin example to README (valkey-io#3003)
* Java: Add os-maven-plugin example to README --------- Signed-off-by: James Xin <[email protected]>
1 parent a1360c2 commit 8ba7ccd

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

java/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ dependencies {
9292
```
9393

9494
Maven:
95-
- **IMPORTANT** must include a `classifier`. Please use this dependency block and add it to the pom.xml file.
95+
- **IMPORTANT** must include a `classifier`. Please use this dependency block, or both the dependency and the extension blocks if you're using `os-maven-plugin`, and add it to the pom.xml file.
9696
```xml
9797

9898
<!--osx-aarch_64-->
@@ -118,6 +118,24 @@ Maven:
118118
<classifier>linux-x86_64</classifier>
119119
<version>[1.0.0,2.0.0)</version>
120120
</dependency>
121+
122+
<!--with os-maven-plugin-->
123+
<build>
124+
<extensions>
125+
<extension>
126+
<groupId>kr.motd.maven</groupId>
127+
<artifactId>os-maven-plugin</artifactId>
128+
</extension>
129+
</extensions>
130+
</build>
131+
<dependencies>
132+
<dependency>
133+
<groupId>io.valkey</groupId>
134+
<artifactId>valkey-glide</artifactId>
135+
<classifier>${os.detected.classifier}</classifier>
136+
<version>[1.0.0,2.0.0)</version>
137+
</dependency>
138+
</dependencies>
121139
```
122140

123141
SBT:

0 commit comments

Comments
 (0)