Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions commons-io/2.21.0.wso2v1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<!--
~ Copyright (c) 2026, WSO2 LLC. (http://www.wso2.com) All Rights Reserved.
~
~ WSO2 LLC. licenses this file to you 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>commons-io.wso2</groupId>
<artifactId>commons-io</artifactId>
<packaging>bundle</packaging>
<name>commons.io.wso2</name>
<version>2.21.0.wso2v1</version>
<description>
This bundle will represent apache commons-io 2.21.0
</description>
<url>http://wso2.org</url>

<distributionManagement>
<repository>
<id>wso2.releases</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
</repository>

<snapshotRepository>
<id>wso2.snapshots</id>
<name>Apache Snapshot Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

<repositories>
<repository>
<id>wso2-nexus</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</releases>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${version.commons-io}</version>
<optional>true</optional>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.9</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name>
<Export-Package>
org.apache.commons.io.*;version="${version.commons-io}"
</Export-Package>
<Import-Package>
!org.apache.commons.io.*,
*;resolution:=optional
</Import-Package>
<Embed-Dependency>commons-io;scope=compile;inline=true</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason to enable this?

</instructions>
</configuration>
</plugin>
</plugins>
</build>
Comment on lines +69 to +93
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check latest maven-bundle-plugin version
curl -s "https://search.maven.org/solrsearch/select?q=g:org.apache.felix+AND+a:maven-bundle-plugin&rows=1&wt=json" | jq '.response.docs[0].latestVersion'

Repository: wso2/orbit

Length of output: 61


Consider upgrading maven-bundle-plugin to 6.0.0.

The OSGi bundle configuration is well-structured and correctly exports org.apache.commons.io.* packages with versioning, excludes self-imports while making other imports optional, and embeds the dependency inline. However, maven-bundle-plugin 5.1.9 is outdated; version 6.0.0 is now available. Evaluate whether upgrading is compatible with this project's requirements.

🤖 Prompt for AI Agents
In `@commons-io/2.21.0.wso2v1/pom.xml` around lines 69 - 93, The
maven-bundle-plugin version is pinned to 5.1.9; update it to 6.0.0 by changing
the <version> for the plugin identified by groupId org.apache.felix and
artifactId maven-bundle-plugin to 6.0.0, then run a build and verify the bundle
instructions (Bundle-SymbolicName, Export-Package, Import-Package,
Embed-Dependency, Embed-Transitive) still behave as expected and adjust any
plugin-specific configuration if the 6.0.0 release introduced breaking changes.


<properties>
<version.commons-io>2.21.0</version.commons-io>
</properties>

</project>