It is possible to build a Spring Boot project using Apache Ant+Ivy. The spring-boot-antlib “AntLib” module is also available to help Ant create executable jars. To declare dependencies, a typical ivy.xml file looks something like the following example:
<ivy-moduleversion="2.0"> <infoorganisation="org.springframework.boot"module="spring-boot-sample-ant" /> <configurations> <confname="compile"description="everything needed to compile this module" /> <confname="runtime"extends="compile"description="everything needed to run this module" /> </configurations> <dependencies> <dependencyorg="org.springframework.boot"name="spring-boot-starter" rev="${spring-boot.version}"conf="compile" /> </dependencies> </ivy-module>
1
A typical build.xml looks like the following example:
If you do not want to use the spring-boot-antlib module, see the Section 86.9, “Build an Executable Archive from Ant without Using spring-boot-antlib” “How-to” .
如果您不想使用spring-boot-antlib模块,请直接看章节86.9“Build an Executable Archive from Ant without Using spring-boot-antlib”
近期评论