Skip to content

Commit 39c59f4

Browse files
committed
* Fixed the dependency versions in the java_first_jaxws sample and removed dependencies that are already included as transitive dependencies.
* Automatically invoke the build of the java_first_jaxws sample during the integration-test phase of the distribution module.
1 parent fc3dafd commit 39c59f4

2 files changed

Lines changed: 24 additions & 134 deletions

File tree

‎modules/distribution/pom.xml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,26 @@
352352
</execution>
353353
</executions>
354354
</plugin>
355+
<plugin>
356+
<artifactId>maven-invoker-plugin</artifactId>
357+
<version>1.5</version>
358+
<executions>
359+
<execution>
360+
<id>build-maven-samples</id>
361+
<phase>integration-test</phase>
362+
<goals>
363+
<goal>run</goal>
364+
</goals>
365+
<configuration>
366+
<projectsDirectory>${project.build.directory}/axis2-${project.version}/samples</projectsDirectory>
367+
<pomIncludes>
368+
<pomInclude>java_first_jaxws/pom.xml</pomInclude>
369+
</pomIncludes>
370+
<streamLogs>true</streamLogs>
371+
</configuration>
372+
</execution>
373+
</executions>
374+
</plugin>
355375

356376
<plugin>
357377
<!-- We don't want to deploy the distributions to the Maven repository.

‎modules/samples/java_first_jaxws/pom.xml‎

Lines changed: 4 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -38,109 +38,22 @@
3838
<dependency>
3939
<groupId>org.apache.axis2</groupId>
4040
<artifactId>axis2-kernel</artifactId>
41-
<version>SNAPSHOT</version>
41+
<version>1.7.0-SNAPSHOT</version>
4242
</dependency>
4343
<dependency>
4444
<groupId>org.apache.axis2</groupId>
4545
<artifactId>axis2-jaxws</artifactId>
46-
<version>SNAPSHOT</version>
46+
<version>1.7.0-SNAPSHOT</version>
4747
</dependency>
4848
<dependency>
4949
<groupId>org.apache.axis2</groupId>
5050
<artifactId>axis2-codegen</artifactId>
51-
<version>SNAPSHOT</version>
51+
<version>1.7.0-SNAPSHOT</version>
5252
</dependency>
5353
<dependency>
5454
<groupId>org.apache.axis2</groupId>
5555
<artifactId>axis2-adb</artifactId>
56-
<version>SNAPSHOT</version>
57-
</dependency>
58-
<dependency>
59-
<groupId>org.apache.ws.commons.axiom</groupId>
60-
<artifactId>axiom-api</artifactId>
61-
<version>SNAPSHOT</version>
62-
</dependency>
63-
<dependency>
64-
<groupId>org.apache.ws.commons.axiom</groupId>
65-
<artifactId>axiom-impl</artifactId>
66-
<version>SNAPSHOT</version>
67-
</dependency>
68-
<dependency>
69-
<groupId>org.apache.ws.commons.schema</groupId>
70-
<artifactId>XmlSchema</artifactId>
71-
<version>SNAPSHOT</version>
72-
</dependency>
73-
<dependency>
74-
<groupId>org.apache.neethi</groupId>
75-
<artifactId>neethi</artifactId>
76-
<version>SNAPSHOT</version>
77-
</dependency>
78-
<dependency>
79-
<groupId>commons-logging</groupId>
80-
<artifactId>commons-logging</artifactId>
81-
<version>1.1.1</version>
82-
</dependency>
83-
<dependency>
84-
<groupId>commons-httpclient</groupId>
85-
<artifactId>commons-httpclient</artifactId>
86-
<version>3.1</version>
87-
</dependency>
88-
<dependency>
89-
<groupId>commons-codec</groupId>
90-
<artifactId>commons-codec</artifactId>
91-
<version>1.3</version>
92-
</dependency>
93-
<dependency>
94-
<groupId>woodstox</groupId>
95-
<artifactId>wstx</artifactId>
96-
<version>asl-3.2.4</version>
97-
</dependency>
98-
<dependency>
99-
<groupId>stax</groupId>
100-
<artifactId>stax-api</artifactId>
101-
<version>1.0.1</version>
102-
</dependency>
103-
<dependency>
104-
<groupId>wsdl4j</groupId>
105-
<artifactId>wsdl4j</artifactId>
106-
<version>1.6.2</version>
107-
</dependency>
108-
<dependency>
109-
<groupId>org.apache.geronimo.specs</groupId>
110-
<artifactId>geronimo-javamail_1.4_spec</artifactId>
111-
<version>1.2</version>
112-
</dependency>
113-
<dependency>
114-
<groupId>org.apache.geronimo.specs</groupId>
115-
<artifactId>geronimo-activation_1.1_spec</artifactId>
116-
<version>1.0.1</version>
117-
</dependency>
118-
<dependency>
119-
<groupId>com.sun.xml.bind</groupId>
120-
<artifactId>jaxb-impl</artifactId>
121-
<version>2.1.6</version>
122-
<exclusions>
123-
<exclusion>
124-
<artifactId>jsr173</artifactId>
125-
<groupId>javax.xml</groupId>
126-
</exclusion>
127-
</exclusions>
128-
</dependency>
129-
<dependency>
130-
<groupId>com.sun.xml.bind</groupId>
131-
<artifactId>jaxb-xjc</artifactId>
132-
<version>2.1.6</version>
133-
</dependency>
134-
<dependency>
135-
<groupId>javax.xml.bind</groupId>
136-
<artifactId>jaxb-api</artifactId>
137-
<version>2.1</version>
138-
<exclusions>
139-
<exclusion>
140-
<artifactId>jsr173</artifactId>
141-
<groupId>javax.xml</groupId>
142-
</exclusion>
143-
</exclusions>
56+
<version>1.7.0-SNAPSHOT</version>
14457
</dependency>
14558
<dependency>
14659
<groupId>com.sun.xml.ws</groupId>
@@ -181,21 +94,6 @@
18194
</exclusion>
18295
</exclusions>
18396
</dependency>
184-
<dependency>
185-
<groupId>com.sun.xml.ws</groupId>
186-
<artifactId>jaxws-tools</artifactId>
187-
<version>2.1.3</version>
188-
<exclusions>
189-
<exclusion>
190-
<groupId>com.sun.xml.ws</groupId>
191-
<artifactId>jaxws-rt</artifactId>
192-
</exclusion>
193-
<exclusion>
194-
<groupId>com.sun.xml.bind</groupId>
195-
<artifactId>jaxb-xjc</artifactId>
196-
</exclusion>
197-
</exclusions>
198-
</dependency>
19997
</dependencies>
20098

20199
<build>
@@ -258,32 +156,4 @@
258156
</testResource>
259157
</testResources>
260158
</build>
261-
262-
<!-- needed for XmlSchema -->
263-
<repositories>
264-
<repository>
265-
<id>ibiblio</id>
266-
<name>ibiblio maven repository</name>
267-
<url>http://ibiblio.org/maven/</url>
268-
<layout>legacy</layout>
269-
</repository>
270-
<repository>
271-
<id>apache</id>
272-
<name>Apache maven repository</name>
273-
<url>http://www.apache.org/dist/java-repository/</url>
274-
<layout>legacy</layout>
275-
</repository>
276-
<repository>
277-
<id>java.net</id>
278-
<url>http://download.java.net/maven/2/</url>
279-
<layout>default</layout>
280-
<snapshots>
281-
<enabled>false</enabled>
282-
</snapshots>
283-
<releases>
284-
<enabled>true</enabled>
285-
</releases>
286-
</repository>
287-
</repositories>
288-
289159
</project>

0 commit comments

Comments
 (0)