[ https://issues.apache.org/jira/browse/OWB-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16945087#comment-16945087 ]
Romain Manni-Bucau commented on OWB-1299: ----------------------------------------- [~tandraschko] we already have it (see openwebbeans.properties) but it is not spec friendly so next issue would be "annotated more not honored when the flag is set". Here we have a "comply to spec" flag. > Add an openwebbeans.properties property to not scan jars with an extension > -------------------------------------------------------------------------- > > Key: OWB-1299 > URL: https://issues.apache.org/jira/browse/OWB-1299 > Project: OpenWebBeans > Issue Type: Improvement > Reporter: Romain Manni-Bucau > Assignee: Romain Manni-Bucau > Priority: Major > Fix For: 2.0.13 > > > {code:java} > org.apache.webbeans.scanExtensionJars = true {code} > Can be added to openwebbeans.properties to disable the scanning of the jars > with an extension. Long story short, this is the official CDI behavior since > 1.1 but in 1.0 it was the opposite so we kept it in most of our default > implementations to ensure backward compatibility. > > {code:java} > org.apache.webbeans.scanExclusionPaths = ....,/my-extension-jar {code} > was a workaround until today to get the specification behavior. > > Side note: in general you don't need to set this and default will work > smoothless until the extension scanning duplicates the beans it register > programmatically. -- This message was sent by Atlassian Jira (v8.3.4#803005)