Who cares about JPMS ? ;) It’s deprecated right ? ;)

> Le 31 mai 2021 à 17:22, Robert Varga <n...@hq.sk> a écrit :
> 
> On 31/05/2021 16:50, Jean-Baptiste Onofre wrote:
>> These dependencies are not necessary as they come with cmpn.
> 
> True, but you need the split out artifacts to make JPMS work reasonably:
> 
> https://github.com/opendaylight/yangtools/blob/master/xpath/yang-xpath-impl/src/main/java/module-info.java#L26
> https://github.com/opendaylight/yangtools/blob/master/xpath/yang-xpath-impl/pom.xml#L60-L63
> 
> I do not remember the details anymore, but this setup ended up being the
> most reasonable thing to do.
> 
> I also have no idea how R8 changes the interop picture here -- osgi.core
> has an Automatic-Module-Name manifest entry  (finally!), not sure how
> others will look like.
> 
> Regards,
> Robert
> 
> 
>> 
>> Regards
>> JB
>> 
>>> Le 31 mai 2021 à 15:08, Steinar Bang <s...@dod.no> a écrit :
>>> 
>>>>>>>> Jean-Baptiste Onofre <j...@nanthrax.net>:
>>> 
>>>> Hi Steinar,
>>>> I just checked and both osgi.core and osgi.cmpn are part of the Karaf BoM 
>>>> (as I thought ;) ):
>>> 
>>>> https://github.com/apache/karaf/blob/main/bom/pom.xml#L39 
>>>> <https://github.com/apache/karaf/blob/main/bom/pom.xml#L39>
>>> 
>>> Hm... that one should be correct.  But the artifactId changed here
>>> between OSGi 6 and 7 and I started using the BoM in karaf 4.2.11 and
>>> just filled up with versions for those dependencies that couldn't find
>>> their so I may have been confused here.
>>> 
>>> But this should work for me, so I'll correct this in my projects.  Thanks!
>>> 
>>>> https://github.com/apache/karaf/blob/main/bom/pom.xml#L525 
>>>> <https://github.com/apache/karaf/blob/main/bom/pom.xml#L525>
>>> 
>>> I'm thinking of stuff that is part of the compendium, e.g. (for OSGi 7)
>>> The log service:
>>>   <dependency>
>>>     <groupId>org.osgi</groupId>
>>>     <artifactId>org.osgi.service.log</artifactId>
>>>     <version>1.4.0</version>
>>>     <scope>provided</scope>
>>>   </dependency>
>>> 
>>> the SCR annotations:
>>>   <dependency>
>>>     <groupId>org.osgi</groupId>
>>>     <artifactId>org.osgi.service.component.annotations</artifactId>
>>>     <version>1.4.0</version>
>>>     <scope>provided</scope>
>>>   </dependency>
>>> 
>>> the OSGi 7 web whiteboard annotations:
>>>   <dependency>
>>>     <groupId>org.osgi</groupId>
>>>     <artifactId>org.osgi.service.http.whiteboard</artifactId>
>>>     <version>1.1.0</version>
>>>     <scope>provided</scope>
>>>   </dependency>
>>> 
>>> (these are the ones I use, but there is probably a lot of others for
>>> stuff I don't know about. Also, I'm not sure of the OSGi 7 web
>>> whiteboard maven dependency?  I found that one by digging around on
>>> maven central and it seems to have the correct contents and a publishing
>>> date matching the rest of the OSGi 7 stuff...?)
>>> 
>> 
> 

Reply via email to