Merge branch 'master' into 'master'

Add maven dependency plugin to extract wso2am pack

See merge request entgra/community-product!15
temp
Pahansith Gunathilake 3 years ago
commit 7d93798126

@ -51,32 +51,38 @@
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<version>3.2.0</version>
<executions> <executions>
<execution>
<id>check-pack</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="check-pack">
<available file="${user.home}/.m2/repository/org/wso2/am/am-parent/4.0.0/am-parent-${wso2am-nexus-artifact-version}.zip" property="pack.exists" />
</target>
</configuration>
</execution>
<execution> <execution>
<id>extract-pack</id> <id>extract-pack</id>
<phase>process-resources</phase> <phase>process-resources</phase>
<goals> <goals>
<goal>run</goal> <goal>unpack</goal>
</goals> </goals>
<configuration> <configuration>
<target name="extract-pack"> <artifactItems>
<unzip src="${user.home}/.m2/repository/org/wso2/am/am-parent/4.0.0/am-parent-${wso2am-nexus-artifact-version}.zip" dest="target" overwrite="true" /> <artifactItem>
</target> <groupId>org.wso2.am</groupId>
<artifactId>am-parent</artifactId>
<version>${wso2am-nexus-artifact-version}</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>${project.basedir}/target</outputDirectory>
<destFileName>wso2am-${wso2am-nexus-artifact-version}</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.basedir}/target</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration> </configuration>
</execution> </execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution> <execution>
<id>update-dbscripts</id> <id>update-dbscripts</id>
<phase>process-resources</phase> <phase>process-resources</phase>
@ -178,7 +184,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.wso2.maven</groupId> <groupId>org.wso2.maven</groupId>
<artifactId>carbon-p2-plugin</artifactId> <artifactId>carbon-p2-plugin</artifactId>

Loading…
Cancel
Save