[
https://issues.apache.org/jira/browse/MPLUGIN-441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634438#comment-17634438
]
ASF GitHub Bot commented on MPLUGIN-441:
----------------------------------------
gnodet commented on PR #117:
URL:
https://github.com/apache/maven-plugin-tools/pull/117#issuecomment-1315559536
> Trying:
>
> ```
> mvn org.apache.maven.its:v4api:1.0-SNAPSHOT:first
>
> Apache Maven 4.0.0-alpha-2 (c07700ffc97d3967a8de77d5a1065f5e6115c00e)
>
> [ERROR] Failed to parse plugin descriptor for
org.apache.maven.its:v4api:1.0-SNAPSHOT
(/Users/.../.m2/repository/org/apache/maven/its/v4api/1.0-SNAPSHOT/v4api-1.0-SNAPSHOT.jar):
JAR entry META-INF/maven/lifecycle.xml not found in
/Users/.../.m2/repository/org/apache/maven/its/v4api/1.0-SNAPSHOT/v4api-1.0-SNAPSHOT.jar
> ```
>
> ```
> mvn org.apache.maven.its:v4api:1.0-SNAPSHOT:first
>
> Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
>
> [ERROR] Failed to parse plugin descriptor for
org.apache.maven.its:v4api:1.0-SNAPSHOT
(/Users/.../.m2/repository/org/apache/maven/its/v4api/1.0-SNAPSHOT/v4api-1.0-SNAPSHOT.jar):
JAR entry META-INF/maven/lifecycle.xml not found in
/Users/.../.m2/repository/org/apache/maven/its/v4api/1.0-SNAPSHOT/v4api-1.0-SNAPSHOT.jar
-> [Help 1]
> ```
Do we need the plugin to actually run ?
I can either remove the `@Execute` or add a `lifecycle.xml`
After that, another error happens because the plugin is being injected with
a custom `@Component`, but there's no such public component in the v4 api. I
can also remove the custom component injection. But the IT is testing the
`plugin.xml` generation and not the plugin itself.
Another option is to document that this plugin does not actually work.
> Support mojos using the new maven v4 api
> ----------------------------------------
>
> Key: MPLUGIN-441
> URL: https://issues.apache.org/jira/browse/MPLUGIN-441
> Project: Maven Plugin Tools
> Issue Type: New Feature
> Reporter: Guillaume Nodet
> Priority: Major
> Fix For: 4.0.0
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)