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

Herve Boutemy edited comment on MDEP-630 at 2/13/23 7:36 PM:
-------------------------------------------------------------

problem reported by Maven's lifecycle bindings injector: 
https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/model/plugin/DefaultLifecycleBindingsInjector.java#L72

I have another case with a dependency built with sbt: see 
cyclonedx-maven-plugin 
https://github.com/CycloneDX/cyclonedx-maven-plugin/issues/272

I'm not sure we should really build a MavenProject to get the effective model, 
and more precisely the parent (= where the list goal needs to dive into more 
artifact details): it contains too much
I imagine the effective model built during artifact resolution could be 
sufficient
But I don't know which API could give us access to it, just sharing thoughts to 
try to dig further


was (Author: hboutemy):
problem reported by Maven's lifecycle bindings injector: 
https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/model/plugin/DefaultLifecycleBindingsInjector.java#L72

I have another case with a dependency built with sbt: see 
cyclonedx-maven-plugin 
https://github.com/CycloneDX/cyclonedx-maven-plugin/issues/272

I'm not sure we should really build a MavenProject to get the effective model: 
it contains too much
I imagine the effective model built during artifact resolution could be 
sufficient
But I don't know which API could give us access to it, just sharing thoughts to 
try to dig further

> error dependency:list (caused by postgresql dependency)
> -------------------------------------------------------
>
>                 Key: MDEP-630
>                 URL: https://issues.apache.org/jira/browse/MDEP-630
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: list
>    Affects Versions: 3.0.2
>         Environment: Windows 10
>            Reporter: Khalil Bouzekri
>            Priority: Major
>              Labels: S2, list, postgresql
>         Attachments: error.txt, pom.xml
>
>
> Hi, when doing a
> {code:java}
> mvn -e dependency:list
> {code}
> on a project having the attached pom.xml (has includeParents set to true), I 
> get errors (see attached error.txt for full output with stacktrace)
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-dependency-plugin:3.0.2:list (default-cli) on 
> project demo-1: Some problems were encountered while processing the POMs:
> [ERROR] [ERROR] Unknown packaging: bundle @ line 11, column 14
> [ERROR] : 1 problem was encountered while building the effective model for 
> org.postgresql:postgresql:42.2.5
> [ERROR] [ERROR] Unknown packaging: bundle @ line 11, column 14
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-dependency-plugin:3.0.2:list 
> (default-cli) on project demo-1: Some problems were encountered while 
> processing the POMs:
> [ERROR] Unknown packaging: bundle @ line 11, column 14
> {noformat}
> I am not sure if the problem comes from the plugin or the dependency's pom.
> I tried with different versions and I get the same error.
> Thanks to let me know
> P.S.: I had to choose "tree" as component as "list" was not listed (note that 
> it works with "tree")
>  
>  



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

Reply via email to