mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-1444. Add 3 awsapi profiles 1. Download ec2 wsdl for 2012-08-15 2. Generate stubs (server and client) from the wsdl 3. Remove the ec2 wsdl [Support for EC2 API version 2012-08-15]
Signed-off-by: Likitha Shetty <likitha.shetty@citrix.com>
This commit is contained in:
parent
c08b927b86
commit
e4ba348ef0
119
awsapi/pom.xml
119
awsapi/pom.xml
@ -415,4 +415,123 @@
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>downloadec2wsdl</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>downloadec2wsdl</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<target name="download-2012-08-15.ec2-wsdl">
|
||||
<!-- Create the WSDL directory structure used by codegen -->
|
||||
<mkdir dir="wsdl" />
|
||||
<echo message="Downloading 2012-08-15.ec2-wsdl..." />
|
||||
<get
|
||||
src="http://s3.amazonaws.com/ec2-downloads/2012-08-15.ec2.wsdl"
|
||||
dest="${basedir}/wsdl/"
|
||||
verbose="true"
|
||||
usetimestamp="true"
|
||||
/>
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>gencodefromwsdl</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>gencodefromwsdl</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.axis2</groupId>
|
||||
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
|
||||
<version>1.5.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>wsdl2code</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<wsdlFile>${basedir}/wsdl/2012-08-15.ec2.wsdl</wsdlFile>
|
||||
<packageName>com.amazon.ec2</packageName>
|
||||
<generateServerSide>true</generateServerSide>
|
||||
<generateServicesXml>true</generateServicesXml>
|
||||
<generateServerSideInterface>true</generateServerSideInterface>
|
||||
<namespaceToPackages>http://ec2.amazonaws.com/doc/2012-08-15/=com.amazon.ec2</namespaceToPackages>
|
||||
<outputDirectory>${basedir}</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>generate-aws-ec2-source-client</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>wsdl2code</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<wsdlFile>${basedir}/wsdl/2012-08-15.ec2.wsdl</wsdlFile>
|
||||
<packageName>com.amazon.ec2.client</packageName>
|
||||
<namespaceToPackages>http://ec2.amazonaws.com/doc/2012-08-15/=com.amazon.ec2.client</namespaceToPackages>
|
||||
<outputDirectory>${basedir}</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>removewsdl</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>removewsdl</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>clean</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<executable>rm</executable>
|
||||
<arguments>
|
||||
<argument>-rf</argument>
|
||||
<argument>${basedir}/wsdl/</argument>
|
||||
<argument>${basedir}/resources/AmazonEC2.wsdl</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user