-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKLOG-19621] updates step archetype plugin structure.
- Loading branch information
Showing
37 changed files
with
1,042 additions
and
636 deletions.
There are no files selected for viewing
This file contains 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
108 changes: 70 additions & 38 deletions
108
pentaho-pdi-job-plugin-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,83 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="pdi-job-plugin" | ||
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<archetype-descriptor | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" | ||
name="pdi-job-plugin" | ||
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<requiredProperties> | ||
<requiredProperty key="plugin_class_name"></requiredProperty> | ||
<requiredProperty key="plugin_name"></requiredProperty> | ||
<requiredProperty key="plugin_category"></requiredProperty> | ||
<requiredProperty key="plugin_description"></requiredProperty> | ||
<requiredProperty key="plugin_class_name"/> | ||
<requiredProperty key="plugin_name"/> | ||
<requiredProperty key="plugin_category"/> | ||
<requiredProperty key="plugin_description"/> | ||
<requiredProperty key="kettleVersion"> | ||
<defaultValue>7.0.0.3-62</defaultValue> | ||
</requiredProperty> | ||
<defaultValue>8.1-SNAPSHOT</defaultValue> | ||
</requiredProperty> | ||
|
||
<requiredProperty key="package"> | ||
<defaultValue>org.pentaho.di</defaultValue> | ||
</requiredProperty> | ||
</requiredProperties> | ||
|
||
<fileSets> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/main/java</directory> | ||
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/test/java</directory> | ||
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" encoding="UTF-8"> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>**/*.xml</include> | ||
<include>**/*.svg</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>**/messages_*.properties</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet encoding="UTF-8"> | ||
<directory></directory> | ||
<directory/> | ||
<includes> | ||
<include>.gitignore</include> | ||
<include>README.md</include> | ||
<include>LICENSE.txt</include> | ||
</includes> | ||
<excludes> | ||
<exclude>*.iml</exclude> | ||
</excludes> | ||
</fileSet> | ||
</fileSets> | ||
|
||
<modules> | ||
<module id="${rootArtifactId}-impl" dir="impl" name="${plugin_name} Impl"> | ||
<fileSets> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/main/java</directory> | ||
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" encoding="UTF-8"> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>**/*.xml</include> | ||
<include>**/*.properties</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</module> | ||
<module id="${rootArtifactId}-ui" dir="ui" name="${plugin_name} UI"> | ||
<fileSets> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/main/java</directory> | ||
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" encoding="UTF-8"> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>**/*.properties</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet encoding="UTF-8"> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>**/*.svg</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</module> | ||
<module id="${rootArtifactId}-plugin" dir="assembly" name="${plugin_name} Assembly"> | ||
<fileSets> | ||
<fileSet filtered="true" encoding="UTF-8"> | ||
<directory>src/main/feature</directory> | ||
<includes> | ||
<include>**/*.xml</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</module> | ||
</modules> | ||
</archetype-descriptor> |
30 changes: 30 additions & 0 deletions
30
pentaho-pdi-job-plugin-archetype/src/main/resources/archetype-resources/assembly/pom.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>${groupId}</groupId> | ||
<artifactId>${rootArtifactId}</artifactId> | ||
<version>${version}</version> | ||
</parent> | ||
|
||
<artifactId>${artifactId}</artifactId> | ||
<packaging>kar</packaging> | ||
|
||
<name>${plugin_name} Assembly</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>${groupId}</groupId> | ||
<artifactId>${rootArtifactId}-impl</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>${groupId}</groupId> | ||
<artifactId>${rootArtifactId}-ui</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
11 changes: 11 additions & 0 deletions
11
...in-archetype/src/main/resources/archetype-resources/assembly/src/main/feature/feature.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#set( $symbol_pound = '#' ) | ||
#set( $symbol_dollar = '$' ) | ||
#set( $symbol_escape = '\' ) | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<features name="pentaho-${symbol_dollar}{project.artifactId}-${symbol_dollar}{project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"> | ||
|
||
<feature name='pentaho-${symbol_dollar}{project.artifactId}' description='${symbol_dollar}{project.description}'> | ||
<details>${plugin_description}</details> | ||
</feature> | ||
|
||
</features> |
120 changes: 120 additions & 0 deletions
120
pentaho-pdi-job-plugin-archetype/src/main/resources/archetype-resources/impl/pom.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<?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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>${groupId}</groupId> | ||
<artifactId>${rootArtifactId}</artifactId> | ||
<version>${version}</version> | ||
</parent> | ||
|
||
<artifactId>${artifactId}</artifactId> | ||
<packaging>bundle</packaging> | ||
|
||
<name>${plugin_name} Impl</name> | ||
|
||
<properties> | ||
<pentaho-metaverse.version>${kettleVersion}</pentaho-metaverse.version> | ||
<metastore.version>${kettleVersion}</metastore.version> | ||
<xml-apis.version>2.0.2</xml-apis.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-core</artifactId> | ||
<version>${kettle.version}</version> | ||
<scope>provided</scope> | ||
<exclusions> | ||
<exclusion> | ||
<artifactId>*</artifactId> | ||
<groupId>*</groupId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-engine</artifactId> | ||
<version>${kettle.version}</version> | ||
<scope>provided</scope> | ||
<exclusions> | ||
<exclusion> | ||
<artifactId>*</artifactId> | ||
<groupId>*</groupId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>pentaho</groupId> | ||
<artifactId>pentaho-metaverse-api</artifactId> | ||
<version>${pentaho-metaverse.version}</version> | ||
<scope>provided</scope> | ||
<exclusions> | ||
<exclusion> | ||
<artifactId>*</artifactId> | ||
<groupId>*</groupId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>pentaho</groupId> | ||
<artifactId>metastore</artifactId> | ||
<version>${metastore.version}</version> | ||
<scope>provided</scope> | ||
<exclusions> | ||
<exclusion> | ||
<artifactId>*</artifactId> | ||
<groupId>*</groupId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>xml-apis</groupId> | ||
<artifactId>xml-apis</artifactId> | ||
<version>${xml-apis.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.osgi</groupId> | ||
<artifactId>org.osgi.service.blueprint</artifactId> | ||
<version>1.0.2</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>pentaho</groupId> | ||
<artifactId>pdi-osgi-bridge-core</artifactId> | ||
<version>${kettle.version}</version> | ||
<scope>provided</scope> | ||
<exclusions> | ||
<exclusion> | ||
<artifactId>*</artifactId> | ||
<groupId>*</groupId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<instructions> | ||
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> | ||
<DynamicImport-Package>${package}.ui.job.entries.${rootArtifactId},${rootArtifactId}.ui.images</DynamicImport-Package> | ||
<Import-Package> | ||
org.pentaho.di.osgi, | ||
org.pentaho.di.core.plugins, | ||
* | ||
</Import-Package> | ||
</instructions> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.