myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <lu4...@gmail.com>
Subject Re: dep error?
Date Tue, 05 Aug 2014 01:50:11 GMT
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 <rmannibucau@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

Mime
View raw message