1+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
2+ <modelVersion >4.0.0</modelVersion >
3+ <groupId >com.javahelps</groupId >
4+ <artifactId >com.javahelps.samplecarbon.stub</artifactId >
5+ <version >1.0.0</version >
6+ <packaging >bundle</packaging >
7+
8+ <repositories >
9+ <!-- Below configuration is used to download the relevant jars and
10+ plugins from the remote maven repositories -->
11+ <repository >
12+ <id >wso2-nexus</id >
13+ <name >WSO2 internal Repository</name >
14+ <url >http://maven.wso2.org/nexus/content/groups/wso2-public/</url >
15+ <releases >
16+ <enabled >true</enabled >
17+ <updatePolicy >daily</updatePolicy >
18+ <checksumPolicy >ignore</checksumPolicy >
19+ </releases >
20+ </repository >
21+
22+ <repository >
23+ <id >wso2.releases</id >
24+ <name >WSO2 internal Repository</name >
25+ <url >http://maven.wso2.org/nexus/content/repositories/releases/</url >
26+ <releases >
27+ <enabled >true</enabled >
28+ <updatePolicy >daily</updatePolicy >
29+ <checksumPolicy >ignore</checksumPolicy >
30+ </releases >
31+ </repository >
32+
33+ <repository >
34+ <id >wso2.snapshots</id >
35+ <name >WSO2 Snapshot Repository</name >
36+ <url >http://maven.wso2.org/nexus/content/repositories/snapshots/</url >
37+ <snapshots >
38+ <enabled >true</enabled >
39+ <updatePolicy >daily</updatePolicy >
40+ </snapshots >
41+ <releases >
42+ <enabled >false</enabled >
43+ </releases >
44+ </repository >
45+ </repositories >
46+
47+ <pluginRepositories >
48+ <pluginRepository >
49+ <id >wso2.releases</id >
50+ <name >WSO2 internal Repository</name >
51+ <url >http://maven.wso2.org/nexus/content/repositories/releases/</url >
52+ <releases >
53+ <enabled >true</enabled >
54+ <updatePolicy >daily</updatePolicy >
55+ <checksumPolicy >ignore</checksumPolicy >
56+ </releases >
57+ </pluginRepository >
58+
59+ <pluginRepository >
60+ <id >wso2.snapshots</id >
61+ <name >WSO2 Snapshot Repository</name >
62+ <url >http://maven.wso2.org/nexus/content/repositories/snapshots/</url >
63+ <snapshots >
64+ <enabled >true</enabled >
65+ <updatePolicy >daily</updatePolicy >
66+ </snapshots >
67+ <releases >
68+ <enabled >false</enabled >
69+ </releases >
70+ </pluginRepository >
71+ <pluginRepository >
72+ <id >wso2-nexus</id >
73+ <name >WSO2 internal Repository</name >
74+ <url >http://maven.wso2.org/nexus/content/groups/wso2-public/</url >
75+ <releases >
76+ <enabled >true</enabled >
77+ <updatePolicy >daily</updatePolicy >
78+ <checksumPolicy >ignore</checksumPolicy >
79+ </releases >
80+ </pluginRepository >
81+ </pluginRepositories >
82+
83+
84+ <dependencies >
85+ <dependency >
86+ <groupId >org.apache.axis2.wso2</groupId >
87+ <artifactId >axis2</artifactId >
88+ <version >1.6.1.wso2v10</version >
89+ </dependency >
90+ <dependency >
91+ <groupId >org.apache.axis2.wso2</groupId >
92+ <artifactId >axis2-client</artifactId >
93+ <version >1.6.1.wso2v10</version >
94+ </dependency >
95+ <dependency >
96+ <groupId >org.apache.ws.commons.axiom.wso2</groupId >
97+ <artifactId >axiom</artifactId >
98+ <version >1.2.11.wso2v4</version >
99+ </dependency >
100+ <dependency >
101+ <groupId >wsdl4j.wso2</groupId >
102+ <artifactId >wsdl4j</artifactId >
103+ <version >1.6.2.wso2v4</version >
104+ </dependency >
105+ </dependencies >
106+
107+ <build >
108+ <plugins >
109+ <plugin >
110+ <groupId >org.apache.maven.plugins</groupId >
111+ <artifactId >maven-compiler-plugin</artifactId >
112+ <version >3.5.1</version >
113+ <configuration >
114+ <source >1.8</source >
115+ <target >1.8</target >
116+ </configuration >
117+ </plugin >
118+ <plugin >
119+ <groupId >org.apache.maven.plugins</groupId >
120+ <artifactId >maven-antrun-plugin</artifactId >
121+ <version >1.1</version >
122+ <executions >
123+ <execution >
124+ <id >source-code-generation</id >
125+ <phase >process-resources</phase >
126+ <goals >
127+ <goal >run</goal >
128+ </goals >
129+ <configuration >
130+ <tasks >
131+ <path id =" wsdl2java.classpath" >
132+ <pathelement location =" ${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar" />
133+ <pathelement location =" ${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar" />
134+ <pathelement location =" ${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar" />
135+ </path >
136+ <java classname =" org.apache.axis2.wsdl.WSDL2Java" fork =" true" >
137+ <classpath refid =" wsdl2java.classpath" />
138+ <arg line =" -uri src/main/resources/SampleService.wsdl -u -uw -o target/generated-code -p com.javahelps.samplecarbon.stub -ns2p http://org.apache.axis2/xsd=com.javahelps.samplecarbon.types.axis2,http://service.samplecarbon.javahelps.com=com.javahelps.samplecarbon.types" />
139+ </java >
140+ </tasks >
141+ </configuration >
142+ </execution >
143+ </executions >
144+ </plugin >
145+ <plugin >
146+ <groupId >org.codehaus.mojo</groupId >
147+ <artifactId >build-helper-maven-plugin</artifactId >
148+ <executions >
149+ <execution >
150+ <id >add-source</id >
151+ <phase >generate-sources</phase >
152+ <goals >
153+ <goal >add-source</goal >
154+ </goals >
155+ <configuration >
156+ <sources >
157+ <source >target/generated-code/src</source >
158+ </sources >
159+ </configuration >
160+ </execution >
161+ </executions >
162+ </plugin >
163+ <plugin >
164+ <groupId >org.apache.felix</groupId >
165+ <artifactId >maven-bundle-plugin</artifactId >
166+ <extensions >true</extensions >
167+ <configuration >
168+ <instructions >
169+ <Bundle-SymbolicName >${project.artifactId} </Bundle-SymbolicName >
170+ <Bundle-Name >${project.artifactId} </Bundle-Name >
171+ <Private-Package />
172+ <Export-Package >com.javahelps.samplecarbon.*
173+ </Export-Package >
174+ <Import-Package >!com.javahelps.samplecarbon.*
175+ </Import-Package >
176+ <DynamicImport-Package >*</DynamicImport-Package >
177+ </instructions >
178+ </configuration >
179+ </plugin >
180+ </plugins >
181+ <pluginManagement >
182+ <plugins >
183+ <!-- This plugin's configuration is used to store Eclipse m2e settings
184+ only. It has no influence on the Maven build itself. -->
185+ <plugin >
186+ <groupId >org.eclipse.m2e</groupId >
187+ <artifactId >lifecycle-mapping</artifactId >
188+ <version >1.0.0</version >
189+ <configuration >
190+ <lifecycleMappingMetadata >
191+ <pluginExecutions >
192+ <pluginExecution >
193+ <pluginExecutionFilter >
194+ <groupId >org.apache.maven.plugins</groupId >
195+ <artifactId >maven-antrun-plugin</artifactId >
196+ <versionRange >[1.1,)</versionRange >
197+ <goals >
198+ <goal >run</goal >
199+ </goals >
200+ </pluginExecutionFilter >
201+ <action >
202+ <ignore />
203+ </action >
204+ </pluginExecution >
205+ <pluginExecution >
206+ <pluginExecutionFilter >
207+ <groupId >org.codehaus.mojo</groupId >
208+ <artifactId >build-helper-maven-plugin</artifactId >
209+ <versionRange >[1.9.1,)</versionRange >
210+ <goals >
211+ <goal >add-source</goal >
212+ </goals >
213+ </pluginExecutionFilter >
214+ <action >
215+ <ignore />
216+ </action >
217+ </pluginExecution >
218+ </pluginExecutions >
219+ </lifecycleMappingMetadata >
220+ </configuration >
221+ </plugin >
222+ </plugins >
223+ </pluginManagement >
224+ </build >
225+ </project >
0 commit comments