You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Grzegorz Grzybek (Jira)" <ji...@apache.org> on 2022/10/03 13:45:00 UTC

[jira] [Commented] (CAMEL-18555) camel-jbang - Use standard Maven for download instead of ShrinkWrap

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

Grzegorz Grzybek commented on CAMEL-18555:
------------------------------------------

Because of MRESOLVER-157, we'd benefit from very simple DI solution that can instantiate classes and wire them using {{@Inject}} annotated constructors.
For now, instantiation is done by {{org.apache.camel.support.ObjectHelper#newInstance(java.lang.Class<T>)}} but it requires no-arg constructor.

However {{org.apache.camel.main.injection.AnnotationDependencyInjection.QuarkusBeanPostProcessorInjector}} already supports some JSR330 annotations ({{javax.inject.Inject}}, {{javax.inject.Named}}), so I'll see if we can use what we have to configure and wire {{org.eclipse.aether.RepositorySystem}}.

> camel-jbang - Use standard Maven for download instead of ShrinkWrap
> -------------------------------------------------------------------
>
>                 Key: CAMEL-18555
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18555
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Grzegorz Grzybek
>            Priority: Major
>             Fix For: 3.x
>
>
> ShrinkWrap is not very active maintained but is a great library for making it easier to download via Maven
> However we can switch to standard Maven APIs like JBang recently did
> https://github.com/jbangdev/jbang/commit/b9a339c71492509b84fecc0fac3f9fa617ecd499



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