<?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: What is the proper way to add jar to amp in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-proper-way-to-add-jar-to-amp/m-p/140530#M37540</link>
    <description>&lt;P&gt;The database driver jar file should not go in your amp. Have a look at the following pom.xml file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/master/packaging/docker-alfresco/pom.xml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/master/packaging/docker-alfresco/pom.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the pom file that puts together the community repo docker image. You'll notice that there is an execution plugin called "copy-jdbc-connectors". It simply copies the postgres jar file into a directory called "connectors" (under the "target" directory). And then in the Dockerfile:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/master/packaging/docker-alfresco/Dockerfile" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/master/packaging/docker-alfresco/Dockerfile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can see that the contents of that "connector" directory get copied into the tomcat/lib directory:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-k"&gt;COPY&lt;/SPAN&gt;&lt;SPAN&gt; ${resource_path}/connector/* ${TOMCAT_DIR}/lib/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can follow this pattern if you like and simply copy the jar using an execution plugin and then copy it into your Dockerfile. Or you can use any other process that results in the jar file being copied into the tomcat lib dir in your docker image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Doug&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 19:39:44 GMT</pubDate>
    <dc:creator>dougforrest</dc:creator>
    <dc:date>2021-04-26T19:39:44Z</dc:date>
    <item>
      <title>What is the proper way to add jar to amp</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-proper-way-to-add-jar-to-amp/m-p/140529#M37539</link>
      <description>&lt;P&gt;I am using ACS 7,&amp;nbsp; and creating my own custome Docker image.&amp;nbsp; I used the AIO as a starting point,&amp;nbsp; and I can create an amp with all my customaizatrions in it.&amp;nbsp; I can create a image, and start it up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of my customizations is to use a local MySql.&amp;nbsp;&amp;nbsp; But the JDBC driver cannot be found.&lt;/P&gt;&lt;P&gt;What is the right way to get the mysql jar into my image?&lt;/P&gt;&lt;P&gt;I can copy it in the docker file if I use the meven-dependency plugin,&amp;nbsp; but that copies ALL of the dependencies,&amp;nbsp; which I assume are already on the alfresco-acs base docker image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the correct way to do this?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Apr 2021 16:26:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-proper-way-to-add-jar-to-amp/m-p/140529#M37539</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2021-04-25T16:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to add jar to amp</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-proper-way-to-add-jar-to-amp/m-p/140530#M37540</link>
      <description>&lt;P&gt;The database driver jar file should not go in your amp. Have a look at the following pom.xml file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/master/packaging/docker-alfresco/pom.xml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/master/packaging/docker-alfresco/pom.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the pom file that puts together the community repo docker image. You'll notice that there is an execution plugin called "copy-jdbc-connectors". It simply copies the postgres jar file into a directory called "connectors" (under the "target" directory). And then in the Dockerfile:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/master/packaging/docker-alfresco/Dockerfile" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/master/packaging/docker-alfresco/Dockerfile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can see that the contents of that "connector" directory get copied into the tomcat/lib directory:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-k"&gt;COPY&lt;/SPAN&gt;&lt;SPAN&gt; ${resource_path}/connector/* ${TOMCAT_DIR}/lib/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can follow this pattern if you like and simply copy the jar using an execution plugin and then copy it into your Dockerfile. Or you can use any other process that results in the jar file being copied into the tomcat lib dir in your docker image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Doug&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 19:39:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-proper-way-to-add-jar-to-amp/m-p/140530#M37540</guid>
      <dc:creator>dougforrest</dc:creator>
      <dc:date>2021-04-26T19:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to add jar to amp</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-proper-way-to-add-jar-to-amp/m-p/140531#M37541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/20164"&gt;@mangar&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great that you found a resolution to your problem and thanks for accepting this solution - it will help other users out who have the same problem.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 14:42:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-proper-way-to-add-jar-to-amp/m-p/140531#M37541</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-04-30T14:42:39Z</dc:date>
    </item>
  </channel>
</rss>

