<?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 include JAR as dependency when creating an AMP in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/include-jar-as-dependency-when-creating-an-amp/m-p/311624#M264754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the Maven SDK to develop some custom workflows as an AMP.&amp;nbsp; I've written an Activiti task listener Java class that is to be called during one of the workflow steps.&amp;nbsp; This task listener class relies on importing some dependancies, which I currently have as a JAR file.&amp;nbsp; How can I include this JAR file in the Maven project so that the task listener class is able to compile successfully when I package the AMP?&amp;nbsp; It is currently unable to resolve the import, and I can't figure out if I need to specify the path to the JAR or what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be more specific, I would like my task listener to make some simple queries to an Oracle database, and return the results to the workflow as a variable.&amp;nbsp; Therefore, my class must have access to the OJDBC database drivers, which I found as a JAR here: &lt;/SPAN&gt;&lt;A href="http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html" rel="nofollow noopener noreferrer"&gt;http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to use the driver and make queries to the database when running as stand-alone java code, but can't figure out how to include the dependency when compiling the AMP.&amp;nbsp; I'm still pretty new, so if there is a better way to query an external DB from alfresco, I'd be happy to hear of that too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 May 2015 18:27:08 GMT</pubDate>
    <dc:creator>carande</dc:creator>
    <dc:date>2015-05-09T18:27:08Z</dc:date>
    <item>
      <title>include JAR as dependency when creating an AMP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-jar-as-dependency-when-creating-an-amp/m-p/311624#M264754</link>
      <description>Hi,I'm using the Maven SDK to develop some custom workflows as an AMP.&amp;nbsp; I've written an Activiti task listener Java class that is to be called during one of the workflow steps.&amp;nbsp; This task listener class relies on importing some dependancies, which I currently have as a JAR file.&amp;nbsp; How can I include t</description>
      <pubDate>Sat, 09 May 2015 18:27:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-jar-as-dependency-when-creating-an-amp/m-p/311624#M264754</guid>
      <dc:creator>carande</dc:creator>
      <dc:date>2015-05-09T18:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: include JAR as dependency when creating an AMP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-jar-as-dependency-when-creating-an-amp/m-p/311625#M264755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can find your answer here &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/a/1074971" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/a/1074971&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But what you are trying to do is not specific to Alfresco SDK, but it's a general Maven subject.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 23:47:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-jar-as-dependency-when-creating-an-amp/m-p/311625#M264755</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2015-05-09T23:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: include JAR as dependency when creating an AMP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-jar-as-dependency-when-creating-an-amp/m-p/311626#M264756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, this is exactly what I was looking for.&amp;nbsp; I suspected this was a more general issue, and this helps my understanding a great deal.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 16:28:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-jar-as-dependency-when-creating-an-amp/m-p/311626#M264756</guid>
      <dc:creator>carande</dc:creator>
      <dc:date>2015-05-10T16:28:21Z</dc:date>
    </item>
  </channel>
</rss>

