|
1 | 1 | <?xml version="1.0"?> |
2 | 2 |
|
3 | 3 | <project name="spring-ws-airline-sample-jax-ws-client" default="build" xmlns:artifact="urn:maven-artifact-ant"> |
4 | | - <property name="bin.dir" value="bin"/> |
5 | | - <property name="src.dir" value="src"/> |
6 | | - <property name="lib.dir" value="lib"/> |
| 4 | + <property name="bin.dir" value="bin"/> |
| 5 | + <property name="src.dir" value="src"/> |
| 6 | + <property name="lib.dir" value="lib"/> |
7 | 7 |
|
8 | | - <target name="init"> |
9 | | - <mkdir dir="${bin.dir}"/> |
10 | | - <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"> |
11 | | - <classpath> |
| 8 | + <target name="init"> |
| 9 | + <mkdir dir="${bin.dir}"/> |
| 10 | + <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"> |
| 11 | + <classpath> |
12 | 12 | <pathelement location="${basedir}/../../../maven-artifact-ant-2.0.4-dep.jar"/> |
13 | | - </classpath> |
14 | | - </typedef> |
| 13 | + </classpath> |
| 14 | + </typedef> |
15 | 15 |
|
16 | | - <artifact:dependencies pathId="generate.classpath"> |
17 | | - <dependency groupId="com.sun.xml.ws" artifactId="jaxws-tools" version="EA3"/> |
18 | | - <dependency groupId="com.sun.xml.bind" artifactId="jaxb-xjc" version="2.1-EA2"/> |
19 | | - <dependency groupId="com.sun.xml.stream.buffer" artifactId="streambuffer" version="0.3"/> |
20 | | - <dependency groupId="com.sun.xml.stream" artifactId="sjsxp" version="1.0"/> |
21 | | - <dependency groupId="org.jvnet.staxex" artifactId="stax-ex" version="1.0"/> |
| 16 | + <artifact:remoteRepository id="java.net" url="https://maven-repository.dev.java.net/nonav/repository" |
| 17 | + layout="legacy"/> |
| 18 | + |
| 19 | + <artifact:dependencies pathId="generate.classpath"> |
| 20 | + <remoteRepository refid="java.net"/> |
| 21 | + <dependency groupId="com.sun.xml.ws" artifactId="jaxws-tools" version="EA3"/> |
| 22 | + <dependency groupId="com.sun.xml.bind" artifactId="jaxb-xjc" version="2.1-EA2"/> |
| 23 | + <dependency groupId="com.sun.xml.stream.buffer" artifactId="streambuffer" version="0.3"/> |
| 24 | + <dependency groupId="com.sun.xml.stream" artifactId="sjsxp" version="1.0"/> |
| 25 | + <dependency groupId="org.jvnet.staxex" artifactId="stax-ex" version="1.0"/> |
22 | 26 | <dependency groupId="com.sun.xml.messaging.saaj" artifactId="saaj-impl" version="1.3"/> |
23 | | - </artifact:dependencies> |
| 27 | + </artifact:dependencies> |
24 | 28 |
|
25 | | - <artifact:dependencies pathId="compile.classpath"> |
26 | | - <dependency groupId="javax.xml.ws" artifactId="jaxws-api" version="2.1-SNAPSHOT"/> |
27 | | - </artifact:dependencies> |
| 29 | + <artifact:dependencies pathId="compile.classpath"> |
| 30 | + <remoteRepository refid="java.net"/> |
| 31 | + <dependency groupId="javax.xml.ws" artifactId="jaxws-api" version="2.1-SNAPSHOT"/> |
| 32 | + </artifact:dependencies> |
28 | 33 |
|
29 | | - <artifact:dependencies pathId="runtime.classpath"> |
30 | | - <dependency groupId="com.sun.xml.ws" artifactId="jaxws-rt" version="EA3"/> |
31 | | - <dependency groupId="com.sun.xml.bind" artifactId="jaxb-impl" version="2.1-EA2"/> |
32 | | - <dependency groupId="com.sun.xml.bind" artifactId="jaxb-xjc" version="2.1-EA2"/> |
33 | | - <dependency groupId="com.sun.xml.stream.buffer" artifactId="streambuffer" version="0.3"/> |
34 | | - <dependency groupId="com.sun.xml.stream" artifactId="sjsxp" version="1.0"/> |
35 | | - <dependency groupId="org.jvnet.staxex" artifactId="stax-ex" version="1.0"/> |
| 34 | + <artifact:dependencies pathId="runtime.classpath"> |
| 35 | + <remoteRepository refid="java.net"/> |
| 36 | + <dependency groupId="com.sun.xml.ws" artifactId="jaxws-rt" version="EA3"/> |
| 37 | + <dependency groupId="com.sun.xml.bind" artifactId="jaxb-impl" version="2.1-EA2"/> |
| 38 | + <dependency groupId="com.sun.xml.bind" artifactId="jaxb-xjc" version="2.1-EA2"/> |
| 39 | + <dependency groupId="com.sun.xml.stream.buffer" artifactId="streambuffer" version="0.3"/> |
| 40 | + <dependency groupId="com.sun.xml.stream" artifactId="sjsxp" version="1.0"/> |
| 41 | + <dependency groupId="org.jvnet.staxex" artifactId="stax-ex" version="1.0"/> |
36 | 42 | <dependency groupId="com.sun.xml.messaging.saaj" artifactId="saaj-impl" version="1.3"/> |
37 | | - </artifact:dependencies> |
| 43 | + </artifact:dependencies> |
38 | 44 |
|
39 | | - </target> |
| 45 | + </target> |
40 | 46 |
|
41 | | - <target name="generate" depends="init"> |
42 | | - <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport" classpathref="generate.classpath" /> |
43 | | - <wsimport wsdl="http://localhost:8080/airline/airline.wsdl" destdir="${bin.dir}" |
44 | | - package="org.springframework.ws.samples.airline.client.jaxws"/> |
45 | | - </target> |
| 47 | + <target name="generate" depends="init"> |
| 48 | + <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport" classpathref="generate.classpath"/> |
| 49 | + <wsimport wsdl="http://localhost:8080/airline/airline.wsdl" destdir="${bin.dir}" |
| 50 | + package="org.springframework.ws.samples.airline.client.jaxws"/> |
| 51 | + </target> |
46 | 52 |
|
47 | | - <target name="build" depends="generate"> |
48 | | - <javac srcdir="${src.dir}" destdir="${bin.dir}" debug="true"> |
| 53 | + <target name="build" depends="generate"> |
| 54 | + <javac srcdir="${src.dir}" destdir="${bin.dir}" debug="true"> |
49 | 55 | <classpath refid="compile.classpath"/> |
50 | 56 | <classpath location="${bin.dir}"/> |
51 | | - </javac> |
52 | | - </target> |
| 57 | + </javac> |
| 58 | + </target> |
53 | 59 |
|
54 | | - <target name="clean"> |
55 | | - <delete dir="${bin.dir}"/> |
56 | | - </target> |
| 60 | + <target name="clean"> |
| 61 | + <delete dir="${bin.dir}"/> |
| 62 | + </target> |
57 | 63 |
|
58 | | - <target name="run" depends="build"> |
59 | | - <java classname="org.springframework.ws.samples.airline.client.jaxws.Main" fork="true" failonerror="true"> |
| 64 | + <target name="run" depends="build"> |
| 65 | + <java classname="org.springframework.ws.samples.airline.client.jaxws.Main" fork="true" failonerror="true"> |
60 | 66 | <classpath refid="compile.classpath"/> |
61 | 67 | <classpath refid="runtime.classpath"/> |
62 | 68 | <classpath location="${bin.dir}"/> |
63 | | - </java> |
64 | | - </target> |
| 69 | + </java> |
| 70 | + </target> |
65 | 71 | </project> |
0 commit comments