<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 <manovotn@redhat.com>:<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>
> From: "Alex Sviridov" <<a href="mailto:ooo_saturn7@mail.ru">ooo_saturn7@mail.ru</a>><br>
> To: "Matej Novotny" <<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>><br>
> Sent: Monday, September 18, 2017 10:28:11 AM<br>
> Subject: Re[2]: [weld-dev] Weld and Java 9 JPMS<br>
> <br>
> Thank you for your answer. I will try. But where should I place beans.xml<br>
> to make Weld read it if I use Java SE+ JPMS?<br>
> <br>
> Best regards, Alex<br>
> <br>
> <br>
> >Понедельник, 18 сентября 2017, 8:10 +03:00 от Matej Novotny<br>
> ><<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>>:<br>
> ><br>
> >Hi Alex<br>
> ><br>
> >Back there we did some tests with earlier versions of Java 9 and eliminated<br>
> >some crucial problems.<br>
> >I think it should be possible to take *existing* app and run it on Java 9.<br>
> ><br>
> >However, creating a whole new modular project might present some additional<br>
> >challenges.<br>
> >Weld itself is not modularized (since it needs to run on Java 8), therefore<br>
> >you would need to list some extra "requires" in module-info.java for Weld.<br>
> >You also need to have reflection access allowed (we need to instantiate<br>
> >proxies etc) but last time I checked, it was by default enabled in JDK 9 wi<br>
> >th just warning showing up.<br>
> >Other than that, it might just work.<br>
> ><br>
> >To answer your other question - no, there is no tutorial, for there is no<br>
> >special difference between Weld and many other projects in regard to JDK 9.<br>
> ><br>
> >Matej<br>
> ><br>
> >----- Original Message -----<br>
> >> From: "Alex Sviridov" < <a href="mailto:ooo_saturn7@mail.ru">ooo_saturn7@mail.ru</a> ><br>
> >> To: "weld-dev" < <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a> ><br>
> >> Sent: Sunday, September 17, 2017 3:25:49 PM<br>
> >> Subject: [weld-dev] Weld and Java 9 JPMS<br>
> >> <br>
> >> Hi all<br>
> >> <br>
> >> Could anyone provide information how weld works (if works) with Java 9<br>
> >> JPMS?<br>
> >> Is there any tutorial?<br>
> >> <br>
> >> Best regards, Alex<br>
> >> <br>
> >> _______________________________________________<br>
> >> weld-dev mailing list<br>
> >> <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
> >> <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
> <br>
> <br>
> --<br>
> Alex Sviridov<br>
> <br>
</div>
                <base target="_self" href="https://e.mail.ru/">
        </div>
        
</div>
</div>
</blockquote>
<br>
<br>-- <br>Alex Sviridov<br></BODY></HTML>