Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid plugin descriptor in 0.26.0 release #484

Open
recursive-rat4 opened this issue Oct 23, 2024 · 2 comments
Open

Invalid plugin descriptor in 0.26.0 release #484

recursive-rat4 opened this issue Oct 23, 2024 · 2 comments
Assignees

Comments

@recursive-rat4
Copy link

After incrementing AtomicFU version from 0.25.0 to 0.26.0, our CI failed with following messages:

[WARNING] Failed to retrieve plugin descriptor for org.jetbrains.kotlinx:atomicfu-maven-plugin:0.26.0: Invalid plugin descriptor for org.jetbrains.kotlinx:atomicfu-maven-plugin:0.26.0 (/builds/blacknet-ninja/blacknet/.m2/repository/org/jetbrains/kotlinx/atomicfu-maven-plugin/0.26.0/atomicfu-maven-plugin-0.26.0.jar), Plugin's descriptor contains the wrong version: 0.25.0-SNAPSHOT

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-artifact-plugin:3.5.2:check-buildplan (default-cli) on project blacknet-kernel: Cannot calculate Maven execution planInvalid plugin descriptor for org.jetbrains.kotlinx:atomicfu-maven-plugin:0.26.0 (/builds/blacknet-ninja/blacknet/.m2/repository/org/jetbrains/kotlinx/atomicfu-maven-plugin/0.26.0/atomicfu-maven-plugin-0.26.0.jar), Plugin's descriptor contains the wrong version: 0.25.0-SNAPSHOT -> [Help 1]

Checked locally:

$ zipgrep -C5 '0.25.0-SNAPSHOT' ~/.m2/repository/org/jetbrains/kotlinx/atomicfu-maven-plugin/0.26.0/atomicfu-maven-plugin-0.26.0.jar
META-INF/maven/plugin.xml:<plugin>
META-INF/maven/plugin.xml:  <name>atomicfu-maven-plugin</name>
META-INF/maven/plugin.xml:  <description>Atomicfu Maven Plugin</description>
META-INF/maven/plugin.xml:  <groupId>org.jetbrains.kotlinx</groupId>
META-INF/maven/plugin.xml:  <artifactId>atomicfu-maven-plugin</artifactId>
META-INF/maven/plugin.xml:  <version>0.25.0-SNAPSHOT</version>
META-INF/maven/plugin.xml:  <goalPrefix>atomicfu</goalPrefix>
META-INF/maven/plugin.xml:  <isolatedRealm>false</isolatedRealm>
META-INF/maven/plugin.xml:  <inheritedByDefault>true</inheritedByDefault>
META-INF/maven/plugin.xml:  <mojos>
META-INF/maven/plugin.xml:    <mojo>
META-INF/maven/plugin.xml:--
META-INF/maven/plugin.xml:  <dependencies>
META-INF/maven/plugin.xml:    <dependency>
META-INF/maven/plugin.xml:      <groupId>org.jetbrains.kotlinx</groupId>
META-INF/maven/plugin.xml:      <artifactId>atomicfu-transformer</artifactId>
META-INF/maven/plugin.xml:      <type>jar</type>
META-INF/maven/plugin.xml:      <version>0.25.0-SNAPSHOT</version>
META-INF/maven/plugin.xml:    </dependency>
META-INF/maven/plugin.xml:    <dependency>
META-INF/maven/plugin.xml:      <groupId>org.ow2.asm</groupId>
META-INF/maven/plugin.xml:      <artifactId>asm</artifactId>
META-INF/maven/plugin.xml:      <type>jar</type>
@mvicsokolova mvicsokolova self-assigned this Oct 28, 2024
@mvicsokolova
Copy link
Collaborator

Hi!
I've published the library locally from the release master branch, and checked the contents of atomicfu-maven-plugin.jar
It contains the correct local version: 0.26.0-SNAPSHOT.

META-INF/maven/plugin.xml:<plugin>
META-INF/maven/plugin.xml:  <name>atomicfu-maven-plugin</name>
META-INF/maven/plugin.xml:  <description>Atomicfu Maven Plugin</description>
META-INF/maven/plugin.xml:  <groupId>org.jetbrains.kotlinx</groupId>
META-INF/maven/plugin.xml:  <artifactId>atomicfu-maven-plugin</artifactId>
META-INF/maven/plugin.xml:  <version>0.26.0-SNAPSHOT</version>
META-INF/maven/plugin.xml:  <goalPrefix>atomicfu</goalPrefix>
META-INF/maven/plugin.xml:  <isolatedRealm>false</isolatedRealm>
META-INF/maven/plugin.xml:  <inheritedByDefault>true</inheritedByDefault>
META-INF/maven/plugin.xml:  <mojos>
META-INF/maven/plugin.xml:    <mojo>
META-INF/maven/plugin.xml:--
META-INF/maven/plugin.xml:  <dependencies>
META-INF/maven/plugin.xml:    <dependency>
META-INF/maven/plugin.xml:      <groupId>org.jetbrains.kotlinx</groupId>
META-INF/maven/plugin.xml:      <artifactId>atomicfu-transformer</artifactId>
META-INF/maven/plugin.xml:      <type>jar</type>
META-INF/maven/plugin.xml:      <version>0.26.0-SNAPSHOT</version>
META-INF/maven/plugin.xml:    </dependency>
META-INF/maven/plugin.xml:    <dependency>
META-INF/maven/plugin.xml:      <groupId>org.ow2.asm</groupId>
META-INF/maven/plugin.xml:      <artifactId>asm</artifactId>
META-INF/maven/plugin.xml:      <type>jar</type>

Maybe the old version was somehow cached in the local repository? Could you please try to clean the .m2 repo and update the plugin version again?

@recursive-rat4
Copy link
Author

@mvicsokolova hello,

The file in cache:

$ sha256sum < ~/.m2/repository/org/jetbrains/kotlinx/atomicfu-maven-plugin/0.26.0/atomicfu-maven-plugin-0.26.0.jar
8241ef398e17233a606b14931544b2ea9dd7413cea4b6218a2c47396351e63d4  -

Checked manually:

$ wget -q https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/atomicfu-maven-plugin/0.26.0/atomicfu-maven-plugin-0.26.0.jar
$ sha256sum atomicfu-maven-plugin-0.26.0.jar 
8241ef398e17233a606b14931544b2ea9dd7413cea4b6218a2c47396351e63d4  atomicfu-maven-plugin-0.26.0.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants