This is an automated email from the ASF dual-hosted git repository.

alien11689 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/aries.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 9115d3b49 [MAINTENANCE] Run PMD in github actions (#488)
9115d3b49 is described below

commit 9115d3b49ae96af192e292771cd76d93a3ee12b9
Author: Dominik Przybysz <[email protected]>
AuthorDate: Wed Mar 26 19:20:18 2025 +0100

    [MAINTENANCE] Run PMD in github actions (#488)
---
 .github/workflows/pmd.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++++
 jndi/jndi-bundle/pom.xml  |  8 ++++----
 parent/pom.xml            |  3 +++
 3 files changed, 57 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/pmd.yml b/.github/workflows/pmd.yml
new file mode 100644
index 000000000..41706a058
--- /dev/null
+++ b/.github/workflows/pmd.yml
@@ -0,0 +1,50 @@
+#    Licensed under the Apache License, Version 2.0 (the "License");
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+
+name: PMD
+
+on:
+  pull_request:
+    branches:
+      - 'trunk'
+  push:
+    branches:
+      - 'trunk'
+
+env:
+  LC_ALL: en_US.UTF-8
+
+jobs:
+  PMD:
+    timeout-minutes: 10
+    strategy:
+      fail-fast: false
+      matrix:
+        java: [ 8 ]
+        os: [ ubuntu-latest ]
+    name: PMD
+    runs-on: ubuntu-latest
+    steps:
+    - name: Git Checkout
+      uses: actions/checkout@v4
+    - name: Set up Java
+      uses: actions/setup-java@v4
+      with:
+        distribution: 'temurin'
+        java-version: 8
+    - name: Run PMD
+      shell: bash
+      run: mvn -U -e -B -ntp clean install -DskipTests pmd:pmd
+    - name: Publish PMD results
+      uses: 
jwgmeligmeyling/pmd-github-action@322e346bd76a0757c4d54ff9209e245965aa066d
+      with:
+        path: '**/pmd.xml'
diff --git a/jndi/jndi-bundle/pom.xml b/jndi/jndi-bundle/pom.xml
index 6c53f60bc..21c85e9c6 100644
--- a/jndi/jndi-bundle/pom.xml
+++ b/jndi/jndi-bundle/pom.xml
@@ -63,10 +63,10 @@
         </aries.osgi.activator>
         <lastReleaseVersion>1.0.0</lastReleaseVersion>
 
-        <jndi-api.version>1.0.0</jndi-api.version>
-        <jndi-core.version>1.0.0</jndi-core.version>
-        <jndi-url.version>1.0.0</jndi-url.version>
-        <jndi-rmi.version>1.0.0</jndi-rmi.version>
+        <jndi-api.version>1.1.1-SNAPSHOT</jndi-api.version>
+        <jndi-core.version>1.1.0-SNAPSHOT</jndi-core.version>
+        <jndi-url.version>1.1.1-SNAPSHOT</jndi-url.version>
+        <jndi-rmi.version>1.0.1-SNAPSHOT</jndi-rmi.version>
     </properties>
 
     <dependencies>
diff --git a/parent/pom.xml b/parent/pom.xml
index 1f5db91ca..6c6938652 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -614,6 +614,9 @@
                 <artifactId>maven-pmd-plugin</artifactId>
                 <version>${maven-pmd-plugin.version}</version>
                 <configuration>
+                    <failOnViolation>false</failOnViolation>
+                    <includeTests>true</includeTests>
+                    <skipEmptyReport>false</skipEmptyReport>
                     <targetJdk>${java.source.version}</targetJdk>
                 </configuration>
             </plugin>

Reply via email to