[ 
https://issues.apache.org/jira/browse/ONAMI-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558224#comment-13558224
 ] 

Simone Tripodi commented on ONAMI-51:
-------------------------------------

Salut mon ami,

the file

spi/src/test/resources/META-INF/services/org.apache.onami.spi.FooService

is missing by intention because services are specified via SystemProperties - 
for tests, it is performed by surefire test

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${surefire.version}</version>
        <configuration>
          <systemProperties>
            <property>
              <name>org.apache.onami.spi.FooService</name>
              
<value>org.apache.onami.spi.FooServiceImpl1,org.apache.onami.spi.FooServiceImpl2</value>
            </property>
          </systemProperties>
        </configuration>
      </plugin>

Documentation about that behaviour can be found on 
http://onami.incubator.apache.org/spi/services.html, see Loading Services from 
SystemProperties.

No clue about why sometimes the Jenkins Job fails, maybe a not updated Node 
takes the job - sometimes we receive successes, sometimes failures

                
> Services discovered via ServiceLoader must be qualified in the binder in 
> order to address injections
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ONAMI-51
>                 URL: https://issues.apache.org/jira/browse/ONAMI-51
>             Project: Apache Onami
>          Issue Type: Improvement
>          Components: spi
>    Affects Versions: spi-1.0.0
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>             Fix For: spi-1.0.0
>
>         Attachments: ONAMI-51.patch, org.apache.onami.spi.FooService
>
>
> As we discussed in [dev@ ML|http://markmail.org/message/6q3vbdwbg3uq4xp7], 
> there is the need of qualify bindings of discovered services

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to