<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Including Adobe Target SDK in Custom OSGI Bundles in Adobe Experience Manager Discussions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455121#M33893</link>
    <description>&lt;P&gt;Sure. Please see attached.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazam_screenshot_00007.png" style="width: 349px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/41618iE1AD038792579F5D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Kazam_screenshot_00007.png" alt="Kazam_screenshot_00007.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazam_screenshot_00008.png" style="width: 328px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/41619i0623F0A256F52D0A/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Kazam_screenshot_00008.png" alt="Kazam_screenshot_00008.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazam_screenshot_00009.png" style="width: 328px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/41621i6E225618EEAF4D74/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Kazam_screenshot_00009.png" alt="Kazam_screenshot_00009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Basically, the front-end code (html, client libs, JCR related nodes/XML) is under "packages". The Java code is under "bundles" with three further subprojects of "providers", "services" and "servlets". The Target SDK is used directly in "bundles/services"; the Service class that utilizes the SDK is then consumed in a class under "bundles/providers". Both the "bundles/services" and "bundles/providers" bundles are the ones giving the error (and that I added the SDK dependency too). Hope that makes sense. Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 15:52:40 GMT</pubDate>
    <dc:creator>KMarchewa</dc:creator>
    <dc:date>2022-06-07T15:52:40Z</dc:date>
    <item>
      <title>Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455103#M33889</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have a custom OSGI bundle deployed to an AEM 6.5 instance. I wanted to include the Adobe Target Java SDK in the project (so it can be utilized by another service class).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added it to my pom.xml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;com.adobe.target&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;target-java-sdk&amp;lt;/artifactId&amp;gt;
  &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, after publishing the package, I see the following error in the Web Console:&lt;/P&gt;&lt;PRE&gt;com.adobe.target.delivery.v1.model -- Cannot be resolved
com.adobe.target.edge.client.model -- Cannot be resolved&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;After noting this error, I configured the maven-bundle-plugin as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;plugin&amp;gt;
&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;maven-bundle-plugin&amp;lt;/artifactId&amp;gt;
&amp;lt;configuration&amp;gt;
&amp;lt;exportScr&amp;gt;true&amp;lt;/exportScr&amp;gt;
&amp;lt;instructions&amp;gt;
&amp;lt;Embed-Dependency&amp;gt;target-java-sdk;scope=compile|runtime&amp;lt;/Embed-Dependency&amp;gt;
&amp;lt;Embed-Transitive&amp;gt;true&amp;lt;/Embed-Transitive&amp;gt;
&amp;lt;/instructions&amp;gt;
&amp;lt;/configuration&amp;gt;
&amp;lt;/plugin&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this led to another set of errors relating to dependencies used by the Target SDK (json-logic-java, unirest-java, etc). I added those to the `Embed-Dependency` option and then got another error for another set of dependencies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, rather than having to explicitly include an endless chain of dependencies, I am would like to know that is the recommended practice for integrating the Target SDK with AEM? Does Adobe provide OSGI bundles for the SDK?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 14:58:38 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455103#M33889</guid>
      <dc:creator>KMarchewa</dc:creator>
      <dc:date>2022-06-07T14:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455105#M33890</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17476746"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The best way to install the&amp;nbsp;&lt;SPAN&gt;Adobe Target Java SDK&amp;nbsp;&lt;/SPAN&gt;is to embed the bundle into your. here's instructions on how to do it:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;You can do this easily (after building and deploying code into your AEM local, you should be able to find the jar file existing under /apps/my-site/install:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;1. Include the&amp;nbsp;&lt;SPAN&gt;Adobe Target Java SDK&lt;/SPAN&gt;&amp;nbsp;as a dependency in the ui.apps pom.xml&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;lt;!-- &lt;SPAN&gt;Adobe Target Java SDK&lt;/SPAN&gt; --&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;    &amp;lt;groupId&amp;gt;com.adobe.target&amp;lt;/groupId&amp;gt;&lt;BR /&gt;    &amp;lt;artifactId&amp;gt;target-java-sdk&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P class=""&gt;2. Embed the&amp;nbsp;&lt;SPAN&gt;Adobe Target Java SDK&amp;nbsp;&lt;/SPAN&gt;as a package for deployment in ui.apps/all pom.xml&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;lt;embedded&amp;gt;&lt;BR /&gt;    &amp;lt;groupId&amp;gt;com.adobe.target&amp;lt;/groupId&amp;gt;&lt;BR /&gt;    &amp;lt;artifactId&amp;gt;target-java-sdk&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;    &amp;lt;target&amp;gt;/apps/my-site/install&amp;lt;/target&amp;gt;&lt;BR /&gt;&amp;lt;/embedded&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;3. Include the&amp;nbsp;&lt;SPAN&gt;Adobe Target Java SDK&amp;nbsp;&lt;/SPAN&gt;as a dependency in the parent pom.xml&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;lt;!-- &lt;SPAN&gt;Adobe Target Java SDK&lt;/SPAN&gt; --&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;    &amp;lt;groupId&amp;gt;com.adobe.target&amp;lt;/groupId&amp;gt;&lt;BR /&gt;    &amp;lt;artifactId&amp;gt;target-java-sdk&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;    &amp;lt;version&amp;gt;2.3.0&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;Hope that helps!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Santosh&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 15:15:46 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455105#M33890</guid>
      <dc:creator>SantoshSai</dc:creator>
      <dc:date>2022-06-07T15:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455108#M33891</link>
      <description>&lt;P&gt;Thanks much for the quick response. Unfortunately, this app does not have a `ui.apps` directory (it is a mature code base and I assume was not built using the current maven archetype). Is there an alternative for such a project? Thanks much.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 15:19:46 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455108#M33891</guid>
      <dc:creator>KMarchewa</dc:creator>
      <dc:date>2022-06-07T15:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455109#M33892</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17476746"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;May I see your project structure? where your AEM components are present? If you have old version maven archetype please visit this article&amp;nbsp;&lt;A href="https://www.techinnovia.com/osgi-bundle-lifecycle/" target="_blank"&gt;https://www.techinnovia.com/osgi-bundle-lifecycle/&lt;/A&gt;&amp;nbsp;in video we have described hoe to do that.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 15:29:57 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455109#M33892</guid>
      <dc:creator>SantoshSai</dc:creator>
      <dc:date>2022-06-07T15:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455121#M33893</link>
      <description>&lt;P&gt;Sure. Please see attached.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazam_screenshot_00007.png" style="width: 349px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/41618iE1AD038792579F5D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Kazam_screenshot_00007.png" alt="Kazam_screenshot_00007.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazam_screenshot_00008.png" style="width: 328px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/41619i0623F0A256F52D0A/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Kazam_screenshot_00008.png" alt="Kazam_screenshot_00008.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazam_screenshot_00009.png" style="width: 328px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/41621i6E225618EEAF4D74/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Kazam_screenshot_00009.png" alt="Kazam_screenshot_00009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Basically, the front-end code (html, client libs, JCR related nodes/XML) is under "packages". The Java code is under "bundles" with three further subprojects of "providers", "services" and "servlets". The Target SDK is used directly in "bundles/services"; the Service class that utilizes the SDK is then consumed in a class under "bundles/providers". Both the "bundles/services" and "bundles/providers" bundles are the ones giving the error (and that I added the SDK dependency too). Hope that makes sense. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 15:52:40 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455121#M33893</guid>
      <dc:creator>KMarchewa</dc:creator>
      <dc:date>2022-06-07T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455123#M33894</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17476746"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Just check how your "bundles" module is embedded to apps(packages) similar way you can follow rest all adding dependency will be same, the way you were following above was for external jar file so, basically.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add dependency in parent.pom xml with version&lt;/LI&gt;&lt;LI&gt;Add dependency in "bundles" pom.xml&lt;/LI&gt;&lt;LI&gt;Embed it to "packages".&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 07 Jun 2022 16:10:55 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455123#M33894</guid>
      <dc:creator>SantoshSai</dc:creator>
      <dc:date>2022-06-07T16:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455137#M33895</link>
      <description>&lt;P&gt;Thanks but I followed the steps and I am still getting the same error. Specifically, in the parent POM I put:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;com.adobe.target&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;target-java-sdk&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;2.2.2&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;In the "bundles/providers" and "bundles/services" POMs I added:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;com.adobe.target&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;target-java-sdk&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in `packages/application/bundle-install/pom.xml` I added:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;lt;embedded&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;com.adobe.target&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;target-java-sdk&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;filter&amp;gt;true&amp;lt;/filter&amp;gt;&lt;BR /&gt;&amp;lt;/embedded&amp;gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 17:16:33 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455137#M33895</guid>
      <dc:creator>KMarchewa</dc:creator>
      <dc:date>2022-06-07T17:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455139#M33896</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17476746"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Can you try&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;&lt;/PRE&gt;&lt;P&gt;instead compiled?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 17:27:14 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455139#M33896</guid>
      <dc:creator>SantoshSai</dc:creator>
      <dc:date>2022-06-07T17:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Including Adobe Target SDK in Custom OSGI Bundles</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455141#M33897</link>
      <description>&lt;P&gt;Sure, I tried that but, unfortunately, still received the error.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 17:34:54 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/including-adobe-target-sdk-in-custom-osgi-bundles/m-p/455141#M33897</guid>
      <dc:creator>KMarchewa</dc:creator>
      <dc:date>2022-06-07T17:34:54Z</dc:date>
    </item>
  </channel>
</rss>

