<?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 Dependency issue in SDK 3.0 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/dependency-issue-in-sdk-3-0/m-p/33969#M14360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the release of SDK 3.0 I am trying to port my code to the new SDK in which I am facing dependency issue. While running the code I am getting the following&amp;nbsp;exception. The full stacktrace can be found &lt;A href="https://pastebin.com/WXDk2MDA" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cannot access org.springframework.context.ApplicationContextAware&amp;nbsp; class file for org.springframework.context.ApplicationContextAware not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though I managed to resolve the issue by commenting out the &lt;STRONG&gt;&amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;&lt;/STRONG&gt; from the &amp;nbsp;spring-context dependency or by stating the spring-context dependency in the platform-jar project like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;dependencies&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.springframework&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;spring-context&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;BR /&gt; &amp;lt;/dependencies&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I still want to know why I am getting the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hiten Rastogi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2017 09:59:44 GMT</pubDate>
    <dc:creator>hiten_rastogi1</dc:creator>
    <dc:date>2017-04-05T09:59:44Z</dc:date>
    <item>
      <title>Dependency issue in SDK 3.0</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dependency-issue-in-sdk-3-0/m-p/33969#M14360</link>
      <description>Hi,After the release of SDK 3.0 I am trying to port my code to the new SDK in which I am facing dependency issue. While running the code I am getting the following&amp;nbsp;exception. The full stacktrace can be found here&amp;nbsp;.cannot access org.springframework.context.ApplicationContextAware&amp;nbsp; class file for org.</description>
      <pubDate>Wed, 05 Apr 2017 09:59:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dependency-issue-in-sdk-3-0/m-p/33969#M14360</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2017-04-05T09:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dependency issue in SDK 3.0</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dependency-issue-in-sdk-3-0/m-p/33970#M14361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically its says that the dependencies are available at compile time , but while we are running the project , maven is unable to find it.The reason behind this is repo POM file have the scope as &lt;STRONG&gt;test,&lt;/STRONG&gt; &lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;for&amp;nbsp;&lt;STRONG&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px;"&gt;spring-context &lt;/STRONG&gt; &lt;/STRONG&gt;dependency,&amp;nbsp;which mean dependencies will be available only in test scope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the scope to provided will resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its a bug in SDK 3.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 18:26:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dependency-issue-in-sdk-3-0/m-p/33970#M14361</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2017-05-18T18:26:25Z</dc:date>
    </item>
  </channel>
</rss>

