Created
April 10, 2017 17:20
-
-
Save jclyons/629af87b8fe592d96e841db67fcd4ace to your computer and use it in GitHub Desktop.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<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"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.sonatype.oss</groupId> | |
<artifactId>oss-parent</artifactId> | |
<version>7</version> | |
</parent> | |
<packaging>jar</packaging> | |
<groupId>com.jaroop</groupId> | |
<artifactId>PACKAGE-NAME</artifactId> | |
<version>x.x.x</version> | |
<name>PACKAGE-NAME</name> | |
<description>WebJar for PACKAGE-NAME</description> | |
<url>http://webjars.org</url> | |
<developers> | |
<developer> | |
<id>Author github name</id> | |
<name>Author Name</name> | |
</developer> | |
</developers> | |
<licenses> | |
<license> | |
<name>MIT</name> | |
<url>https://github.com/jclyons/PACKAGE-NAME/blob/master/LICENSE</url> | |
<distribution>repo</distribution> | |
</license> | |
</licenses> | |
<scm> | |
<url>https://github.com/jclyons/PACKAGE-NAME</url> | |
<connection>scm:git:https://github.com/jclyons/PACKAGE-NAME.git</connection> | |
<developerConnection>scm:git:https://github.com/jclyons/PACKAGE-NAME.git</developerConnection> | |
<tag>HEAD</tag> | |
</scm> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<source.url>https://github.com/jclyons/PACKAGE-NAME/archive</source.url> | |
<upstream.version>x.x.x</upstream.version> | |
<upstream.url>https://github.com/jclyons/PACKAGE-NAME/archive</upstream.url> | |
<destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${upstream.version}</destDir> | |
<extractDir>${project.build.directory}/PACKAGE-NAME-${upstream.version}</extractDir> | |
<requirejs> | |
{ | |
"paths": { | |
"PACKAGE-NAME": "PACKAGE-NAME", | |
}, | |
"shim": { | |
"PACKAGE-NAME": { "exports": "PACKAGE-NAME" } | |
} | |
} | |
</requirejs> | |
</properties> | |
<distributionManagement> | |
<repository> | |
<id>aws-release</id> | |
<name>Jaroop releases</name> | |
<url>s3://jaroop-releases</url> | |
</repository> | |
<snapshotRepository> | |
<id>aws-snapshot</id> | |
<name>Jaroop snapshots</name> | |
<url>s3://jaroop-snapshots</url> | |
</snapshotRepository> | |
</distributionManagement> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.7</version> | |
<executions> | |
<execution> | |
<phase>process-resources</phase> | |
<goals><goal>run</goal></goals> | |
<configuration> | |
<target> | |
<echo message="download archive" /> | |
<get src="${upstream.url}/v${upstream.version}.zip" dest="${project.build.directory}/${project.artifactId}.zip" /> | |
<echo message="unzip archive" /> | |
<unzip src="${project.build.directory}/${project.artifactId}.zip" dest="${project.build.directory}" /> | |
<echo message="moving resources" /> | |
<move todir="${destDir}"> | |
<fileset dir="${project.build.directory}/PACKAGE-NAME-${upstream.version}" /> | |
</move> | |
</target> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.5.1</version> | |
</plugin> | |
<plugin> | |
<groupId>com.googlecode.todomap</groupId> | |
<artifactId>maven-jettygzip-plugin</artifactId> | |
<version>0.0.4</version> | |
<configuration> | |
<webappDirectory>target/classes</webappDirectory> | |
<outputDirectory>target/classes</outputDirectory> | |
</configuration> | |
<executions> | |
<execution> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>process</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
<extensions> | |
<extension> | |
<groupId>org.springframework.build</groupId> | |
<artifactId>aws-maven</artifactId> | |
<version>5.0.0.RELEASE</version> | |
</extension> | |
</extensions> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment