initial checkin

This commit is contained in:
2021-04-22 15:58:20 -04:00
commit a7fef4641b
278 changed files with 14028 additions and 0 deletions

9
beedk-amp-check-tile/.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
# Eclipse
.project
.classpath
.settings
# Maven
pom.xml.versionsBackup
target

View File

@@ -0,0 +1,57 @@
# BeeDK Alfresco Module Package Checker Maven Tile
This is a component within the proposed [BeeDK](/inteligr8/ootbee-beedk). It is considered to be part of the **Private API** of the BeeDK.
## Purpose
This project creates a [Maven Tile](https://github.com/repaint-io/maven-tiles) that provides the basis for building Alfresco web applications. It is intended to be used by other BeeDK components and not directly by any development project.
## Usage
To use this plugin, just reference it with the Maven Tiles plugin as shown in the following snippet. Do not forget the `extensions` element in the *plugin* configuration.
```xml
<project ...>
...
<build>
...
<plugins>
<plugin>
<groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId>
<version>[2.0,3.0)</version>
<extensions>true</extensions>
<configuration>
<tiles>
...
<!-- Documentation: https://bitbucket.org/inteligr8/ootbee-beedk/src/stable/beedk-amp-check-tile -->
<tile>com.inteligr8.ootbee:beedk-amp-check-tile:[1.0.0,2.0.0)</tile>
</tiles>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>
```
## Configuration
There is nothing to configure for this Maven tile.
## Results
This tile will result in the definition of the following Maven properties during the respective Maven phase.
| Property | Data Type | Phase | Description |
| ---------------------------- |:---------:|:------------:| ----------- |
| `beedk.amp.notest.empty` | Boolean | `initialize` | `false` if there any `compile` or `runtime` AMP dependencies on the project; `true` if there are none |
| `beedk.jar.notest.empty` | Boolean | `initialize` | `false` if there any `compile` or `runtime` JAR dependencies on the project; `true` if there are none |
| `beedk.amp.test.empty` | Boolean | `initialize` | `false` if there any `compile`, `runtime`, or `test` AMP dependencies on the project; `true` if there are none |
| `beedk.jar.test.empty` | Boolean | `initialize` | `false` if there any `compile`, `runtime`, or `test` JAR dependencies on the project;`true` if there are none |
| `beedk.amp.notest.classpath` | Text | `initialize` | Java command line classpath text of all `compile` and `runtime` AMP dependencies on the project |
| `beedk.jar.notest.classpath` | Text | `initialize` | Java command line classpath text of all `compile` and `runtime` JAR dependencies on the project |
| `beedk.amp.test.classpath` | Text | `initialize` | Java command line classpath text of all `compile`, `runtime`, or `test` AMP dependencies on the project |
| `beedk.jar.test.classpath` | Text | `initialize` | Java command line classpath text of all `compile`, `runtime`, or `test` JAR dependencies on the project |

View File

@@ -0,0 +1,47 @@
<?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>
<groupId>com.inteligr8.ootbee</groupId>
<artifactId>beedk-amp-check-tile</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>tile</packaging>
<name>Order of the Bee Development Kit: AMP Checker</name>
<scm>
<url>https://bitbucket.org/inteligr8/ootbee-beedk</url>
</scm>
<organization>
<name>Order of the Bee</name>
<url>https://orderofthebee.net</url>
</organization>
<developers>
<developer>
<name>Brian Long</name>
<email>brian@inteligr8.com</email>
<organization>Inteligr8</organization>
<organizationUrl>https://www.inteligr8.com</organizationUrl>
<url>https://twitter.com/brianmlong</url>
</developer>
</developers>
<build>
<plugins>
<plugin>
<groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId>
<version>2.20</version>
<extensions>true</extensions>
<configuration>
<tiles>
<tile>com.inteligr8:maven-public-deploy-tile:[1.0.0,2.0.0)</tile>
</tiles>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://tiles.bluetrainsoftware.com/maven/tiles/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tiles.bluetrainsoftware.com/maven/tiles/1.1.0 https://bitbucket.org/inteligr8/maven-tiles/raw/xsd/src/main/resources/maven-tiles.xsd">
<build>
<plugins>
<!-- This plugin serializes the compile/runtime AMP and JAR dependencies into a classpath string -->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>generate-amp-notest-classpath</id>
<phase>initialize</phase>
<goals><goal>build-classpath</goal></goals>
<configuration>
<includeScope>runtime</includeScope>
<includeTypes>amp</includeTypes>
<outputProperty>beedk.amp.notest.classpath</outputProperty>
</configuration>
</execution>
<execution>
<id>generate-jar-notest-classpath</id>
<phase>initialize</phase>
<goals><goal>build-classpath</goal></goals>
<configuration>
<includeScope>runtime</includeScope>
<includeTypes>jar</includeTypes>
<outputProperty>beedk.jar.notest.classpath</outputProperty>
</configuration>
</execution>
<execution>
<id>generate-amp-test-classpath</id>
<phase>initialize</phase>
<goals><goal>build-classpath</goal></goals>
<configuration>
<excludeScope>provided</excludeScope>
<includeTypes>amp</includeTypes>
<outputProperty>beedk.amp.test.classpath</outputProperty>
</configuration>
</execution>
<execution>
<id>generate-jar-test-classpath</id>
<phase>initialize</phase>
<goals><goal>build-classpath</goal></goals>
<configuration>
<excludeScope>provided</excludeScope>
<includeTypes>jar</includeTypes>
<outputProperty>beedk.jar.test.classpath</outputProperty>
</configuration>
</execution>
</executions>
</plugin>
<!-- This plugin translates the AMP and JAR classpath into a boolean property -->
<plugin>
<groupId>com.inteligr8</groupId>
<artifactId>regex-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>string-2-boolean-1</id>
<phase>initialize</phase>
<goals><goal>match-property</goal></goals>
<configuration>
<property>beedk.amp.notest.classpath</property>
<patterns>
<pattern>.+</pattern>
</patterns>
<negate>true</negate>
<newProperty>beedk.amp.notest.empty</newProperty>
</configuration>
</execution>
<execution>
<id>string-2-boolean-2</id>
<phase>initialize</phase>
<goals><goal>match-property</goal></goals>
<configuration>
<property>beedk.jar.notest.classpath</property>
<patterns>
<pattern>.+</pattern>
</patterns>
<negate>true</negate>
<newProperty>beedk.jar.notest.empty</newProperty>
</configuration>
</execution>
<execution>
<id>string-2-boolean-3</id>
<phase>initialize</phase>
<goals><goal>match-property</goal></goals>
<configuration>
<property>beedk.amp.test.classpath</property>
<patterns>
<pattern>.+</pattern>
</patterns>
<negate>true</negate>
<newProperty>beedk.amp.test.empty</newProperty>
</configuration>
</execution>
<execution>
<id>string-2-boolean-4</id>
<phase>initialize</phase>
<goals><goal>match-property</goal></goals>
<configuration>
<property>beedk.jar.test.classpath</property>
<patterns>
<pattern>.+</pattern>
</patterns>
<negate>true</negate>
<newProperty>beedk.jar.test.empty</newProperty>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>