<?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 How to Generate WAR file in SDK 4.1? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-war-file-in-sdk-4-1/m-p/82579#M25358</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;As I know, Alfresco SDK 4.1 generates Jar file on build. We can configure it for AMP file as well. However, for my deployment, I would need WAR file to be generated for my custom code.&lt;/P&gt;&lt;P&gt;Can anyone please let me know how can I achieve this? What are the steps needed in SDK?&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 07:10:24 GMT</pubDate>
    <dc:creator>jigir_shah</dc:creator>
    <dc:date>2020-06-03T07:10:24Z</dc:date>
    <item>
      <title>How to Generate WAR file in SDK 4.1?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-war-file-in-sdk-4-1/m-p/82579#M25358</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;As I know, Alfresco SDK 4.1 generates Jar file on build. We can configure it for AMP file as well. However, for my deployment, I would need WAR file to be generated for my custom code.&lt;/P&gt;&lt;P&gt;Can anyone please let me know how can I achieve this? What are the steps needed in SDK?&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 07:10:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-war-file-in-sdk-4-1/m-p/82579#M25358</guid>
      <dc:creator>jigir_shah</dc:creator>
      <dc:date>2020-06-03T07:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Generate WAR file in SDK 4.1?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-war-file-in-sdk-4-1/m-p/82580#M25359</link>
      <description>&lt;P&gt;I guess this is more a Maven question than a SDK question.&lt;/P&gt;&lt;P&gt;I haven't tried, but have a look at this maven plugin.&lt;/P&gt;&lt;P&gt;&amp;lt;plugin&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;maven-war-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;${version.maven.war.plugin}&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/plugin&amp;gt;&lt;BR /&gt;&amp;lt;plugin&amp;gt;&lt;/P&gt;&lt;P&gt;If you integrate it into your build process you should be able to achieve what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 10:10:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-war-file-in-sdk-4-1/m-p/82580#M25359</guid>
      <dc:creator>akreienbring</dc:creator>
      <dc:date>2020-06-03T10:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Generate WAR file in SDK 4.1?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-war-file-in-sdk-4-1/m-p/82581#M25360</link>
      <description>&lt;P&gt;SDK 4.x doesn't generate war files. Even previous version of sdk 3.x also does't generate war files as far as i know. However with sdk3.x you had option to create overlay project and build a custom war file by adding your customization to alfresco/share war files.&lt;/P&gt;
&lt;P&gt;SDK4.x is totally based on docker,&amp;nbsp; so it is recommended to use its capabilities meant for docker based environment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All your customizations are automatically applied to base alfresco/share docker images and containers are launched.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even if you are planning to use standlone instances (installed via &lt;A href="https://docs.alfresco.com/6.2/concepts/ch-install.html" target="_self" rel="nofollow noopener noreferrer"&gt;distribution method&lt;/A&gt;), you can opt to deploy your customization jar files under "module/share", "module/platform" as stated here: &lt;A href="https://docs.alfresco.com/6.2/concepts/dev-extensions-packaging-techniques-jar-files.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/dev-extensions-packaging-techniques-jar-files.html&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or use:&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.2/concepts/dev-extensions-packaging-techniques-amps.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/dev-extensions-packaging-techniques-amps.html&lt;/A&gt;&amp;nbsp;if your customzations are in form of amp package.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Have a look at these docs:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.2/concepts/deploy-concepts.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/deploy-concepts.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.2/concepts/deploy-prereqs.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/deploy-prereqs.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you are still looking for generating war files, you may give a try by creating overlayed war with your custom modules by using "content-services-community" artifact for community and "content-services" artifact for enterprise versions of ACS. And for share you can use "share" artifact. See the dependencies below.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;!-- ACS war artifact for community version --&amp;gt;

&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;org.alfresco&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;content-services-community&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;6.2.0-ga&amp;lt;/version&amp;gt;
  &amp;lt;type&amp;gt;war&amp;lt;/type&amp;gt;
&amp;lt;/dependency&amp;gt;

&amp;lt;!-- ACS war artifact for enterprise version --&amp;gt;
&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;org.alfresco&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;content-services&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;6.2.1&amp;lt;/version&amp;gt;
  &amp;lt;type&amp;gt;war&amp;lt;/type&amp;gt;
&amp;lt;/dependency&amp;gt;

&amp;lt;!-- share war artifact for both community and enterprise versions --&amp;gt;
&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;org.alfresco&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;share&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;6.2.1&amp;lt;/version&amp;gt;
  &amp;lt;type&amp;gt;war&amp;lt;/type&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2020 13:36:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-war-file-in-sdk-4-1/m-p/82581#M25360</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-06-04T13:36:23Z</dc:date>
    </item>
  </channel>
</rss>

