From a8fc546cbdb7f0f89e2362f0c9b38cee4ab13e45 Mon Sep 17 00:00:00 2001 From: "Brian M. Long" Date: Mon, 11 Oct 2021 14:52:03 -0400 Subject: [PATCH] initial checkin --- .gitignore | 12 + pom.xml | 390 ++++++++++++++++++ rad.ps1 | 74 ++++ rad.sh | 71 ++++ .../CxfActivitiExtSpringComponentScanner.java | 10 + 5 files changed, 557 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 rad.ps1 create mode 100644 rad.sh create mode 100644 src/main/java/com/activiti/extension/conf/CxfActivitiExtSpringComponentScanner.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3ef4f8b --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Maven +pom.xml.versionsBackup +target + +# Eclipse +.project +.classpath +.settings + +# Visual Studio Code +.factorypath +.vscode diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..1528cb4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,390 @@ + + 4.0.0 + + com.inteligr8.activiti + cxf-activiti-ext + 1.0-SNAPSHOT + jar + + CXF-based JAX-RS & JAX-WS enablement for APS/Activiti + + + UTF-8 + 11 + 11 + + + + + org.apache.cxf + cxf-rt-rs-client + ${aps.cxf.version} + + + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider + ${aps.jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + ${aps.jackson.version} + + + com.fasterxml.jackson.datatype + jackson-datatype-joda + ${aps.jackson.version} + + + + + org.springframework + spring-context + ${aps.spring.version} + provided + + + javax.annotation + javax.annotation-api + ${aps.javax.annotation-api.version} + provided + + + javax.xml.ws + jaxws-api + ${aps.jaxws-api.version} + provided + + + jakarta.activation + jakarta.activation-api + ${aps.jakarta.activation-api.version} + provided + + + com.fasterxml.jackson.core + jackson-core + ${aps.jackson.version} + provided + + + com.fasterxml.jackson.core + jackson-databind + ${aps.jackson.version} + provided + + + com.fasterxml.jackson.core + jackson-annotations + ${aps.jackson.version} + provided + + + com.fasterxml.jackson.dataformat + jackson-dataformat-yaml + ${aps.jackson.version} + provided + + + joda-time + joda-time + ${aps.joda-time.version} + provided + + + org.codehaus.woodstox + stax2-api + ${aps.stax2.version} + provided + + + jakarta.xml.bind + jakarta.xml.bind-api + ${aps.jaxb-api.version} + provided + + + + + + + + + + maven-jar-plugin + + ${aps.app.tag} + + + + maven-assembly-plugin + 3.3.0 + + + assemble-jar + package + single + + + jar-with-dependencies + + + + + + + maven-install-plugin + + true + + + + install-classifier + install + install-file + + ${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.packaging} + jar-with-dependencies-${aps.app.tag} + + + + + + io.repaint.maven + tiles-maven-plugin + 2.21 + true + + + + com.inteligr8.ootbee:beedk-aps-ext-rad-tile:[1.0.3,2.0.0) + + + + + + + + + wsl-is-slow + + + windows + + + + 1200000 + + + + aps-v1.11.1 + + aps-v1.11.1 + 3.1.14 + 4.3.24.RELEASE + 2.10.1 + + 1.2.1 + 1.2 + 2.3.1 + 2.9.9 + 3.1.1 + 2.3.2 + 2.3.0 + + + + org.apache.cxf + cxf-rt-frontend-jaxws + ${aps.cxf.version} + + + com.sun.xml.bind + jaxb-core + ${aps.jaxb-impl.version} + + + com.sun.xml.bind + jaxb-impl + ${aps.jaxb-impl.version} + + + + + aps-v1.11.2 + + aps-v1.11.2 + 3.1.14 + 4.3.29.RELEASE + 2.11.3 + + 1.2.1 + 1.3.2 + 2.3.1 + 2.9.9 + 3.1.4 + 2.3.2 + 2.3.0 + 2.2.2 + + + + org.apache.cxf + cxf-rt-transports-http + ${aps.cxf.version} + provided + + + org.apache.cxf + cxf-core + ${aps.cxf.version} + provided + + + com.sun.xml.bind + jaxb-core + ${aps.jaxb-impl.version} + + + com.sun.xml.bind + jaxb-impl + ${aps.jaxb-impl.version} + + + com.sun.xml.bind + jaxb-impl + ${aps.jaxb-impl.version} + + + org.apache.ws.xmlschema + xmlschema-core + ${aps.xmlschema-core.version} + + + + + aps-v1.11.3+ + + true + + + aps-v1.11.3 + 3.3.8 + 4.3.30.RELEASE + 2.12.3 + 1.2.0 + 1.2.1 + 1.3.2 + 2.3.1 + 1.1.1 + 1.1.3 + 1.4.0-b03 + 3.9 + 1.0.6.Final + 2.9.9 + 3.1.4 + 2.3.2 + 5.0.3 + + + + org.apache.cxf + cxf-rt-transports-http + ${aps.cxf.version} + provided + + + org.apache.cxf + cxf-core + ${aps.cxf.version} + provided + + + com.sun.activation + javax.activation + ${aps.sun.javax.activation.version} + provided + + + org.jacorb + jacorb-omgapi + ${aps.jacorb.version} + provided + + + org.jboss.spec.javax.rmi + jboss-rmi-api_1.0_spec + ${aps.jboss-rmi-api.version} + provided + + + com.fasterxml.woodstox + woodstox-core + ${aps.woodstox.version} + provided + + + org.apache.geronimo.specs + geronimo-jta_1.1_spec + ${aps.geronimo-jta.version} + provided + + + org.apache.geronimo.specs + geronimo-ws-metadata_2.0_spec + ${aps.geronimo-ws-metadata.version} + provided + + + com.sun.xml.messaging.saaj + saaj-impl + ${aps.saaj-impl.version} + provided + + + + + + + + alfresco-public + https://artifacts.alfresco.com/nexus/content/groups/public + + + + + + inteligr8-public + https://repos.inteligr8.com/nexus/repository/inteligr8-public + + + + + + inteligr8-releases + https://repos.inteligr8.com/nexus/repository/inteligr8-public + + + inteligr8-snapshots + https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots + + + diff --git a/rad.ps1 b/rad.ps1 new file mode 100644 index 0000000..61bcb2f --- /dev/null +++ b/rad.ps1 @@ -0,0 +1,74 @@ + +function discoverArtifactId { + $script:ARTIFACT_ID=(mvn -q -Dexpression=project"."artifactId -DforceStdout help:evaluate) +} + +function rebuild { + echo "Rebuilding project ..." + mvn process-classes +} + +function start_ { + echo "Rebuilding project and starting Docker containers to support rapid application development ..." + mvn -Drad process-classes +} + +function start_log { + echo "Rebuilding project and starting Docker containers to support rapid application development ..." + mvn -Drad "-Ddocker.showLogs" process-classes +} + +function stop_ { + discoverArtifactId + echo "Stopping Docker containers that supported rapid application development ..." + docker container ls --filter name=${ARTIFACT_ID}-* + echo "Stopping containers ..." + docker container stop (docker container ls -q --filter name=${ARTIFACT_ID}-*) + echo "Removing containers ..." + docker container rm (docker container ls -aq --filter name=${ARTIFACT_ID}-*) +} + +function tail_logs { + param ( + $container + ) + + discoverArtifactId + docker container logs -f (docker container ls -q --filter name=${ARTIFACT_ID}-${container}) +} + +function list { + discoverArtifactId + docker container ls --filter name=${ARTIFACT_ID}-* +} + +switch ($args[0]) { + "start" { + start_ + } + "start_log" { + start_log + } + "stop" { + stop_ + } + "restart" { + stop_ + start_ + } + "rebuild" { + rebuild + } + "tail" { + tail_logs $args[1] + } + "containers" { + list + } + default { + echo "Usage: .\rad.ps1 [ start | start_log | stop | restart | rebuild | tail {container} | containers ]" + } +} + +echo "Completed!" + diff --git a/rad.sh b/rad.sh new file mode 100644 index 0000000..7cb0a80 --- /dev/null +++ b/rad.sh @@ -0,0 +1,71 @@ +#!/bin/sh + +discoverArtifactId() { + ARTIFACT_ID=`mvn -q -Dexpression=project.artifactId -DforceStdout help:evaluate` +} + +rebuild() { + echo "Rebuilding project ..." + mvn process-classes +} + +start() { + echo "Rebuilding project and starting Docker containers to support rapid application development ..." + mvn -Drad process-classes +} + +start_log() { + echo "Rebuilding project and starting Docker containers to support rapid application development ..." + mvn -Drad -Ddocker.showLogs process-classes +} + +stop() { + discoverArtifactId + echo "Stopping Docker containers that supported rapid application development ..." + docker container ls --filter name=${ARTIFACT_ID}-* + echo "Stopping containers ..." + docker container stop `docker container ls -q --filter name=${ARTIFACT_ID}-*` + echo "Removing containers ..." + docker container rm `docker container ls -aq --filter name=${ARTIFACT_ID}-*` +} + +tail_logs() { + discoverArtifactId + docker container logs -f `docker container ls -q --filter name=${ARTIFACT_ID}-$1` +} + +list() { + discoverArtifactId + docker container ls --filter name=${ARTIFACT_ID}-* +} + +case "$1" in + start) + start + ;; + start_log) + start_log + ;; + stop) + stop + ;; + restart) + stop + start + ;; + rebuild) + rebuild + ;; + tail) + tail_logs $2 + ;; + containers) + list + ;; + *) + echo "Usage: ./rad.sh [ start | start_log | stop | restart | rebuild | tail {container} | containers ]" + exit 1 +esac + +echo "Completed!" + diff --git a/src/main/java/com/activiti/extension/conf/CxfActivitiExtSpringComponentScanner.java b/src/main/java/com/activiti/extension/conf/CxfActivitiExtSpringComponentScanner.java new file mode 100644 index 0000000..ae8b9a8 --- /dev/null +++ b/src/main/java/com/activiti/extension/conf/CxfActivitiExtSpringComponentScanner.java @@ -0,0 +1,10 @@ +package com.activiti.extension.conf; + +import org.springframework.context.annotation.ComponentScan; +import org.springframework.context.annotation.Configuration; + +@Configuration +@ComponentScan(basePackages = "${activiti-ext.scan.packages}") +public class CxfActivitiExtSpringComponentScanner { + +}