diff --git a/.github/workflows/samples-java-client-jdk11.yaml b/.github/workflows/samples-java-client-jdk11.yaml
new file mode 100644
index 000000000000..ba45ec604483
--- /dev/null
+++ b/.github/workflows/samples-java-client-jdk11.yaml
@@ -0,0 +1,37 @@
+name: Samples Java Client JDK11
+
+on:
+ push:
+ paths:
+ - 'samples/client/petstore/java/native**'
+ pull_request:
+ paths:
+ - 'samples/client/petstore/java/native**'
+jobs:
+ build:
+ name: Build Java Client JDK11
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ sample:
+ # clients
+ - samples/client/petstore/java/native
+ - samples/client/petstore/java/native-async
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v2
+ with:
+ distribution: 'temurin'
+ java-version: 11
+ - name: Cache maven dependencies
+ uses: actions/cache@v2.1.7
+ env:
+ cache-name: maven-repository
+ with:
+ path: |
+ ~/.m2
+ key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
+ - name: Build
+ working-directory: ${{ matrix.sample }}
+ run: mvn clean package
diff --git a/pom.xml b/pom.xml
index ea7314f1dc48..fb5c330ba433 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1357,20 +1357,6 @@
-
-
- samples.droneio
-
-
- env
- samples.droneio
-
-
-
-
- samples/client/petstore/java/native
-
-
samples.misc