Skip to content

an sbt plugin for generating java artifacts from WSDL using cxf

License

Notifications You must be signed in to change notification settings

damienbeaufils/sbt-cxf-wsdl2java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-cxf-wsdl2java

an sbt plugin for generating java artifacts from WSDL using cxf

Requirements

Quick start

Add plugin to project/plugins.sbt:

resolvers += "Sonatype Repository" at "https://oss.sonatype.org/content/groups/public"

addSbtPlugin("com.ebiznext.sbt.plugins" % "sbt-cxf-wsdl2java" % "0.1.4")

For .sbt build definitions, inject the plugin settings in build.sbt:

Seq(cxf.settings: _*)

For .scala build definitions, inject the plugin settings in Build.scala:

Project(..., settings = Project.defaultSettings ++ com.ebiznext.sbt.plugins.CxfWsdl2JavaPlugin.cxf.settings)

Configuration

Plugin keys are located in com.ebiznext.sbt.plugins.CxfWsdl2JavaPlugin.Keys

Change CXF version

cxf.cxfVersion := "3.1.3"

Add Wsdls

lazy val wsclientPackage := "com.ebiznext.sbt.sample"

cxf.wsdls := Seq(
      cxf.Wsdl((resourceDirectory in Compile).value / "Sample.wsdl", Seq("-p",  wsclientPackage), "unique wsdl id"),
      ...
)

Commands

~wsdl2java To automatically generate source code when a wsdl is changed

About

an sbt plugin for generating java artifacts from WSDL using cxf

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%