You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Romain Manni-Bucau (Jira)" <ji...@apache.org> on 2021/04/28 06:14:00 UTC

[jira] [Commented] (GERONIMO-6813) [mvn-plugin/Knights] Will not work with jakarta Namespace

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

Romain Manni-Bucau commented on GERONIMO-6813:
----------------------------------------------

Hi [~bmarwell],

 

We can do the same as for most ASF project and just have a shade of the extension with jakarta classifier since extensions are just maven dependencies at the end .

> [mvn-plugin/Knights] Will not work with jakarta Namespace
> ---------------------------------------------------------
>
>                 Key: GERONIMO-6813
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6813
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: Arthur-1.0.2
>            Reporter: Benjamin Marwell
>            Priority: Major
>
> The arthur-maven-plugin will not work when using the jakarta classifiers from meecrowave.
> It is a little hard to reproduce unless MEECROWAVE-289 is merged, but you can install it locally and then see the same output.
> The output:
> {code:java}
> Exception in thread "main" java.util.ServiceConfigurationError: javax.enterprise.inject.se.SeContainerInitializer: org.apache.openwebbeans.se.SeInitializerFacade not a subtype
>         at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:588)
>         at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1236)
>         at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
>         at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
>         at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
>         at javax.enterprise.inject.se.SeContainerInitializer.newInstance(SeContainerInitializer.java:51)
>         at org.apache.geronimo.arthur.knight.openwebbeans.OpenWebBeansExtension.execute(OpenWebBeansExtension.java:114)
>         at org.apache.geronimo.arthur.impl.nativeimage.generator.ConfigurationGenerator.run(ConfigurationGenerator.java:95)
>         at org.apache.geronimo.arthur.impl.nativeimage.ArthurNativeImageExecutor.run(ArthurNativeImageExecutor.java:54)
>         at org.apache.geronimo.arthur.maven.mojo.NativeImageMojo.lambda$execute$6(NativeImageMojo.java:484)
>         at org.apache.geronimo.arthur.maven.extension.MavenArthurExtension.with(MavenArthurExtension.java:69)
>         at org.apache.geronimo.arthur.maven.mojo.NativeImageMojo.execute(NativeImageMojo.java:446)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
>         at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
> {code}
> [Arthur relies on javax packages|https://github.com/apache/geronimo-arthur/blob/master/knights/openwebbeans-knight/src/main/java/org/apache/geronimo/arthur/knight/openwebbeans/OpenWebBeansExtension.java], but there would need to be a jakarta version.
> "Problem" is that plugins cannot have a classifier. So maybe a copy of this extension is needed?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)