Hello world

This commit is contained in:
2021-09-28 11:17:52 +02:00
commit 9cdbb84076
35 changed files with 1150 additions and 0 deletions

11
cnf/.project Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>cnf</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

13
cnf/build.bnd Normal file
View File

@@ -0,0 +1,13 @@
#
# Use this file to customize the bnd workspace
#
# Default build features (will be enabled for all projects in the workspace)
-buildfeatures: base
# Repository for project specific additional dependencies (using project-deps.maven )
-plugin.ProjectDependencies: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
releaseUrl=${amdatu-blueprint-maven-releaseUrls}; \
index=${build}/project-deps.maven; \
name=Project dependencies

View File

@@ -0,0 +1,15 @@
-include: \
../features/blueprint/Dania/base.bnd,\
../features/blueprint/Dania/blobstores.bnd,\
../features/blueprint/Dania/config.bnd,\
../features/blueprint/Dania/email.bnd,\
../features/blueprint/Dania/java11.bnd,\
../features/blueprint/Dania/mongodb.bnd,\
../features/blueprint/Dania/poi.bnd,\
../features/blueprint/Dania/scheduling.bnd,\
../features/blueprint/Dania/security.bnd,\
../features/blueprint/Dania/shell.bnd,\
../features/blueprint/Dania/template.bnd,\
../features/blueprint/Dania/testing.bnd,\
../features/blueprint/Dania/validator.bnd,\
../features/blueprint/Dania/web.bnd

58
cnf/ext/blueprint.bnd Normal file
View File

@@ -0,0 +1,58 @@
#
# Dependency versions for dependencies used muptiple features
com-fasterxml-jackson-core-version: 2.10.3
com-fasterxml-jackson-datatype-version: 2.10.3
com-fasterxml-jackson-jaxrs-version: 2.10.3
commons-codec-version: 1.7
commons-fileupload-version-version: 1.3.2
commons-io-version-version: 2.5
org-apache-httpcomponents-httpclient-osgi-version: 4.2.3
org-apache-httpcomponents-httpcore-osgi-version: 4.2.3
junit-version: 5.7.2
#
# Enable Apache Felix Dependency Manager annotation plugin
#
-pluginpath.dm: \
${build}/plugins/org.apache.felix.dependencymanager.annotation-5.0.1.jar
-plugin.dm: \
org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin; \
build-import-export-service=false; \
add-require-capability=true
#
# Create merged lists of build / run features so we can use these in the check
# whether a feature is enabled (example. <<DO STUFF>> )
#
# This doesn't work without the intermediate *Merged variable as "(buildfeatures.*[]=base)" is not a
# valid LDAP filter
#
buildfeaturesMerged: ${-buildfeatures.*}
runfeaturesMerged: ${-runfeatures.*}
# Enable the base and config feature by default
-buildfeatures.blueprint-default: base
-runfeatures.blueprint-default: base, config
#
# Configure repositories for Amdatu Blueprint
#
# Maven repo to be used
amdatu-blueprint-maven-releaseUrls: ${def;blueprint-maven-repo-url;https://repo1.maven.org/maven2/}
-plugin.amdatu-blueprint-repos: \
aQute.bnd.repository.osgi.OSGiRepository; \
name='Amdatu Blueprint OSGi'; \
poll.time=0; \
locations="${blueprint-repo.*}"
-plugin.amdatu-blueprint-maven: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
releaseUrls=${amdatu-blueprint-maven-releaseUrls}; \
revision="${blueprint-deps.*}"; \
transitive=false; \
name='Amdatu Blueprint maven'

View File

@@ -0,0 +1,83 @@
#
# Amdatu Blueprint base feature
#
blueprint-feature.base: base
blueprint-deps.base: \
org.apache.felix:org.apache.felix.configadmin:1.9.22,\
org.apache.felix:org.apache.felix.dependencymanager.annotation:5.0.2,\
org.apache.felix:org.apache.felix.dependencymanager.runtime:4.0.8,\
org.apache.felix:org.apache.felix.dependencymanager:4.6.1,\
org.apache.felix:org.apache.felix.eventadmin:1.6.2,\
org.apache.felix:org.apache.felix.framework:7.0.1,\
org.apache.felix:org.apache.felix.metatype:1.2.4,\
org.ops4j.pax.logging:pax-logging-api:2.0.9,\
org.ops4j.pax.logging:pax-logging-log4j2:2.0.9,\
org.osgi:osgi.core:8.0.0,\
org.osgi:org.osgi.service.cm:1.6.0,\
org.osgi:org.osgi.service.event:1.4.0,\
org.osgi:org.osgi.service.log:1.4.0,\
org.osgi:org.osgi.service.metatype.annotations:1.4.0,\
org.osgi:org.osgi.service.metatype:1.4.0,\
org.osgi:osgi.annotation:6.0.1,\
org.slf4j:slf4j-api:1.7.30
blueprint-deps.test: \
biz.aQute.bnd:biz.aQute.launchpad:5.3.0,\
net.bytebuddy:byte-buddy-agent:1.11.3,\
net.bytebuddy:byte-buddy:1.11.3,\
org.apache.servicemix.bundles:org.apache.servicemix.bundles.junit:4.12_1,\
org.junit.jupiter:junit-jupiter-api:${junit-version},\
org.junit.jupiter:junit-jupiter-params:${junit-version},\
org.junit.platform:junit-platform-commons:1.7.2,\
org.junit.platform:junit-platform-launcher:1.7.2,\
org.junit.vintage:junit-vintage-engine:${junit-version},\
org.mockito:mockito-core:3.11.2,\
org.objenesis:objenesis:3.2,\
org.opentest4j:opentest4j:1.2.0
#
# Build
#
-buildpath.blueprint-base: \
${if;(buildfeaturesMerged[]=base); \
org.apache.felix.dependencymanager,\
org.apache.felix.dependencymanager.annotation,\
org.osgi.service.cm,\
org.osgi.service.event,\
org.osgi.service.metatype,\
org.osgi.service.metatype.annotations,\
org.osgi.service.log,\
osgi.annotation,\
osgi.core,\
slf4j.api\
}
-testpath.blueprint-base: \
${if;(buildfeaturesMerged[]=base); \
biz.aQute.launchpad,\
org.apache.servicemix.bundles.junit,\
junit-platform-launcher,\
junit-platform-commons,\
junit-jupiter-api,\
junit-jupiter-params,\
junit-vintage-engine,\
org.mockito.mockito-core,\
org.objenesis,\
net.bytebuddy.byte-buddy,\
net.bytebuddy.byte-buddy-agent,\
org.opentest4j\
}
#
# Run
#
-runbundles.blueprint-base: \
${if;(runfeaturesMerged[]=base); \
org.apache.felix.dependencymanager.runtime,\
org.apache.felix.dependencymanager,\
org.apache.felix.configadmin,\
org.apache.felix.eventadmin,\
org.apache.felix.metatype,\
org.ops4j.pax.logging.pax-logging-api,\
org.ops4j.pax.logging.pax-logging-log4j2\
}

View File

@@ -0,0 +1,21 @@
#
# Amdatu Blueprint blobstores feature
#
blueprint-feature.blobstores: blobstores
blueprint-repo.blobstores: https://repository.amdatu.org/amdatu-blobstores/r7/repo/index.xml.gz
#
# Build
#
-buildpath.blueprint-blobstores: \
${if;(buildfeaturesMerged[]=blobstores); \
org.amdatu.blobstores\
}
#
# Run
#
-runbundles.blueprint-blobstores: \
${if;(runfeaturesMerged[]=blobstores); \
org.amdatu.blobstores\
}

View File

@@ -0,0 +1,48 @@
#
# Amdatu Blueprint config feature
#
blueprint-feature.config: config
blueprint-repo.config: https://repository.amdatu.org/amdatu-configurator/r5/repo/index.xml.gz
blueprint-deps.config: \
org.osgi:org.osgi.service.configurator:1.0.0,\
org.osgi:org.osgi.util.function:1.1.0,\
org.apache.felix:org.apache.felix.converter:1.0.14,\
org.apache.sling:org.apache.sling.commons.johnzon:1.2.2,\
org.apache.felix:org.apache.felix.configurator:1.0.10,\
org.apache.felix:org.apache.felix.configadmin.plugin.interpolation:1.1.0
#
# Build
#
-buildpath.blueprint-config: \
${if;(buildfeaturesMerged[]=config); \
org.osgi.service.configurator,\
org.amdatu.configurator.configurationbuilder\
}
#
# Run
#
-runbundles.blueprint-config: \
${if;(runfeaturesMerged[]=config); \
org.amdatu.configurator.autoconf,\
org.amdatu.configurator.configurationbuilder,\
org.amdatu.configurator.properties,\
org.osgi.util.function,\
org.apache.felix.configadmin.plugin.interpolation,\
org.apache.felix.configurator,\
org.apache.sling.commons.johnzon,\
org.apache.felix.converter\
}
# Add shell support for configurator if config and shell feature are both enabled
-runbundles.blueprint-config-shell: \
${if;(&(runfeaturesMerged[]=config)(runfeaturesMerged[]=shell)); \
org.amdatu.configurator.shell\
}
-runproperties.blueprint-config: \
${if;(runfeaturesMerged[]=config); \
felix.cm.config.plugins=org.apache.felix.configadmin.plugin.interpolation\
}

View File

@@ -0,0 +1,87 @@
#
# Amdatu Blueprint email feature
#
blueprint-feature.email: email
blueprint-repo.email: https://repository.amdatu.org/amdatu-email/r6/repo/index.xml.gz
blueprint-deps.email: \
com.fasterxml.jackson.core:jackson-annotations:${com-fasterxml-jackson-core-version},\
com.fasterxml.jackson.core:jackson-core:${com-fasterxml-jackson-core-version},\
com.fasterxml.jackson.core:jackson-databind:${com-fasterxml-jackson-core-version},\
commons-codec:commons-codec:${commons-codec-version},\
org.apache.httpcomponents:httpclient-osgi:${org-apache-httpcomponents-httpclient-osgi-version},\
org.apache.httpcomponents:httpcore-osgi:${org-apache-httpcomponents-httpcore-osgi-version}
#
# Build
#
-buildpath.blueprint-email: \
${if;(buildfeaturesMerged[]=email); \
org.amdatu.email.api\
}
#
# Run
#
-runbundles.blueprint-email: \
${if;(runfeaturesMerged[]=email); \
org.amdatu.email.impl\
}
# Select transport based on 'email-transport' value defaults to 'mock'
blueprint-email-transport: ${def;email-transport;mock}
# AWS Transport
-runbundles.blueprint-email-aws: \
${if;(&(runfeaturesMerged[]=email)(blueprint-email-transport[]=aws)); \
com.fasterxml.jackson.core.jackson-annotations,\
com.fasterxml.jackson.core.jackson-core,\
com.fasterxml.jackson.core.jackson-databind,\
org.amdatu.email.aws,\
org.apache.commons.codec,\
org.apache.httpcomponents.httpcore,\
org.apache.httpcomponents.httpclient\
}
-runsystempackages.blueprint-email-aws: \
${if;(&(runfeaturesMerged[]=email)(blueprint-email-transport[]=aws)); \
javax.mail,\
javax.mail.internet,\
javax.crypto,\
javax.net.ssl,\
javax.crypto.spec,\
javax.swing,\
javax.xml.bind,\
javax.xml.datatype,\
javax.security.auth.x500,\
javax.swing.border,\
org.ietf.jgss,\
javax.xml.namespace,\
javax.swing.event,\
javax.swing.tree,\
javax.xml.parsers,\
javax.xml.stream,\
javax.xml.stream.events,\
javax.xml.xpath,\
org.w3c.dom,\
org.w3c.dom.bootstrap,\
org.w3c.dom.ls,\
org.xml.sax,\
org.xml.sax.helpers\
}
# Mock Transport
-runbundles.blueprint-email-mock: \
${if;(&(runfeaturesMerged[]=email)(blueprint-email-transport[]=mock)); \
org.amdatu.email.mock\
}
# SMTP Transport
-runbundles.blueprint-email-smtp: \
${if;(&(runfeaturesMerged[]=email)(blueprint-email-transport[]=smtp)); \
org.amdatu.email.smtp\
}
-runsystempackages.blueprint-email-smtp: \
${if;(&(runfeaturesMerged[]=email)(blueprint-email-transport[]=smtp)); \
sun.security.util\
}

View File

@@ -0,0 +1,30 @@
#
# Java 11 feature
#
blueprint-feature.java11: java11
blueprint-deps.java11: \
javax.annotation:javax.annotation-api:1.3.2,\
com.sun.activation:javax.activation:1.2.0,\
javax.xml.bind:jaxb-api:2.4.0-b180830.0359,\
com.sun.xml.bind:jaxb-osgi:2.4.0-b180830.0438,\
com.sun.xml.bind:jaxb-core:2.3.0.1,\
com.sun.xml.bind:jaxb-impl:2.3.1
-testpath.java11: \
com.sun.xml.bind.jaxb-core,\
com.sun.xml.bind.jaxb-impl
-runbundles.java11: \
${if;(runfeaturesMerged[]=java11); \
javax.annotation-api,\
com.sun.activation.javax.activation,\
com.sun.xml.bind.jaxb-osgi,\
jaxb-api \
}
-runvm.java11: \
${if;(runfeaturesMerged[]=java11); \
--add-opens=java.base/java.lang=ALL-UNNAMED, \
--add-opens=java.base/java.net=ALL-UNNAMED, \
--add-opens=java.base/java.security=ALL-UNNAMED \
}

View File

@@ -0,0 +1,51 @@
#
# Amdatu Blueprint mongodb feature
#
blueprint-feature.mongodb: mongodb
blueprint-repo.mongodb: https://repository.amdatu.org/amdatu-mongodb/r11/repo/index.xml.gz
blueprint-deps.mongodb: \
com.fasterxml.jackson.core:jackson-annotations:${com-fasterxml-jackson-core-version},\
com.fasterxml.jackson.core:jackson-core:${com-fasterxml-jackson-core-version},\
com.fasterxml.jackson.core:jackson-databind:${com-fasterxml-jackson-core-version},\
de.undercouch:bson4jackson:2.7.0,\
org.mongodb:mongodb-driver-sync:4.1.1,\
org.mongodb:mongodb-driver-core:4.1.1,\
org.mongodb:bson:4.1.1
#
# Build
#
-buildpath.blueprint-mongodb: \
${if;(buildfeaturesMerged[]=mongodb); \
org.amdatu.mongo,\
org.mongodb.driver-sync,\
org.mongodb.driver-core,\
org.mongodb.bson\
}
# Add testing support for mongodb if mongodb and testing feature are both enabled
-buildpath.blueprint-mongodb-testing: \
${if;(&(buildfeaturesMerged[]=mongodb)(buildfeaturesMerged[]=testing)); \
org.amdatu.mongo.testing\
}
#
# Run
#
-runbundles.blueprint-mongodb: \
${if;(runfeaturesMerged[]=mongodb); \
com.fasterxml.jackson.core.jackson-annotations,\
com.fasterxml.jackson.core.jackson-core,\
com.fasterxml.jackson.core.jackson-databind,\
de.undercouch.bson4jackson,\
org.amdatu.mongo,\
org.mongodb.driver-sync,\
org.mongodb.driver-core,\
org.mongodb.bson\
}
# Add testing support for mongodb if mongodb and testing feature are both enabled
-runbundles.blueprint-mongodb-testing: \
${if;(&(runfeaturesMerged[]=mongodb)(runfeaturesMerged[]=testing)); \
org.amdatu.mongo.testing\
}

View File

@@ -0,0 +1,42 @@
#
# Amdatu Blueprint Apache POI feature
#
blueprint-feature.apache-poi: apache-poi
blueprint-deps.apache-poi: \
org.apache.servicemix.bundles:org.apache.servicemix.bundles.xmlresolver:1.2_5,\
org.apache.commons:commons-collections4:4.4,\
org.apache.commons:commons-math3:3.6.1,\
org.apache.commons:commons-compress:1.19,\
org.apache.servicemix.bundles:org.apache.servicemix.bundles.poi:4.1.0_1,\
org.apache.servicemix.bundles:org.apache.servicemix.bundles.xmlbeans:3.1.0_1,\
org.apache.servicemix.bundles:org.apache.servicemix.bundles.saxon:9.9.1-5_1
#
# Build
#
-buildpath.apache-poi: \
${if;(buildfeaturesMerged[]=apache-poi); \
org.apache.servicemix.bundles.poi\
}
#
# Run
#
-runbundles.apache-poi: \
${if;(runfeaturesMerged[]=apache-poi); \
org.apache.servicemix.bundles.poi,\
org.apache.servicemix.bundles.saxon,\
org.apache.servicemix.bundles.xmlbeans,\
org.apache.servicemix.bundles.xmlresolver,\
org.apache.commons.commons-collections4,\
org.apache.commons.math3,\
org.apache.commons.commons-compress\
}
-testpath.apache-poi: \
${if;(buildfeaturesMerged[]=apache-poi); \
org.apache.servicemix.bundles.saxon,\
org.apache.servicemix.bundles.xmlbeans,\
org.apache.servicemix.bundles.xmlresolver,\
org.apache.commons.commons-collections4,\
org.apache.commons.math3,\
org.apache.commons.commons-compress\
}

View File

@@ -0,0 +1,37 @@
#
# Amdatu Blueprint scheduling feature
#
blueprint-feature.scheduling: scheduling
blueprint-repo.scheduling: https://repository.amdatu.org/amdatu-scheduling/r7/repo/index.xml.gz
blueprint-deps.scheduling-java11: \
javax.transaction:javax.transaction-api:1.3,\
javax.enterprise:cdi-api:2.0.SP1,\
javax.el:javax.el-api:3.0.0,\
javax.inject:javax.inject:1,\
javax.interceptor:javax.interceptor-api:1.2,\
#
# Build
#
-buildpath.blueprint-scheduling: \
${if;(buildfeaturesMerged[]=scheduling); \
org.amdatu.scheduling.api\
}
#
# Run
#
-runbundles.blueprint-scheduling: \
${if;(runfeaturesMerged[]=scheduling); \
org.amdatu.scheduling.api,\
org.amdatu.scheduling.quartz\
}
-runbundles.blueprint-scheduling-java11: \
${if;(&(runfeaturesMerged[]=scheduling)(runfeaturesMerged[]=java11)); \
javax.transaction-api,\
javax.enterprise.cdi-api,\
javax.el-api,\
javax.inject:javax.inject,\
javax.interceptor-api\
}

View File

@@ -0,0 +1,46 @@
#
# Amdatu Blueprint security feature
#
blueprint-feature.security: security
blueprint-repo.security: https://repository.amdatu.org/amdatu-security/r17/repo/index.xml.gz
#
# Build
#
-buildpath.blueprint-security: \
${if;(buildfeaturesMerged[]=security); \
org.amdatu.security.authentication.authservice.api,\
org.amdatu.security.authentication.idprovider.api,\
org.amdatu.security.password.hash.api,\
org.amdatu.security.password.util,\
org.amdatu.security.tokenprovider.api,\
org.amdatu.security.authorization.api,\
org.amdatu.security.authorization.rest.api\
}
-buildpath.blueprint-security-account-admin: \
${if;(buildfeaturesMerged[]=security-account-admin); \
org.amdatu.security.account.admin.api\
}
#
# Run
#
-runbundles.blueprint-security: \
${if;(runfeaturesMerged[]=security); \
org.amdatu.security.authentication.authservice.rest,\
org.amdatu.security.authentication.idprovider.local,\
org.amdatu.security.authentication.idprovider.openidconnect,\
org.amdatu.security.password.hash.pbkdf2,\
org.amdatu.security.password.util,\
org.amdatu.security.tokenprovider.http,\
org.amdatu.security.tokenprovider.jwt,\
org.amdatu.security.authorization.impl,\
org.amdatu.security.authorization.rest.impl\
}
-runbundles.blueprint-security-account-admin: \
${if;(runfeaturesMerged[]=security-account-admin); \
org.amdatu.security.account.admin,\
org.amdatu.security.account.admin.rest\
}

View File

@@ -0,0 +1,28 @@
#
# Amdatu Blueprint shell feature
#
blueprint-feature.shell: shell
blueprint-deps.shell: \
org.apache.felix:org.apache.felix.dependencymanager.shell:4.0.9,\
org.apache.felix:org.apache.felix.gogo.command:1.1.2,\
org.apache.felix:org.apache.felix.gogo.runtime:1.1.4,\
org.apache.felix:org.apache.felix.gogo.shell:1.1.4
#
# Build
#
-buildpath.blueprint-shell: \
${if;(buildfeaturesMerged[]=shell); \
org.apache.felix.gogo.runtime\
}
#
# Run
#
-runbundles.blueprint-shell: \
${if;(runfeaturesMerged[]=shell); \
org.apache.felix.dependencymanager.shell,\
org.apache.felix.gogo.command,\
org.apache.felix.gogo.runtime,\
org.apache.felix.gogo.shell\
}

View File

@@ -0,0 +1,21 @@
#
# Amdatu Blueprint template feature
#
blueprint-feature.template: template
blueprint-repo.template: https://repository.amdatu.org/amdatu-template/r3/repo/index.xml.gz
#
# Build
#
-buildpath.blueprint-template: \
${if;(buildfeaturesMerged[]=template); \
org.amdatu.template\
}
#
# Run
#
-runbundles.blueprint-template: \
${if;(runfeaturesMerged[]=template); \
org.amdatu.template\
}

View File

@@ -0,0 +1,39 @@
#
# Amdatu Blueprint testing feature
#
blueprint-feature.testing: testing
blueprint-repo.testing: https://repository.amdatu.org/amdatu-testing/r11/repo/index.xml.gz
#
# Build
#
# Junit and mockito are added to the testpath in the base feature, add them to the buildpath
# when the testing run feature is enabled to allow using these dependencies from the src folder.
-buildpath.blueprint-testing: \
${if;(|(buildfeaturesMerged[]=testing)(runfeaturesMerged[]=testing)); \
org.amdatu.testing.configurator,\
org.apache.servicemix.bundles.junit,\
org.mockito.mockito-core,\
org.objenesis,\
net.bytebuddy.byte-buddy,\
net.bytebuddy.byte-buddy-agent\
}
#
# Run
#
-runbundles.blueprint-testing: \
${if;(runfeaturesMerged[]=testing); \
org.amdatu.testing.configurator,\
org.apache.servicemix.bundles.junit,\
org.mockito.mockito-core,\
org.objenesis,\
net.bytebuddy.byte-buddy,\
net.bytebuddy.byte-buddy-agent\
}
-runsystempackages.blueprint-testing: \
${if;(runfeaturesMerged[]=testing); \
sun.misc,\
sun.reflect\
}

View File

@@ -0,0 +1,37 @@
#
# Amdatu Blueprint validator feature
#
blueprint-feature.validator: validator
blueprint-repo.validator: https://repository.amdatu.org/amdatu-validator/r7/repo/index.xml.gz
blueprint-deps.validator: \
javax.validation:validation-api:2.0.1.Final,\
org.hibernate.validator:hibernate-validator:6.1.5.Final,\
jakarta.validation:jakarta.validation-api:2.0.2,\
org.jboss.logging:jboss-logging:3.3.2.Final,\
com.fasterxml:classmate:1.3.4,\
org.glassfish:jakarta.el:3.0.3,\
org.jsoup:jsoup:1.11.2
#
# Build
#
-buildpath.blueprint-validator: \
${if;(buildfeaturesMerged[]=validator); \
javax.validation.api,\
org.hibernate.validator,\
org.amdatu.validator\
}
#
# Run
#
-runbundles.blueprint-validator: \
${if;(runfeaturesMerged[]=validator); \
javax.validation.api,\
org.jsoup,\
org.hibernate.validator,\
jakarta.validation.jakarta.validation-api,\
com.fasterxml.classmate,\
com.sun.el.javax.el,\
org.amdatu.validator\
}

View File

@@ -0,0 +1,89 @@
#
# Amdatu Blueprint web feature
#
blueprint-feature.web: web
blueprint-repo.web: https://repository.amdatu.org/amdatu-web/r24/repo/index.xml.gz
blueprint-deps.web: \
com.fasterxml.jackson.core:jackson-annotations:${com-fasterxml-jackson-core-version},\
com.fasterxml.jackson.core:jackson-core:${com-fasterxml-jackson-core-version},\
com.fasterxml.jackson.core:jackson-databind:${com-fasterxml-jackson-core-version},\
com.fasterxml.jackson.datatype:jackson-datatype-jdk8:${com-fasterxml-jackson-datatype-version},\
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${com-fasterxml-jackson-datatype-version},\
com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:${com-fasterxml-jackson-jaxrs-version},\
com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:${com-fasterxml-jackson-jaxrs-version},\
commons-fileupload:commons-fileupload:${commons-fileupload-version-version},\
commons-io:commons-io:${commons-io-version-version},\
javax.websocket:javax.websocket-api:1.0,\
org.osgi:org.osgi.service.http.whiteboard:1.1.0,\
org.osgi:org.osgi.service.http:1.2.1,\
org.apache.felix:org.apache.felix.http.jetty:4.0.18,\
org.apache.felix:org.apache.felix.http.servlet-api:1.1.2,\
org.apache.httpcomponents:httpclient-osgi:${org-apache-httpcomponents-httpclient-osgi-version},\
org.apache.httpcomponents:httpcore-osgi:${org-apache-httpcomponents-httpcore-osgi-version},\
org.eclipse.jetty.websocket:javax-websocket-server-impl:9.4.28.v20200408,\
org.eclipse.jetty.websocket:javax-websocket-client-impl:9.4.28.v20200408
#
# Build
#
-buildpath.blueprint-web: \
${if;(buildfeaturesMerged[]=web); \
com.fasterxml.jackson.core.jackson-annotations,\
com.fasterxml.jackson.core.jackson-core,\
com.fasterxml.jackson.core.jackson-databind,\
com.fasterxml.jackson.jaxrs.jackson-jaxrs-base,\
com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider,\
javax.websocket-api,\
org.amdatu.web.rest.doc,\
org.amdatu.web.rest.jaxrs,\
org.amdatu.web.websocket.api,\
org.apache.felix.http.servlet-api,\
org.osgi.service.http.whiteboard,\
org.osgi.service.http\
}
# Add testing support for web if web and testing feature are both enabled
-buildpath.blueprint-web-testing: \
${if;(&(buildfeaturesMerged[]=web)(buildfeaturesMerged[]=testing)); \
org.amdatu.web.testing.http,\
org.amdatu.web.testing.jaxrs\
}
#
# Run
#
-runbundles.blueprint-web: \
${if;(runfeaturesMerged[]=web); \
com.fasterxml.jackson.core.jackson-annotations,\
com.fasterxml.jackson.core.jackson-core,\
com.fasterxml.jackson.core.jackson-databind,\
com.fasterxml.jackson.jaxrs.jackson-jaxrs-base,\
com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider,\
javax.websocket-api,\
org.eclipse.jetty.websocket.javax.websocket,\
org.eclipse.jetty.websocket.javax.websocket.server,\
org.apache.commons.fileupload,\
org.apache.commons.io,\
org.apache.felix.http.jetty,\
org.apache.felix.http.servlet-api,\
org.amdatu.web.filters,\
org.amdatu.web.rest.doc,\
org.amdatu.web.rest.doc.swagger,\
org.amdatu.web.rest.doc.swagger.ui,\
org.amdatu.web.rest.resteasy,\
org.amdatu.web.websocket.api,\
org.amdatu.web.websocket.impl\
}
# Add testing support for web if web and testing feature are both enabled
-runbundles.blueprint-web-testing: \
${if;(&(runfeaturesMerged[]=web)(runfeaturesMerged[]=testing)); \
org.amdatu.web.testing.http,\
org.amdatu.web.testing.jaxrs\
}
# Add shell commands for web if web and shell feature are both enabled
-runbundles.blueprint-web-shell: \
${if;(&(runfeaturesMerged[]=web)(runfeaturesMerged[]=shell)); \
org.amdatu.web.rest.shell\
}

6
cnf/project-deps.maven Normal file
View File

@@ -0,0 +1,6 @@
#
# Index file for the "Project dependencies" repository
# Use this file to add project specific dependencies to the workspace.
#
# See: http://bnd.bndtools.org/plugins/maven.html for more info on the file format
#