@@ -44,25 +44,25 @@ The generated file will be placed in the `${project.build}` directory.
44
44
45
45
```
46
46
<plugin>
47
- <groupId>com.liveramp.cdap.plugin </groupId>
47
+ <groupId>co.cask </groupId>
48
48
<version>1.1.3</version>
49
49
<artifactId>cdap-maven-plugin</artifactId>
50
50
<configuration>
51
51
<cdapArtifacts>
52
- <parent>system:cdap-data-pipeline[4.0.0,9.0.0-SNAPSHOT)</parent>
53
- <parent>system:cdap-data-streams[4.0.0,9.0.0-SNAPSHOT)</parent>
52
+ <parent>system:cdap-data-pipeline[4.0.0,9.0.0-SNAPSHOT)</parent>
53
+ <parent>system:cdap-data-streams[4.0.0,9.0.0-SNAPSHOT)</parent>
54
54
</cdapArtifacts>
55
- </configuration>
56
- <executions>
57
- <execution>
55
+ </configuration>
56
+ <executions>
57
+ <execution>
58
58
<id>create-artifact-config</id>
59
59
<phase>prepare-package</phase>
60
60
<goals>
61
61
<goal>create-plugin-json</goal>
62
62
</goals>
63
- </execution>
64
- </executions>
65
- </plugin>
63
+ </execution>
64
+ </executions>
65
+ </plugin>
66
66
```
67
67
68
68
#### Output
@@ -135,75 +135,75 @@ Including both `create-plugin-json` and `create-plugin-spec-json` goals
135
135
136
136
```
137
137
<plugin>
138
- <groupId>com.liveramp.cdap.plugin </groupId>
139
- <version>1.1.3</version>
140
- <artifactId>cdap-maven-plugin</artifactId>
141
- <configuration>
142
- <cdapArtifacts>
143
- <parent>system:cdap-data-pipeline[6.0.0-SNAPSHOT,9.0.0-SNAPSHOT)</parent>
144
- <parent>system:cdap-data-streams[6.0.0-SNAPSHOT,9.0.0-SNAPSHOT)</parent>
145
- </cdapArtifacts>
146
- <author>LiveRamp</author>
147
- <org>LiveRamp</org>
148
- <description>optional plugin description</description>
149
- <categories>
150
- <category>cat1</category>
151
- <category>cat2</category>
152
- </categories>
153
- <additionalActionArguments>
154
- <argument>
155
- <key>jar</key>
156
- <value>${project.artifactId}-${project.version}.jar</value>
157
- </argument>
158
- </additionalActionArguments>
159
- <scope>user</scope>
160
- </configuration>
161
- <executions>
162
- <execution>
163
- <id>create-artifact-config</id>
164
- <phase>prepare-package</phase>
165
- <goals>
166
- <goal>create-plugin-json</goal>
167
- <goal>create-plugin-spec-json</goal>
168
- </goals>
169
- </execution>
170
- </executions>
138
+ <groupId>co.cask </groupId>
139
+ <version>1.1.3</version>
140
+ <artifactId>cdap-maven-plugin</artifactId>
141
+ <configuration>
142
+ <cdapArtifacts>
143
+ <parent>system:cdap-data-pipeline[6.0.0-SNAPSHOT,9.0.0-SNAPSHOT)</parent>
144
+ <parent>system:cdap-data-streams[6.0.0-SNAPSHOT,9.0.0-SNAPSHOT)</parent>
145
+ </cdapArtifacts>
146
+ <author>LiveRamp</author>
147
+ <org>LiveRamp</org>
148
+ <description>optional plugin description</description>
149
+ <categories>
150
+ <category>cat1</category>
151
+ <category>cat2</category>
152
+ </categories>
153
+ <additionalActionArguments>
154
+ <argument>
155
+ <key>jar</key>
156
+ <value>${project.artifactId}-${project.version}.jar</value>
157
+ </argument>
158
+ </additionalActionArguments>
159
+ <scope>user</scope>
160
+ </configuration>
161
+ <executions>
162
+ <execution>
163
+ <id>create-artifact-config</id>
164
+ <phase>prepare-package</phase>
165
+ <goals>
166
+ <goal>create-plugin-json</goal>
167
+ <goal>create-plugin-spec-json</goal>
168
+ </goals>
169
+ </execution>
170
+ </executions>
171
171
</plugin>
172
172
```
173
173
174
174
Including only ` create-plugin-spec-json ` goal
175
175
176
176
```
177
- <plugins>
178
- <plugin>
179
- <groupId>com.liveramp.cdap.plugin </groupId>
180
- <artifactId>cdap-maven-plugin</artifactId>
181
- <version>1.1.3</version>
182
- <configuration>
183
- <cdapArtifacts>
184
- <parent>system:cdap-data-pipeline[6.0.0-SNAPSHOT,9.0.0-SNAPSHOT)</parent>
185
- <parent>system:cdap-data-streams[6.0.0-SNAPSHOT,9.0.0-SNAPSHOT)</parent>
186
- </cdapArtifacts>
187
- <categories>
188
- <param>cat1</param>
189
- </categories>
190
- <actionType>create_pipeline_draft</actionType>
191
- <isPipeline>true</isPipeline>
192
- </configuration>
193
- <executions>
194
- <execution>
195
- <id>create-artifact-config</id>
196
- <phase>prepare-package</phase>
197
- <goals>
198
- <goal>create-plugin-spec-json</goal>
199
- </goals>
200
- </execution>
201
- </executions>
202
- </plugin>
203
- </plugins>
204
- </build>
205
-
206
- </project>
177
+ <plugins>
178
+ <plugin>
179
+ <groupId>co.cask </groupId>
180
+ <artifactId>cdap-maven-plugin</artifactId>
181
+ <version>1.1.3</version>
182
+ <configuration>
183
+ <cdapArtifacts>
184
+ <parent>system:cdap-data-pipeline[6.0.0-SNAPSHOT,9.0.0-SNAPSHOT)</parent>
185
+ <parent>system:cdap-data-streams[6.0.0-SNAPSHOT,9.0.0-SNAPSHOT)</parent>
186
+ </cdapArtifacts>
187
+ <categories>
188
+ <param>cat1</param>
189
+ </categories>
190
+ <actionType>create_pipeline_draft</actionType>
191
+ <isPipeline>true</isPipeline>
192
+ </configuration>
193
+ <executions>
194
+ <execution>
195
+ <id>create-artifact-config</id>
196
+ <phase>prepare-package</phase>
197
+ <goals>
198
+ <goal>create-plugin-spec-json</goal>
199
+ </goals>
200
+ </execution>
201
+ </executions>
202
+ </plugin>
203
+ </plugins>
204
+ </build>
205
+
206
+ </project>
207
207
```
208
208
209
209
#### Output
@@ -213,7 +213,7 @@ Including only `create-plugin-spec-json` goal
213
213
[INFO] CDAP Plugin JSON
214
214
[INFO] ------------------------------------------------------------------------
215
215
[INFO] Project : Adhoc SQL Plugin
216
- [INFO] Group ID : com.liveramp.cdap.plugin
216
+ [INFO] Group ID : co.cask
217
217
[INFO] Artifact ID : adhoc_sql
218
218
[INFO] Version : 0.1.0
219
219
[INFO] Base Directory : /Users/user1/code/cdap-plugins/lsh/misc/adhoc_sql
@@ -276,27 +276,27 @@ To simplify the `relativeOutputDir` value the `directory-maven-plugin` should be
276
276
277
277
** Example of ` directory-maven-plugin ` plugin configuration to have in parent pom.xml**
278
278
```
279
- <plugin>
280
- <groupId>org.commonjava.maven.plugins</groupId>
281
- <artifactId>directory-maven-plugin</artifactId>
282
- <version>0.3.1</version>
283
- <executions>
284
- <execution>
285
- <id>directories</id>
286
- <goals>
287
- <goal>directory-of</goal>
288
- </goals>
289
- <phase>initialize</phase>
290
- <configuration>
291
- <property>parent_module.basedir</property>
292
- <project>
293
- <groupId>com.org.groupId</groupId>
294
- <artifactId>artifactId</artifactId>
295
- </project>
296
- </configuration>
297
- </execution>
298
- </executions>
299
- </plugin>
279
+ <plugin>
280
+ <groupId>org.commonjava.maven.plugins</groupId>
281
+ <artifactId>directory-maven-plugin</artifactId>
282
+ <version>0.3.1</version>
283
+ <executions>
284
+ <execution>
285
+ <id>directories</id>
286
+ <goals>
287
+ <goal>directory-of</goal>
288
+ </goals>
289
+ <phase>initialize</phase>
290
+ <configuration>
291
+ <property>parent_module.basedir</property>
292
+ <project>
293
+ <groupId>com.org.groupId</groupId>
294
+ <artifactId>artifactId</artifactId>
295
+ </project>
296
+ </configuration>
297
+ </execution>
298
+ </executions>
299
+ </plugin>
300
300
```
301
301
302
302
Using this simplifies ` relativeOutputDir ` value to ` ${parent_module.basedir}/packages ` .<br >
@@ -308,58 +308,58 @@ The goal must be run after any pre-package goals specified. In order to do this
308
308
to be applied.
309
309
310
310
```
311
- <execution>
312
- <goals>
313
- <goal>package-artifacts-for-hub</goal>
314
- </goals>
315
- <id>move-artifacts</id>
316
- <phase>package</phase>
317
- </execution>
311
+ <execution>
312
+ <goals>
313
+ <goal>package-artifacts-for-hub</goal>
314
+ </goals>
315
+ <id>move-artifacts</id>
316
+ <phase>package</phase>
317
+ </execution>
318
318
```
319
319
320
320
#### Example POM
321
321
322
322
```
323
- <plugin>
324
- <groupId>com.liveramp.cdap.plugin </groupId>
325
- <version>1.1.3</version>
326
- <artifactId>cdap-maven-plugin</artifactId>
327
- <configuration>
328
- <cdapArtifacts>
329
- <parent>system:cdap-data-pipeline[6.1.0-SNAPSHOT,7.0.0-SNAPSHOT)</parent>
330
- <parent>system:cdap-data-streams[6.1.0-SNAPSHOT,7.0.0-SNAPSHOT)</parent>
331
- </cdapArtifacts>
332
- <additionalActionArguments>
333
- <argument>
334
- <key>jar</key>
335
- <value>${project.artifactId}-${project.version}.jar</value>
336
- </argument>
337
- </additionalActionArguments>
338
- <scope>user</scope>
339
- <author>LiveRamp</author>
340
- <org>LiveRamp</org>
341
- <description>optional plugin description</description>
342
- <!-- Using directory maven plugin -->
343
- <relativeOutputDir>${parent_module.basedir}/packages</relativeOutputDir>
344
- </configuration>
345
- <executions>
346
- <execution>
347
- <goals>
348
- <goal>create-plugin-json</goal>
349
- <goal>create-plugin-spec-json</goal>
350
- </goals>
351
- <id>create-artifact-config</id>
352
- <phase>prepare-package</phase>
353
- </execution>
354
- <execution>
355
- <goals>
356
- <goal>package-artifacts-for-hub</goal>
357
- </goals>
358
- <id>move-artifacts</id>
359
- <phase>package</phase>
360
- </execution>
361
- </executions>
362
- </plugin>
323
+ <plugin>
324
+ <groupId>co.cask </groupId>
325
+ <version>1.1.3</version>
326
+ <artifactId>cdap-maven-plugin</artifactId>
327
+ <configuration>
328
+ <cdapArtifacts>
329
+ <parent>system:cdap-data-pipeline[6.1.0-SNAPSHOT,7.0.0-SNAPSHOT)</parent>
330
+ <parent>system:cdap-data-streams[6.1.0-SNAPSHOT,7.0.0-SNAPSHOT)</parent>
331
+ </cdapArtifacts>
332
+ <additionalActionArguments>
333
+ <argument>
334
+ <key>jar</key>
335
+ <value>${project.artifactId}-${project.version}.jar</value>
336
+ </argument>
337
+ </additionalActionArguments>
338
+ <scope>user</scope>
339
+ <author>LiveRamp</author>
340
+ <org>LiveRamp</org>
341
+ <description>optional plugin description</description>
342
+ <!-- Using directory maven plugin -->
343
+ <relativeOutputDir>${parent_module.basedir}/packages</relativeOutputDir>
344
+ </configuration>
345
+ <executions>
346
+ <execution>
347
+ <goals>
348
+ <goal>create-plugin-json</goal>
349
+ <goal>create-plugin-spec-json</goal>
350
+ </goals>
351
+ <id>create-artifact-config</id>
352
+ <phase>prepare-package</phase>
353
+ </execution>
354
+ <execution>
355
+ <goals>
356
+ <goal>package-artifacts-for-hub</goal>
357
+ </goals>
358
+ <id>move-artifacts</id>
359
+ <phase>package</phase>
360
+ </execution>
361
+ </executions>
362
+ </plugin>
363
363
```
364
364
365
365
#### Output
@@ -418,7 +418,7 @@ If the path is not correct you will see a
418
418
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
419
419
420
420
<name>Test Exported Pipeline</name>
421
- <groupId>com.liveramp.cdap.plugin </groupId>
421
+ <groupId>co.cask </groupId>
422
422
<artifactId>test_exported_pipeline</artifactId>
423
423
<version>1.0.0</version>
424
424
<modelVersion>4.0.0</modelVersion>
@@ -432,7 +432,7 @@ If the path is not correct you will see a
432
432
<build>
433
433
<plugins>
434
434
<plugin>
435
- <groupId>com.liveramp.cdap.plugin </groupId>
435
+ <groupId>co.cask </groupId>
436
436
<version>1.1.3</version>
437
437
<artifactId>cdap-maven-plugin</artifactId>
438
438
<configuration>
0 commit comments