diff --git a/core/src/main/java/com/adobe/Workspace.java b/core/src/main/java/com/adobe/Workspace.java index 1d57cb3f..cdd7cbda 100644 --- a/core/src/main/java/com/adobe/Workspace.java +++ b/core/src/main/java/com/adobe/Workspace.java @@ -27,16 +27,16 @@ public class Workspace { - static final String IMS_URL = "aio_ims_url"; - static final String IMS_ORG_ID = "aio_ims_org_id"; - static final String CONSUMER_ORG_ID = "aio_consumer_org_id"; - static final String PROJECT_ID = "aio_project_id"; - static final String WORKSPACE_ID = "aio_workspace_id"; - static final String API_KEY = "aio_api_key"; - static final String CREDENTIAL_ID = "aio_credential_id"; - static final String CLIENT_SECRET = "aio_client_secret"; - static final String TECHNICAL_ACCOUNT_ID = "aio_technical_account_id"; - static final String META_SCOPES = "aio_meta_scopes"; + public static final String IMS_URL = "aio_ims_url"; + public static final String IMS_ORG_ID = "aio_ims_org_id"; + public static final String CONSUMER_ORG_ID = "aio_consumer_org_id"; + public static final String PROJECT_ID = "aio_project_id"; + public static final String WORKSPACE_ID = "aio_workspace_id"; + public static final String API_KEY = "aio_api_key"; + public static final String CREDENTIAL_ID = "aio_credential_id"; + public static final String CLIENT_SECRET = "aio_client_secret"; + public static final String TECHNICAL_ACCOUNT_ID = "aio_technical_account_id"; + public static final String META_SCOPES = "aio_meta_scopes"; // Auth related : private final String imsUrl; diff --git a/events_mgmt/src/main/java/com/adobe/event/management/model/EventMetadata.java b/events_mgmt/src/main/java/com/adobe/event/management/model/EventMetadata.java index 778a0630..f5b9287e 100644 --- a/events_mgmt/src/main/java/com/adobe/event/management/model/EventMetadata.java +++ b/events_mgmt/src/main/java/com/adobe/event/management/model/EventMetadata.java @@ -39,7 +39,7 @@ private EventMetadata(String eventCode, String label, String description, String sampleEventTemplate) { if (StringUtils.isEmpty(eventCode)) { throw new IllegalArgumentException( - "EventMetadata is missing a label"); + "EventMetadata is missing an Event Code"); } this.eventCode = eventCode; this.label = (StringUtils.isEmpty(label)) ? eventCode : label; diff --git a/osgi/pom.xml b/osgi/pom.xml index d593e846..e3dd5b97 100644 --- a/osgi/pom.xml +++ b/osgi/pom.xml @@ -83,6 +83,11 @@ jjwt-jackson + + jakarta.xml.bind + jakarta.xml.bind-api + + com.fasterxml.jackson.core jackson-databind @@ -149,7 +154,8 @@ feign-form, feign-slf4j, feign-jackson, - commons-lang3 + commons-lang3, + jakarta.xml.bind-api true @@ -161,7 +167,6 @@ !com.sun.activation.*, !sun.misc.*, !lombok.*, - !jakarta.xml.bind.*, !jakarta.activation.*, * diff --git a/osgi/slingInstall.sh b/osgi/slingInstall.sh new file mode 100755 index 00000000..aeac2765 --- /dev/null +++ b/osgi/slingInstall.sh @@ -0,0 +1,20 @@ +# +# Copyright 2017 Adobe. All rights reserved. +# This file is licensed to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. You may obtain a copy +# of the License at http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under +# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +# OF ANY KIND, either express or implied. See the License for the specific language +# governing permissions and limitations under the License. +# + +source ~/.bash_profile +echo "" +echo "==================================================================" +echo " Build and deploy com.adobe.aio-lib-java.osgi on local AEM server" +echo "==================================================================" +mvn -Dcrx.path=/apps/eventproxy/install.author -Dlicense.header.path=../copyright_header.txt -P localInstall clean install sling:install + + diff --git a/pom.xml b/pom.xml index c27978b8..22a061b6 100644 --- a/pom.xml +++ b/pom.xml @@ -85,6 +85,7 @@ 1.6 4.11 + 2.31.0 4.9.1 3.11.1 1.7.13 @@ -164,6 +165,13 @@ test + + com.github.tomakehurst + wiremock-jre8 + ${wiremock.version} + test + + org.slf4j slf4j-simple