Last active
August 29, 2015 14:19
-
-
Save atanasenko/5b6a04ad5ca5cea6c4d6 to your computer and use it in GitHub Desktop.
pom.xml with custom packaging
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
<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.example</groupId> | |
<artifactId>parent</artifactId> | |
<version>1</version> | |
</parent> | |
<groupId>org.example.resources</groupId> | |
<artifactId>res_all</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>composite-resources</packaging> | |
<!-- | |
| res/static/{res1, res2, res3} and current artifact's res/static/res_all get copied over | |
| and repackaged as resources/static/res_all | |
--> | |
<properties> | |
<resources.base>res/static/</resources.base> | |
<resources.module>${project.artifactId}</resources.module> | |
<resources.composition> | |
${resources.base}/res1, | |
${resources.base}/res2, | |
${resources.base}/res3 | |
</resources.composition> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.example.resources</groupId> | |
<artifactId>res1</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<type>zip</type> | |
</dependency> | |
<dependency> | |
<groupId>org.example.resources</groupId> | |
<artifactId>res2</artifactId> | |
<version>1.0</version> | |
<type>zip</type> | |
</dependency> | |
<dependency> | |
<groupId>org.example.resources</groupId> | |
<artifactId>res3</artifactId> | |
<version>1.0</version> | |
<type>zip</type> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment