|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<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/maven-v4_0_0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <parent> |
| 6 | + <groupId>org.sonatype.oss</groupId> |
| 7 | + <artifactId>oss-parent</artifactId> |
| 8 | + <version>7</version> |
| 9 | + </parent> |
| 10 | + |
| 11 | + <packaging>jar</packaging> |
| 12 | + <groupId>org.webjars</groupId> |
| 13 | + <artifactId>pdf-js</artifactId> |
| 14 | + <version>0.5.5-SNAPSHOT</version> |
| 15 | + <name>PDF.JS</name> |
| 16 | + <description>WebJar for PDF.JS</description> |
| 17 | + <url>http://webjars.org</url> |
| 18 | + |
| 19 | + <licenses> |
| 20 | + <license> |
| 21 | + <name>Apache License Version 2.0</name> |
| 22 | + <url>https://github.com/mozilla/pdf.js/blob/master/LICENSE</url> |
| 23 | + <distribution>repo</distribution> |
| 24 | + </license> |
| 25 | + </licenses> |
| 26 | + |
| 27 | + <scm> |
| 28 | + <url>http://github.com/webjars/pdf-js</url> |
| 29 | + <connection>scm:git:https://github.com/webjars/pdf-js.git</connection> |
| 30 | + <developerConnection>scm:git:https://github.com/webjars/pdf-js.git</developerConnection> |
| 31 | + <tag>HEAD</tag> |
| 32 | + </scm> |
| 33 | + |
| 34 | + <developers> |
| 35 | + <developer> |
| 36 | + <id>jamesward</id> |
| 37 | + <name>James Ward</name> |
| 38 | + |
| 39 | + </developer> |
| 40 | + </developers> |
| 41 | + |
| 42 | + <properties> |
| 43 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 44 | + <upstreamVersion>0.5.5</upstreamVersion> |
| 45 | + <sourceUrl>https://github.com/mozilla/pdf.js/archive</sourceUrl> |
| 46 | + <destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${upstreamVersion}</destDir> |
| 47 | + </properties> |
| 48 | + |
| 49 | + <build> |
| 50 | + <plugins> |
| 51 | + <plugin> |
| 52 | + <groupId>org.codehaus.mojo</groupId> |
| 53 | + <artifactId>wagon-maven-plugin</artifactId> |
| 54 | + <version>1.0-beta-4</version> |
| 55 | + <executions> |
| 56 | + <execution> |
| 57 | + <phase>process-resources</phase> |
| 58 | + <goals><goal>download-single</goal></goals> |
| 59 | + <configuration> |
| 60 | + <url>${sourceUrl}</url> |
| 61 | + <fromFile>v${upstreamVersion}.zip</fromFile> |
| 62 | + <toFile>${project.build.directory}/${project.artifactId}.zip</toFile> |
| 63 | + </configuration> |
| 64 | + </execution> |
| 65 | + </executions> |
| 66 | + </plugin> |
| 67 | + |
| 68 | + <plugin> |
| 69 | + <artifactId>maven-antrun-plugin</artifactId> |
| 70 | + <version>1.7</version> |
| 71 | + <executions> |
| 72 | + <execution> |
| 73 | + <phase>process-resources</phase> |
| 74 | + <goals><goal>run</goal></goals> |
| 75 | + <configuration> |
| 76 | + <target> |
| 77 | + <echo message="unzip archive" /> |
| 78 | + <unzip src="${project.build.directory}/${project.artifactId}.zip" dest="${project.build.directory}" /> |
| 79 | + <echo message="moving resources" /> |
| 80 | + <move todir="${destDir}"> |
| 81 | + <fileset dir="${project.build.directory}/pdf.js-${upstreamVersion}" /> |
| 82 | + </move> |
| 83 | + </target> |
| 84 | + </configuration> |
| 85 | + </execution> |
| 86 | + </executions> |
| 87 | + </plugin> |
| 88 | + <plugin> |
| 89 | + <groupId>org.apache.maven.plugins</groupId> |
| 90 | + <artifactId>maven-release-plugin</artifactId> |
| 91 | + <version>2.3.2</version> |
| 92 | + </plugin> |
| 93 | + </plugins> |
| 94 | + </build> |
| 95 | + |
| 96 | +</project> |
0 commit comments