<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Mar 22, 2017 at 4:17 AM Martin Kouba <<a href="mailto:mkouba@redhat.com">mkouba@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> That project's META-INF/beans.xml has bean discovery set to none<br class="gmail_msg">
> (<a href="https://github.com/ljnelson/microbean-main/blob/master/src/main/resources/META-INF/beans.xml#L7" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/ljnelson/microbean-main/blob/master/src/main/resources/META-INF/beans.xml#L7</a>),<br class="gmail_msg">
> since there are no beans in that bean archive (it houses only the main<br class="gmail_msg">
> class). John indicated that this was likely the source of the problem:<br class="gmail_msg">
<br class="gmail_msg">
I don't think this is the problem. In Weld SE bean archive isolation is<br class="gmail_msg">
enabled by default. Ie. for<br class="gmail_msg">
<a href="https://github.com/ljnelson/microbean-maven-cdi/blob/master/src/main/java/org/microbean/maven/cdi/MavenExtension.java" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/ljnelson/microbean-maven-cdi/blob/master/src/main/java/org/microbean/maven/cdi/MavenExtension.java</a><br class="gmail_msg">
the beans.xml is<br class="gmail_msg">
<a href="https://github.com/ljnelson/microbean-maven-cdi/blob/master/src/main/resources/META-INF/beans.xml" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/ljnelson/microbean-maven-cdi/blob/master/src/main/resources/META-INF/beans.xml</a><br class="gmail_msg"></blockquote><div><br></div><div>Good; that confirms what I expected.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Perhaps I have misunderstood bean discovery: I thought that the<br class="gmail_msg">
> discovery mode applied to the bean archive in question alone, not to an<br class="gmail_msg">
> aggregate.<br class="gmail_msg">
<br class="gmail_msg">
What do you mean with "aggregate"? Bean discovery mode is applied to a<br class="gmail_msg">
specific bean archive only.<br class="gmail_msg"></blockquote><div><br></div><div>What I meant was: <i>if</i> I had misunderstood bean discovery, which I have not, then perhaps something about that bean archive's "none" mode was affecting other bean archives. But I did not misunderstand bean discovery, so this is moot.</div><div><br></div><div>Best,</div><div>Laird</div></div></div>