[jboss-as7-dev] How should META-INF/services be dealt with in modules?

Scott Stark sstark at redhat.com
Sat Jun 4 18:34:59 EDT 2011


I created an issue that references a test in my 
https://github.com/starksm64/jboss-modules repo showing the problem.
https://issues.jboss.org/browse/MODULES-87

On 6/4/11 7:26 AM, Jaikiran Pai wrote:
> I think the JaxrsDependencyProcessor needs to be fixed
> https://github.com/jbossas/jboss-as/blob/master/jaxrs/src/main/java/org/jboss/as/jaxrs/deployment/JaxrsDependencyProcessor.java
> to import the services from the dependencies it's adding.
>
> -Jaikiran
> On Saturday 04 June 2011 10:21 AM, Scott Stark wrote:
>> Just adding the following did not do the trick, but have not looked into
>> it further.
>>
>> <module xmlns="urn:jboss:module:1.0"
>> name="org.jboss.resteasy.resteasy-jaxrs">
>> <resources>
>> <resource-root path="resteasy-jaxrs-2.1.0.GA.jar"/>
>> <resource-root path="resteasy-jaxrs-2.1.0.GA-jandex.jar"/>
>> <!-- Insert resources here -->
>> </resources>
>>
>> <dependencies>
>> <module name="javax.api"/>
>> <module name="javax.annotation.api"/>
>> <module name="javax.activation.api"/>
>> <module name="javax.ws.rs.api"/>
>> <module name="org.apache.httpcomponents" />
>> <module name="org.apache.commons.codec" />
>> <module name="org.scannotation.scannotation" />
>> <module name="javax.servlet.api"/>
>> <module name="org.jboss.resteasy.resteasy-jaxb-provider"
>> services="import" />
>> <module name="org.jboss.resteasy.resteasy-jackson-provider"
>> services="import" />
>> </dependencies>
>> </module>
>>



More information about the jboss-as7-dev mailing list