Hi, I think that the annotation @Webservice (from javax.jws.WebService is included in rt.jar)
this is what I have in my pom.xml . I do not have any issue. What do you need in particular ? PS: cxf.version is 2.4.1 [ start] ...... <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-core</artifactId> <version>${cxf.version}</version> <exclusions> <exclusion> <artifactId>geronimo-activation_1.1_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-ws-metadata_2.0_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-jaxws_2.1_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-jaxws_2.1_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-javamail_1.4_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-simple</artifactId> <version>${cxf.version}</version> <exclusions> <exclusion> <artifactId>geronimo-jaxws_2.1_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-bindings-xml</artifactId> <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-databinding-jaxb</artifactId> <version>${cxf.version}</version> <exclusions> <exclusion> <artifactId>geronimo-activation_1.1_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-ws-metadata_2.0_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-jaxws_2.1_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-jaxws_2.1_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-javamail_1.4_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-common-utilities</artifactId> <version>${cxf.version}</version> <exclusions> <exclusion> <artifactId> geronimo-annotation_1.0_spec </artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId>geronimo-stax-api_1.0_spec</artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-api</artifactId> <version>${cxf.version}</version> <exclusions> <exclusion> <artifactId> geronimo-activation_1.1_spec </artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> <exclusion> <artifactId> geronimo-annotation_1.0_spec </artifactId> <groupId>org.apache.geronimo.specs</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>${cxf.version}</version> </dependency> <!-- jaxb--> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.2.4</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.2.4</version> </dependency> [end] regards Prisca On Wed, Aug 3, 2011 at 5:44 PM, David G <djg2...@live.co.uk> wrote: > Hi, > I’m trying to create a bare-bones service from scratch using Maven but > can’t seem to get the jax-ws API from the CXF dependencies. Without it I > can’t add the @WebService dependency. > What is the most appropriate CXF artifact to use to pick this up > (transitively would be fine)? Here is what I have at the moment: > <properties> > <cxf.version>2.4.1</cxf.version> > </properties> > > <dependencies> > > <dependency> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-rt-frontend-jaxws</artifactId> > <version>${cxf.version}</version> > </dependency> > > <dependency> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-rt-frontend-simple</artifactId> > <version>${cxf.version}</version> > </dependency> > > <dependency> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-rt-transports-http</artifactId> > <version>${cxf.version}</version> > </dependency> > > </dependencies> > > Thanks