Last active
February 7, 2016 20:05
-
-
Save pingw33n/f202059aa40ade58f5bb to your computer and use it in GitHub Desktop.
Maven Qooxdoo SDK Installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This POM downloads and installs Qooxdoo SDK into local Maven repository. | |
Note that the installed ZIP won't include the top level qooxdoo-x.x.x-sdk directory. | |
Usage: | |
mvn [-Dqx.version=5.0.1] | |
--> | |
<project> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>net.emphased.qooxdoo</groupId> | |
<artifactId>qoxodoo-sdk-installer</artifactId> | |
<version>1</version> | |
<properties> | |
<qx.version>5.0.1</qx.version> | |
<qx.basename>qooxdoo-${qx.version}-sdk</qx.basename> | |
<zipname>${qx.basename}.zip</zipname> | |
<url>http://sourceforge.net/projects/qooxdoo/files/qooxdoo-current/${qx.version}/${zipname}/download</url> | |
<zip>${project.build.directory}/${zipname}</zip> | |
<repack-zipdir>${project.build.directory}/${qx.basename}</repack-zipdir> | |
<repack-zip>${project.build.directory}/${qx.basename}-repacked.zip</repack-zip> | |
</properties> | |
<build> | |
<defaultGoal>package</defaultGoal> | |
<plugins> | |
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.8</version> | |
<executions> | |
<execution> | |
<id>download-zip</id> | |
<phase>generate-sources</phase> | |
<configuration> | |
<target> | |
<get src="${url}" dest="${zip}" usetimestamp="true"/> | |
<delete dir="${repack-zipdir}" quiet="true"/> | |
<unzip src="${zip}" dest="${repack-zipdir}"/> | |
<delete file="${repack-zip}" quiet="true"/> | |
<zip destfile="${repack-zip}" basedir="${repack-zipdir}/${qx.basename}"/> | |
</target> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-install-plugin</artifactId> | |
<version>2.4</version> | |
<executions> | |
<execution> | |
<id>install-artifact</id> | |
<phase>package</phase> | |
<goals> | |
<goal>install-file</goal> | |
</goals> | |
<configuration> | |
<file>${repack-zip}</file> | |
<groupId>org.qooxdoo</groupId> | |
<artifactId>qooxdoo-sdk</artifactId> | |
<version>${qx.version}</version> | |
<packaging>zip</packaging> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment