<HTML><BODY>Hi Matej<br><br>I am just trying to make Weld work in Java 9 (JavaSE + JPMS).<br><br>I use the following jars as automatic modules:<br><br>weld-environment-common-3.0.2-SNAPSHOT.jar<br>weld-se-core-3.0.2-SNAPSHOT.jar<br>weld-se-shaded-3.0.2-SNAPSHOT.jar<br>weld-spi-3.0.SP1.jar<br>weld-core-impl-3.0.2-SNAPSHOT.jar<br><br>Is this right configuration? Or should I add/remove something.<br><br>Best regards, Alex<br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        Понедельник, 18 сентября 2017, 12:41 +03:00 от Matej Novotny &lt;manovotn@redhat.com&gt;:<br>
        <br>
        <div id="">






















        












<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
         <div>
                <base target="_self" href="https://e.mail.ru/">
                
            <div id="style_15057276640000000710_BODY">Uhm, is there anything blocking you from placing it where you would in Java 8?<br>
E.g. src/main/resources/META-INF?<br>
<br>
I don't think I have tried this combination (or I do not recall).<br>
From the top of my head I don't know any JDK 9 limitation which would forbid to use XML descriptors in this way.<br>
I might be a bit rusty though; been a while since I played with Java 9.<br>
<br>
Please do report back with how this works for you :)<br>
Matej<br>
<br>
----- Original Message -----<br>
&gt; From: "Alex Sviridov" &lt;<a href="mailto:ooo_saturn7@mail.ru">ooo_saturn7@mail.ru</a>&gt;<br>
&gt; To: "Matej Novotny" &lt;<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>&gt;<br>
&gt; Sent: Monday, September 18, 2017 10:28:11 AM<br>
&gt; Subject: Re[2]: [weld-dev] Weld and Java 9 JPMS<br>
&gt; <br>
&gt; Thank you for your answer. I will try. But where should I place beans.xml<br>
&gt; to make Weld read it if I use Java SE+ JPMS?<br>
&gt; <br>
&gt; Best regards, Alex<br>
&gt; <br>
&gt; <br>
&gt; &gt;Понедельник, 18 сентября 2017, 8:10 +03:00 от Matej Novotny<br>
&gt; &gt;&lt;<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>&gt;:<br>
&gt; &gt;<br>
&gt; &gt;Hi Alex<br>
&gt; &gt;<br>
&gt; &gt;Back there we did some tests with earlier versions of Java 9 and eliminated<br>
&gt; &gt;some crucial problems.<br>
&gt; &gt;I think it should be possible to take *existing* app and run it on Java 9.<br>
&gt; &gt;<br>
&gt; &gt;However, creating a whole new modular project might present some additional<br>
&gt; &gt;challenges.<br>
&gt; &gt;Weld itself is not modularized (since it needs to run on Java 8), therefore<br>
&gt; &gt;you would need to list some extra "requires" in module-info.java for Weld.<br>
&gt; &gt;You also need to have reflection access allowed (we need to instantiate<br>
&gt; &gt;proxies etc) but last time I checked, it was by default enabled in JDK 9 wi<br>
&gt; &gt;th just warning showing up.<br>
&gt; &gt;Other than that, it might just work.<br>
&gt; &gt;<br>
&gt; &gt;To answer your other question - no, there is no tutorial, for there is no<br>
&gt; &gt;special difference between Weld and many other projects in regard to JDK 9.<br>
&gt; &gt;<br>
&gt; &gt;Matej<br>
&gt; &gt;<br>
&gt; &gt;----- Original Message -----<br>
&gt; &gt;&gt; From: "Alex Sviridov" &lt; <a href="mailto:ooo_saturn7@mail.ru">ooo_saturn7@mail.ru</a> &gt;<br>
&gt; &gt;&gt; To: "weld-dev" &lt; <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a> &gt;<br>
&gt; &gt;&gt; Sent: Sunday, September 17, 2017 3:25:49 PM<br>
&gt; &gt;&gt; Subject: [weld-dev] Weld and Java 9 JPMS<br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; Hi all<br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; Could anyone provide information how weld works (if works) with Java 9<br>
&gt; &gt;&gt; JPMS?<br>
&gt; &gt;&gt; Is there any tutorial?<br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; Best regards, Alex<br>
&gt; &gt;&gt; <br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; weld-dev mailing list<br>
&gt; &gt;&gt;  <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
&gt; &gt;&gt;  <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
&gt; <br>
&gt; <br>
&gt; --<br>
&gt; Alex Sviridov<br>
&gt; <br>
</div>
            
        
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br>
<br>-- <br>Alex Sviridov<br></BODY></HTML>