|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>com.example</groupId> |
| 8 | + <artifactId>simple-udds</artifactId> |
| 9 | + <name>Simple User Defined Directives</name> |
| 10 | + <version>1.0-SNAPSHOT</version> |
| 11 | + <packaging>jar</packaging> |
| 12 | + |
| 13 | + <properties> |
| 14 | + <!-- properties for script build step that creates the config files for the artifacts --> |
| 15 | + <widgets.dir>widgets</widgets.dir> |
| 16 | + <docs.dir>docs</docs.dir> |
| 17 | + <!-- this is here because project.basedir evaluates to null in the script build step --> |
| 18 | + <main.basedir>${project.basedir}</main.basedir> |
| 19 | + <cdap.version>4.3.1</cdap.version> |
| 20 | + <wrangler.version>3.0.1</wrangler.version> |
| 21 | + <commons.codec.version>1.10</commons.codec.version> |
| 22 | + <junit.version>4.12</junit.version> |
| 23 | + </properties> |
| 24 | + |
| 25 | + <distributionManagement> |
| 26 | + <repository> |
| 27 | + <id>sonatype.release</id> |
| 28 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> |
| 29 | + </repository> |
| 30 | + <snapshotRepository> |
| 31 | + <id>sonatype.snapshots</id> |
| 32 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 33 | + </snapshotRepository> |
| 34 | + </distributionManagement> |
| 35 | + |
| 36 | + <!-- Include the Maven Plugin Repository --> |
| 37 | + <pluginRepositories> |
| 38 | + <pluginRepository> |
| 39 | + <id>sonatype</id> |
| 40 | + <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
| 41 | + </pluginRepository> |
| 42 | + </pluginRepositories> |
| 43 | + |
| 44 | + <dependencies> |
| 45 | + <!-- Core Dependencies --> |
| 46 | + |
| 47 | + <dependency> |
| 48 | + <groupId>co.cask.wrangler</groupId> |
| 49 | + <artifactId>wrangler-api</artifactId> |
| 50 | + <version>${wrangler.version}</version> |
| 51 | + <scope>provided</scope> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>co.cask.cdap</groupId> |
| 55 | + <artifactId>cdap-api</artifactId> |
| 56 | + <version>${cdap.version}</version> |
| 57 | + <scope>provided</scope> |
| 58 | + </dependency> |
| 59 | + <dependency> |
| 60 | + <groupId>co.cask.cdap</groupId> |
| 61 | + <artifactId>cdap-etl-api</artifactId> |
| 62 | + <version>${cdap.version}</version> |
| 63 | + <scope>provided</scope> |
| 64 | + </dependency> |
| 65 | + |
| 66 | + <!-- External Dependencies --> |
| 67 | + |
| 68 | + <dependency> |
| 69 | + <groupId>commons-codec</groupId> |
| 70 | + <artifactId>commons-codec</artifactId> |
| 71 | + <version>${commons.codec.version}</version> |
| 72 | + </dependency> |
| 73 | + |
| 74 | + <!-- Testing Dependencies --> |
| 75 | + <dependency> |
| 76 | + <groupId>co.cask.wrangler</groupId> |
| 77 | + <artifactId>wrangler-test</artifactId> |
| 78 | + <version>${wrangler.version}</version> |
| 79 | + <scope>test</scope> |
| 80 | + </dependency> |
| 81 | + |
| 82 | + <dependency> |
| 83 | + <groupId>junit</groupId> |
| 84 | + <artifactId>junit</artifactId> |
| 85 | + <version>${junit.version}</version> |
| 86 | + <scope>test</scope> |
| 87 | + </dependency> |
| 88 | + </dependencies> |
| 89 | + |
| 90 | + <build> |
| 91 | + <pluginManagement> |
| 92 | + <plugins> |
| 93 | + <plugin> |
| 94 | + <groupId>org.apache.maven.plugins</groupId> |
| 95 | + <artifactId>maven-compiler-plugin</artifactId> |
| 96 | + <version>3.1</version> |
| 97 | + <configuration> |
| 98 | + <source>1.7</source> |
| 99 | + <target>1.7</target> |
| 100 | + </configuration> |
| 101 | + </plugin> |
| 102 | + <plugin> |
| 103 | + <groupId>org.apache.felix</groupId> |
| 104 | + <artifactId>maven-bundle-plugin</artifactId> |
| 105 | + <version>2.3.7</version> |
| 106 | + <extensions>true</extensions> |
| 107 | + <configuration> |
| 108 | + <instructions> |
| 109 | + <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency> |
| 110 | + <Embed-Transitive>true</Embed-Transitive> |
| 111 | + <Embed-Directory>lib</Embed-Directory> |
| 112 | + <!--Only @Plugin classes in the export packages will be included as plugin--> |
| 113 | + <_exportcontents>org.example.directives.*</_exportcontents> |
| 114 | + </instructions> |
| 115 | + </configuration> |
| 116 | + <executions> |
| 117 | + <execution> |
| 118 | + <phase>package</phase> |
| 119 | + <goals> |
| 120 | + <goal>bundle</goal> |
| 121 | + </goals> |
| 122 | + </execution> |
| 123 | + </executions> |
| 124 | + </plugin> |
| 125 | + </plugins> |
| 126 | + </pluginManagement> |
| 127 | + |
| 128 | + <plugins> |
| 129 | + <plugin> |
| 130 | + <groupId>org.apache.maven.plugins</groupId> |
| 131 | + <artifactId>maven-surefire-plugin</artifactId> |
| 132 | + <version>2.14.1</version> |
| 133 | + </plugin> |
| 134 | + <plugin> |
| 135 | + <groupId>org.apache.felix</groupId> |
| 136 | + <artifactId>maven-bundle-plugin</artifactId> |
| 137 | + </plugin> |
| 138 | + <plugin> |
| 139 | + <groupId>org.apache.maven.plugins</groupId> |
| 140 | + <artifactId>maven-antrun-plugin</artifactId> |
| 141 | + </plugin> |
| 142 | + <plugin> |
| 143 | + <groupId>co.cask</groupId> |
| 144 | + <artifactId>cdap-maven-plugin</artifactId> |
| 145 | + <version>1.0.0-SNAPSHOT</version> |
| 146 | + <configuration> |
| 147 | + <cdapArtifacts> |
| 148 | + <parent>system:wrangler-transform[1.0.0-SNAPSHOT, 10.0.0-SNAPSHOT]</parent> |
| 149 | + </cdapArtifacts> |
| 150 | + </configuration> |
| 151 | + <executions> |
| 152 | + <execution> |
| 153 | + <id>create-artifact-config</id> |
| 154 | + <phase>prepare-package</phase> |
| 155 | + <goals> |
| 156 | + <goal>create-plugin-json</goal> |
| 157 | + </goals> |
| 158 | + </execution> |
| 159 | + </executions> |
| 160 | + </plugin> |
| 161 | + </plugins> |
| 162 | + </build> |
| 163 | + |
| 164 | +</project> |
0 commit comments