<?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 share.amp for Alfresco 6.2.x not getting packaged correctly when upgraded to sdk 4.0.x in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/share-amp-for-alfresco-6-2-x-not-getting-packaged-correctly-when/m-p/131205#M35426</link>
    <description>&lt;P&gt;Greetings Guys,&lt;/P&gt;&lt;P&gt;I've created an all-in-one project using maven sdk for alfresco. I'm using version maven-sdk version 4.0, because I'm still upgrading my Alfresco 5.2.x to Alfresco 6.2.x.&lt;/P&gt;&lt;P&gt;I am successfully able to build and deploy the repo.amp for my project, but when I try to build my share.amp for the same project I'm missing all the files that were stored in the config.alfresco folder in maven-sdk 2.2.0.&lt;/P&gt;&lt;P&gt;I read numerous forums for exactly the same thing, but simply cannot get the right answer.&lt;/P&gt;&lt;P&gt;Here is how my Folder structure looks in Alfresco 5.2.x + SDK 2.2.0:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="alf5.2.png" style="width: 382px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1129i27C6A95C65774D86/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And here's how the folder structure looks in&amp;nbsp;Alfresco 6.2.x + SDK 4.0.0:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="alf6.2.png" style="width: 347px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1124i09190300EA64A6B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On further investigation, I see that the folder web-extension is getting archived in the &lt;STRONG&gt;jar&lt;/STRONG&gt; file as shown in the image below:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="alf_jar.png" style="width: 706px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1126iE16BF6C78D895C86/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kindly help me get the structure right - wherein the custom templates and ftl files are packaged correctly into the share.amp file.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;-Mohit&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 21:57:37 GMT</pubDate>
    <dc:creator>mohitashah1</dc:creator>
    <dc:date>2021-08-26T21:57:37Z</dc:date>
    <item>
      <title>share.amp for Alfresco 6.2.x not getting packaged correctly when upgraded to sdk 4.0.x</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-amp-for-alfresco-6-2-x-not-getting-packaged-correctly-when/m-p/131205#M35426</link>
      <description>&lt;P&gt;Greetings Guys,&lt;/P&gt;&lt;P&gt;I've created an all-in-one project using maven sdk for alfresco. I'm using version maven-sdk version 4.0, because I'm still upgrading my Alfresco 5.2.x to Alfresco 6.2.x.&lt;/P&gt;&lt;P&gt;I am successfully able to build and deploy the repo.amp for my project, but when I try to build my share.amp for the same project I'm missing all the files that were stored in the config.alfresco folder in maven-sdk 2.2.0.&lt;/P&gt;&lt;P&gt;I read numerous forums for exactly the same thing, but simply cannot get the right answer.&lt;/P&gt;&lt;P&gt;Here is how my Folder structure looks in Alfresco 5.2.x + SDK 2.2.0:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="alf5.2.png" style="width: 382px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1129i27C6A95C65774D86/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And here's how the folder structure looks in&amp;nbsp;Alfresco 6.2.x + SDK 4.0.0:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="alf6.2.png" style="width: 347px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1124i09190300EA64A6B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On further investigation, I see that the folder web-extension is getting archived in the &lt;STRONG&gt;jar&lt;/STRONG&gt; file as shown in the image below:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="alf_jar.png" style="width: 706px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1126iE16BF6C78D895C86/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kindly help me get the structure right - wherein the custom templates and ftl files are packaged correctly into the share.amp file.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;-Mohit&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 21:57:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-amp-for-alfresco-6-2-x-not-getting-packaged-correctly-when/m-p/131205#M35426</guid>
      <dc:creator>mohitashah1</dc:creator>
      <dc:date>2021-08-26T21:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: share.amp for Alfresco 6.2.x not getting packaged correctly when upgraded to sdk 4.0.x</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-amp-for-alfresco-6-2-x-not-getting-packaged-correctly-when/m-p/131206#M35427</link>
      <description>&lt;P&gt;Compared to sdk2.x, sdk4.x has slightly different folder structure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at this project,&amp;nbsp;&lt;A href="https://github.com/jpotts/alfresco-sdk-upgrader/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/jpotts/alfresco-sdk-upgrader/&lt;/A&gt; . it is not for sdk2.x but will give you some idea on sdk upgrades.&lt;/P&gt;
&lt;P&gt;You can also refer to this post:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/upgrading-from-sdk-3-0-1-to-sdk4/td-p/295221" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/upgrading-from-sdk-3-0-1-to-sdk4/td-p/295221&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Whatever you are seeing is correct and default.&amp;nbsp;You should move all your webscripts, messages etc. under web-extension directory always. So map the files and configs as per new structure. Everything goes to jar file except what's in "alfresco\module\&amp;lt;projectmodule&amp;gt;" You would have to enable the amp assembly plugin. Look for "maven-assembly-plugin" in your parent pom file and uncomment it.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;plugin&amp;gt;
                    &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;maven-assembly-plugin&amp;lt;/artifactId&amp;gt;
                    &amp;lt;version&amp;gt;2.6&amp;lt;/version&amp;gt;
                    &amp;lt;executions&amp;gt;
                        &amp;lt;execution&amp;gt;
                            &amp;lt;id&amp;gt;build-amp-file&amp;lt;/id&amp;gt;
                            &amp;lt;phase&amp;gt;package&amp;lt;/phase&amp;gt;
                            &amp;lt;goals&amp;gt;
                                &amp;lt;goal&amp;gt;single&amp;lt;/goal&amp;gt;
                            &amp;lt;/goals&amp;gt;
                            &amp;lt;configuration&amp;gt;
                                &amp;lt;appendAssemblyId&amp;gt;false&amp;lt;/appendAssemblyId&amp;gt;
                                &amp;lt;descriptor&amp;gt;src/main/assembly/amp.xml&amp;lt;/descriptor&amp;gt;
                            &amp;lt;/configuration&amp;gt;
                        &amp;lt;/execution&amp;gt;
                    &amp;lt;/executions&amp;gt;
                    &amp;lt;dependencies&amp;gt;
                        &amp;lt;dependency&amp;gt;
                            &amp;lt;groupId&amp;gt;org.alfresco.maven.plugin&amp;lt;/groupId&amp;gt;
                            &amp;lt;artifactId&amp;gt;alfresco-maven-plugin&amp;lt;/artifactId&amp;gt;
                            &amp;lt;version&amp;gt;${alfresco.sdk.version}&amp;lt;/version&amp;gt;
                        &amp;lt;/dependency&amp;gt;
                    &amp;lt;/dependencies&amp;gt;
                &amp;lt;/plugin&amp;gt;&lt;/PRE&gt;
&lt;P&gt;However, this will generate amp as well as jar file both. You would still see the web-extension under the jar file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checkout these docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.0/develop/sdk/#structureaio" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/6.0/develop/sdk/#structureaio&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.0/develop/sdk/#my-all-in-one-project-share" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/6.0/develop/sdk/#my-all-in-one-project-share&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 19:19:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-amp-for-alfresco-6-2-x-not-getting-packaged-correctly-when/m-p/131206#M35427</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-31T19:19:56Z</dc:date>
    </item>
  </channel>
</rss>

