added wso2am download logic

merge-requests/1/head
Amalka Subasinghe 3 years ago
parent 99a8d002d2
commit 6722f4059f

@ -45,7 +45,34 @@
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>create-solution</id>
<id>check-pack</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="check-pack">
<available file="${wso2am}.zip" property="pack.exists"/>
</target>
</configuration>
</execution>
<execution>
<id>download-pack</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="download-pack" unless="pack.exists">
<get src="${wso2am-download-url}"
dest="${basedir}"
verbose="false"
usetimestamp="true"/>
</target>
</configuration>
</execution>
<execution>
<id>extract-pack</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>

@ -102,6 +102,8 @@
<properties>
<wso2am>wso2am-4.0.0</wso2am>
<wso2am-download-url>https://github.com/wso2/product-apim/releases/download/v4.0.0/${wso2am}.zip</wso2am-download-url>
<entgra-iot-core>entgra-iot-core-${project.version}</entgra-iot-core>
<entgra-iot-community>entgra-iot-community-${project.version}</entgra-iot-community>
<entgra-emm-community>entgra-emm-community-${project.version}</entgra-emm-community>