dev@glassfish.java.net

Re: pom review for adding the inject apis in the javaee apis module

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Tue, 06 Oct 2009 10:03:54 -0700

On 10/6/09 10:02 AM, Sahoo wrote:
> Ludovic Champenois wrote:
>> On 10/6/09 9:49 AM, Sahoo wrote:
>>> Ludovic Champenois wrote:
>>>> On 10/6/09 9:11 AM, Sahoo wrote:
>>>>> Ludovic Champenois wrote:
>>>>>> On 10/6/09 1:46 AM, Sahoo wrote:
>>>>>>> Ludo,
>>>>>>>
>>>>>>> Can you send us the diffs that you have committed for review?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sahoo
>>>>>>>
>>>>>> https://glassfish-svn.dev.java.net/servlets/ReadMsg?list=commits&msgNo=14776
>>>>>>
>>>>>>
>>>>> I don't understand why we need to add
>>>>> <include>javax.inject:inject-api</include>
>>>>> in various assembly xml files. Do you know?
>>>> If I remove it and do a
>>>> mvn -U -Pweb-api clean install
>>>> there is no javax.inject.* inside the
>>>> javax.javaee/target/javax.javaee-web-api.jar jar.
>>>> Then the stripped jar (that starts from
>>>> javax.javaee/target/javax.javaee-web-api.jar) does not contain it
>>>> either.
>>>> Ludo
>>> Still not clear. We have already configured the assembler to unpack
>>> webbeans-osgi-bundle.jar . Can't we just instruct assembler to pick
>>> up javax.inject package instead of using a dependency that's not
>>> directly used by us? e.g.,
>>> have you tried adding something like
>>> <includes>javax/inject/**</includes>
>>> under <unpackOptions>?
>>
>> There is no such includes for the other javax.* that I see in the
>> resulting jar
>> and javax.inject is not part of the excludes...
>> So why would it work?
> I guess things are working because of includes that contains artifact
> names. As I mentioned, I certainly don't know the history of this
> file. Can you try making the change and let me know what you see? BTW,
> do you agree that adding javax.inject:inject-api is wrong?
>
I agree with nothing...
Try which change? I did try the removal of javax.inject:inject-api and I
did say it did not work.
Ludo
> Sahoo
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>