Ignoring incompatible plugin version 4.0.0-beta-1 - ignore or fix?

Hi,

Trying to get our Jira plugins built for Jira 10.
Using AMPS 9.1.1 on macOS but seeing the following the following when building.

Just ignore it or do I need to fix something?

[INFO] --------------------------[ atlassian-plugin ]--------------------------
[WARNING] Ignoring incompatible plugin version 4.0.0-beta-1: The plugin org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1 requires Maven version 4.0.0-beta-3
[INFO] Latest version of plugin org.apache.maven.plugins:maven-resources-plugin failed compatibility check
[INFO] Looking for compatible RELEASE version of plugin org.apache.maven.plugins:maven-resources-plugin
[INFO] Selected plugin org.apache.maven.plugins:maven-resources-plugin:3.3.1

atlas-version says:

ATLAS Version:    9.1.1
ATLAS Home:       /opt/homebrew/Cellar/atlassian-plugin-sdk/9.1.1/libexec
ATLAS Scripts:    /opt/homebrew/Cellar/atlassian-plugin-sdk/9.1.1/libexec/bin
ATLAS Maven Home: /opt/homebrew/Cellar/atlassian-plugin-sdk/9.1.1/libexec/apache-maven-3.9.8
AMPS Version:     9.1.1
--------
Executing: /opt/homebrew/Cellar/atlassian-plugin-sdk/9.1.1/libexec/apache-maven-3.9.8/bin/mvn --version -gs /opt/homebrew/Cellar/atlassian-plugin-sdk/9.1.1/libexec/apache-maven-3.9.8/conf/settings.xml
Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
Maven home: /opt/homebrew/Cellar/atlassian-plugin-sdk/9.1.1/libexec/apache-maven-3.9.8
Java version: 17.0.12, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
Default locale: en_SE, platform encoding: UTF-8
OS name: "mac os x", version: "14.6.1", arch: "aarch64", family: "mac"


Would be good to know so I can remove this from the list of items to investigate… :wink:

Thanks,
Fredrik

1 Like

Same thing on Bitbucket. Seems like it comes from

            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>bitbucket-maven-plugin</artifactId>
                <version>9.1.1</version>

Hello,
it looks like you’re encountering a compatibility warning with the Maven Resources Plugin version 4.0.0-beta-1, which requires Maven version 4.0.0-beta-3. The build process is ignoring this incompatible plugin version and selecting a compatible version (3.3.1) instead1.

You don’t necessarily need to fix it, as Maven is handling the incompatibility by choosing a compatible version. However, if you want to avoid seeing this warning, you can update your Maven version to 4.0.0-beta-3 or higher1.

Best regards
Daniel

Can I just hide this warning somehow?
UPD. I mean without upgrading Maven.

If you want to hide the warning to keep your log clean, you could specify the plugin version directly in your pom.xml to avoid the compatibility check:

xml

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <version>3.3.1</version>
</plugin>

This way, Maven will use the specified version without trying to find a different version.

1 Like