You can take the http-binding pom.xml as a example:
http://willem.bokeland.com/svn.apache.org/repos/asf/incubator/cxf/trunk/rt/bindings/http/pom.xml
Willem.
Brad O'Hearne wrote:
Willem,
Thanks! I have one more question. If I am using REST ful annotations
to create an HTTP service, and I don't need to make use of SOAP or any
wsdl support (i.e., I want XML over straight HTTP only), which
dependencies do I need? Based upon the dependency names, I am
suspecting that I don't need all of the ones listed in the example in
the documentation.
Thanks!
Brad
Willem Jiang wrote:
Hi Brad,
You need to add the jra in you dependency
<dependency>
<groupId>org.codehaus.jra</groupId>
<artifactId>jra</artifactId>
<version>1.0-alpha-3</version>
</dependency>
Cheers,
Willem
Brad O'Hearne wrote:
Hello -- I am trying to use RESTful annotations to create an HTTP
service, and build using Maven 2. I have followed the instructions
in the documentation for adding the appropriate dependencies,
repositories, and plugin repositories. However, my service class
that I'm trying to annotate using the @Get and @HttpResource
annotations fail build, because those annotations cannot be
resolved. I have the following cxf dependencies listed in the
pom.xml for my project:
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.0-incubator-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.0-incubator-SNAPSHOT</version>
</dependency>
<!-- Jetty is needed if you're are not using the CXFServlet -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>2.0-incubator-SNAPSHOT</version>
</dependency>
Can someone give me a head's up of why these annotations cannot be
resolved? I am using Jsdk 1.5.0_11.
Thanks,
Brad