You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Delany (Jira)" <ji...@apache.org> on 2023/04/12 18:55:00 UTC

[jira] [Commented] (MENFORCER-436) Extension defined in .mvn/extensions.xml failing "requirePluginVersions" check

    [ https://issues.apache.org/jira/browse/MENFORCER-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17711522#comment-17711522 ] 

Delany commented on MENFORCER-436:
----------------------------------

Similarly, adding an extension in the pom
{code:java}
<plugin>
    <groupId>io.takari.maven</groupId>
    <artifactId>maven-timeline</artifactId>
    <version>1.8</version>
    <extensions>true</extensions>
</plugin> {code}
results in
{quote}[ERROR] Rule 5: org.apache.maven.enforcer.rules.RequirePluginVersions failed with message:
[ERROR] Internal error in the plugin manager getting plugin 'io.takari.maven:maven-timeline': Failed to parse plugin descriptor for io.takari.maven:maven-timeline:1.8 (/home/sol/.m2/repository/io/takari/maven/maven-timeline/1.8/maven-timeline-1.8.jar): No plugin descriptor found at META-INF/maven/plugin.xml
{quote}
 

> Extension defined in .mvn/extensions.xml failing "requirePluginVersions" check
> ------------------------------------------------------------------------------
>
>                 Key: MENFORCER-436
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-436
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Standard Rules
>    Affects Versions: 3.1.0
>         Environment: Windows 10, JDK 11 (Temurin), Maven 3.8.6, Enforcer Plugin 3.1.0
>            Reporter: Jeff Thomas
>            Priority: Minor
>
> I have defined the "maven-git-versioning-extension' in .mvn/extensions.xml with an explicit version.
>  
> {{<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"}}
> {{ xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">}}
> {{  <extension>}}
> {{    <groupId>me.qoomon</groupId>}}
> {{    <artifactId>maven-git-versioning-extension</artifactId>}}
> {{    <version>9.3.1</version>}}
> {{  </extension>}}
> {{</extensions>}}
> This extension is not referenced anywhere in my POM.
> However, the 'requirePluginVersions' check is failing during build.
> NOTE: I saw MENFORCER-133 which was similiar but is already closed.
> Currently I have the workaround to add "me.qoomon:maven-git-versioning-extension" to the "unCheckedPluginList" configuration option, but this is sort of annoying since we use this extension in almost all of our git projects. :)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)