1.建项目,导包.
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 <groupId>cn_itcast.maven</groupId> 5 <artifactId>cxf_ws_spring</artifactId> 6 <version>0.0.1-SNAPSHOT</version> 7 <name>cxf_ws_spring</name> 8 <description>CXF的WS整合Spring发布</description> 9 10 <dependencies> 11 <!-- CXF WS开发 --> 12 <dependency> 13 <groupId>org.apache.cxf</groupId> 14 <artifactId>cxf-rt-frontend-jaxws</artifactId> 15 <version>3.0.1</version> 16 </dependency> 17 <!-- Spring开发 --> 18 <dependency> 19 <groupId>org.springframework</groupId> 20 <artifactId>spring-context</artifactId> 21 <version>4.1.7.RELEASE</version> 22 </dependency> 23 24 <dependency> 25 <groupId>org.springframework</groupId> 26 <artifactId>spring-web</artifactId> 27 <version>4.1.7.RELEASE</version> 28 </dependency> 29 30 <dependency> 31 <groupId>org.springframework</groupId> 32 <artifactId>spring-test</artifactId> 33 <version>4.1.7.RELEASE</version> 34 </dependency> 35 <!-- Spring整合junit开发 --> 36 <dependency> 37 <groupId>junit</groupId> 38 <artifactId>junit</artifactId> 39 <version>4.12</version> 40 </dependency> 41 42 </dependencies> 43 <build> 44 <plugins> 45 <plugin> 46 <groupId>org.codehaus.mojo</groupId> 47 <artifactId>tomcat-maven-plugin</artifactId> 48 <version>1.1</version> 49 <configuration> 50 <port>9998</port> 51 </configuration> 52 </plugin> 53 </plugins> 54 </build> 55 </project>