JAX-WS 使用maven创建

Posted 我爱si搬砖

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JAX-WS 使用maven创建相关的知识,希望对你有一定的参考价值。

maven 创建jar

 

jar包依赖

  <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
    </dependency>
  
<!-- 要进行jaxws服务开发 -->
<!-- https://mvnrepository.com/artifact/org.apache.cxf/cxf-rt-frontend-jaxws -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.0.1</version>
</dependency>
<!-- 内置 jetty web 服务器 -->
<!-- https://mvnrepository.com/artifact/org.apache.cxf/cxf-rt-transports-http-jetty -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>3.0.1</version>
</dependency>
<!-- 日志 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.12</version>
</dependency>

 

<build>
    <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
      <plugins>
        <plugin>
          <groupId>org.apache.maven.pugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.2</version>
          <configuration>
              <source>1.8</source>
              <target>1.8</target>
              <encoding>UTF-8</encoding>
              <showWarnings>true</showWarnings>
          </configuration>
        </plugin>

      </plugins>
    </pluginManagement>
  </build>

 



















以上是关于JAX-WS 使用maven创建的主要内容,如果未能解决你的问题,请参考以下文章

Spring Boot用Cxf的jax-ws开发WebService

如何避免需要在 CXF 或 JAX-WS 生成的 Web 服务客户端中指定 WSDL 位置?

带有 SOAP XML JAX-WS(WAS Portal 7)服务的 Java 1.6 Maven 项目对 Tomcat Liferay 6.2 GA6 无法访问端点

如何避免在CXF或JAX-WS生成的Web服务客户端中指定WSDL位置?

spring 发布 Jax-Ws Service

系统开发系列 之MyEclipse创建WebService详细教程和调用教程(spring框架+maven+CXF框架)