You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2014/08/04 23:00:07 UTC

dep error?

Hi guys

just to mention 2.2.4 has:

 40 [INFO] +- org.apache.myfaces.core:myfaces-api:jar:2.2.4:compile
 41 [INFO] |  +-
org.apache.geronimo.specs:geronimo-jcdi_1.0_spec:jar:1.0:compile
 42 [INFO] |  \-
org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.0:compile

Wouldn't it be better to set geronimo deps as provided?


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau

Re: dep error?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
You are right but in TomEE and because of it we need to exclude these
optional dependencies cause they are included otherwise because of assembly
maven plugin.

Provided is semantically weong but "behavior-ly" right.
Le 5 août 2014 02:50, "Leonardo Uribe" <lu...@gmail.com> a écrit :

> Hi
>
> Instead use "provided", these dependencies are optional:
>
>             <!-- CDI 1.0 -->
>             <dependency>
>                 <groupId>org.apache.geronimo.specs</groupId>
>                 <artifactId>geronimo-jcdi_1.0_spec</artifactId>
>                 <version>1.0</version>
>                 <scope>compile</scope>
>                 <optional>true</optional>
>             </dependency>
>
>             <!-- Injection -->
>             <dependency>
>                 <groupId>org.apache.geronimo.specs</groupId>
>                 <artifactId>geronimo-atinject_1.0_spec</artifactId>
>                 <version>1.0</version>
>                 <scope>compile</scope>
>                 <optional>true</optional>
>             </dependency>
>
> It is better to let it like that, because it is valid to use JSF 2.2
> artifacts without CDI.
>
> regards,
>
> Leonardo Uribe
>
> 2014-08-04 16:00 GMT-05:00 Romain Manni-Bucau <rm...@gmail.com>:
> > Hi guys
> >
> > just to mention 2.2.4 has:
> >
> >  40 [INFO] +- org.apache.myfaces.core:myfaces-api:jar:2.2.4:compile
> >  41 [INFO] |  +-
> > org.apache.geronimo.specs:geronimo-jcdi_1.0_spec:jar:1.0:compile
> >  42 [INFO] |  \-
> > org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.0:compile
> >
> > Wouldn't it be better to set geronimo deps as provided?
> >
> >
> > Romain Manni-Bucau
> > Twitter: @rmannibucau
> > Blog: http://rmannibucau.wordpress.com/
> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > Github: https://github.com/rmannibucau
>

Re: dep error?

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

Instead use "provided", these dependencies are optional:

            <!-- CDI 1.0 -->
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-jcdi_1.0_spec</artifactId>
                <version>1.0</version>
                <scope>compile</scope>
                <optional>true</optional>
            </dependency>

            <!-- Injection -->
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-atinject_1.0_spec</artifactId>
                <version>1.0</version>
                <scope>compile</scope>
                <optional>true</optional>
            </dependency>

It is better to let it like that, because it is valid to use JSF 2.2
artifacts without CDI.

regards,

Leonardo Uribe

2014-08-04 16:00 GMT-05:00 Romain Manni-Bucau <rm...@gmail.com>:
> Hi guys
>
> just to mention 2.2.4 has:
>
>  40 [INFO] +- org.apache.myfaces.core:myfaces-api:jar:2.2.4:compile
>  41 [INFO] |  +-
> org.apache.geronimo.specs:geronimo-jcdi_1.0_spec:jar:1.0:compile
>  42 [INFO] |  \-
> org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.0:compile
>
> Wouldn't it be better to set geronimo deps as provided?
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau