<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Issues with creating and building ext using maven for Liferay 7.1</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112618538" />
  <subtitle>Issues with creating and building ext using maven for Liferay 7.1</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112618538</id>
  <updated>2026-04-06T11:32:15Z</updated>
  <dc:date>2026-04-06T11:32:15Z</dc:date>
  <entry>
    <title>RE: Issues with creating and building ext using maven for Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112798305" />
    <author>
      <name>Narsingh Pal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112798305</id>
    <updated>2019-03-17T08:56:32Z</updated>
    <published>2019-03-17T08:56:32Z</published>
    <summary type="html">Thanks David</summary>
    <dc:creator>Narsingh Pal</dc:creator>
    <dc:date>2019-03-17T08:56:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issues with creating and building ext using maven for Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112797944" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112797944</id>
    <updated>2019-03-17T06:53:34Z</updated>
    <published>2019-03-17T06:53:34Z</published>
    <summary type="html">The maven plugin that you used to use is just not there/supported anymore.&lt;br /&gt;&lt;br /&gt;There&amp;#39;s a new set of plugins that work for both maven and gradle, mostly centered around the Liferay Workspace.&lt;br /&gt;&lt;br /&gt;You can read all about the maven support here: &lt;a href="https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-1/maven"&gt;https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-1/maven&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;You already have the link for the EXT usage, I think now it is just down to the Legacy SDK support, because, well, it really is that deprecated.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know of extension points for either AdvancedPermissionChecker or PDFProcessorImpl, so if you&amp;#39;re mucking around with those you probably do need the EXT, but you&amp;#39;ll need to stick with using it under a supported path which likely excludes any maven support.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-17T06:53:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issues with creating and building ext using maven for Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112796476" />
    <author>
      <name>Narsingh Pal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112796476</id>
    <updated>2019-03-16T22:44:43Z</updated>
    <published>2019-03-16T22:44:43Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Ok So I am trying to find an extension point for few of the portal-impl classes that I want to override in liferay 7 e.g.&amp;nbsp;AdvancedPermissionChecker,&amp;nbsp;PDFProcessorImpl&lt;br&gt;&lt;pre&gt;&lt;code&gt;com.liferay.portal.security.permission.AdvancedPermissionChecker
com.liferay.portlet.documentlibrary.util.PDFProcessorImpl&lt;/code&gt;&lt;/pre&gt;I have an ext for them which was working fine for liferay 6.2&lt;br&gt;&lt;br&gt;&lt;br&gt;I tried to find it in gogo shell using few combinations and the below one gave me some meaningful output&lt;pre&gt;&lt;code&gt;g! scr:list | grep Permission
[ 589] &amp;amp;nbsp; com.liferay.portal.search.internal.SearchPermissionCheckerImpl &amp;amp;nbsp;enabled
[ 948] &amp;amp;nbsp; com.liferay.staging.security.internal.permission.StagingPermissionCheckerFactory &amp;amp;nbsp;enabled&lt;/code&gt;&lt;/pre&gt;&amp;nbsp;&lt;br&gt;But I think, it still doesnot need my requirement.&lt;br&gt;&lt;br&gt;Can anyone please help me to figure out liferay7 extension points for the above Classes&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks and Regards&lt;br&gt;Narsingh Pal&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Narsingh Pal</dc:creator>
    <dc:date>2019-03-16T22:44:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issues with creating and building ext using maven for Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112795807" />
    <author>
      <name>Narsingh Pal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112795807</id>
    <updated>2019-03-16T21:57:13Z</updated>
    <published>2019-03-16T21:57:13Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi David,&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;I understand that we should be avoiding EXTs in liferay7.x, but lets assume a worst case scenario as mentioned in the below link&lt;/code&gt;&lt;/pre&gt;&lt;a href="https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-0/advanced-customization-with-ext-plugins"&gt;https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-0/advanced-customization-with-ext-plugins&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;What is the process for generating and building an ext plugin using maven for such scenario?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Let me rephrase my question again, basically I am trying to point out two issues&lt;br&gt;&lt;br&gt;&lt;strong&gt;1. Issue in the maven archetype for creating ext in liferay7 - &lt;/strong&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It is generating invalid dependency references in the POMS&lt;em&gt; (portal-service, util-bridges, util-java, util-slf4j, util-taglib)&lt;/em&gt; which I know haev been removed from liferay7. So, ideally these dependency references should not be present in the POM file generated by the maven archetype. Instead they should have been &lt;em&gt;(com.liferay.portal.kernel, com.liferay.util.bridges, com.liferay.util.java, com.liferay.util.slf4j, com.liferay.util.taglib) &lt;/em&gt;respectively&lt;br&gt;&lt;strong&gt;&lt;br&gt;2. Issue in the liferay maven plugin -&amp;gt; build execution goal : “build-ext”&lt;/strong&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Even if we correct these references manually in the individual POMS, i.e. make references to the new ones&lt;em&gt; (com.liferay.portal.kernel, com.liferay.util.bridges, com.liferay.util.java, com.liferay.util.slf4j, com.liferay.util.taglib),&amp;nbsp;&lt;/em&gt;the build execution goal "build-ext" fails because the liferay maven plugin [7.0.0-m2] which I am trying to use internally references old jars e.g. (&lt;em&gt;(portal-service&lt;/em&gt;) which actually doesnot exist because, it is not part of liferay 7.x.&lt;br&gt;&lt;br&gt;&lt;br&gt;Now, the reason why I am using a milestone release maven plugin is that, I could not find a maven plugin for liferay 7.x apart from (7.0.0-m2, 7.0.0-m1)&lt;br&gt;&lt;a href="https://mvnrepository.com/artifact/com.liferay.maven.plugins/liferay-maven-plugin"&gt;https://mvnrepository.com/artifact/com.liferay.maven.plugins/liferay-maven-plugin&lt;/a&gt;&lt;br&gt;This was quiet a surprise for me. &lt;br&gt;&lt;br&gt;&lt;strong&gt;Please let me know if there exists a stable liferay maven plugin apart from the above two (7.0.0-m2, 7.0.0-m1) for liferay7.x which can be used to build an ext ?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style="color: #008000"&gt;&lt;strong&gt;I am definitely looking at the possibility of avoiding the use of EXT plugin in our project and will look into the available extension points.&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Many thanks to you for sharing your thoughts.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;Thanks and Regards&lt;/strong&gt;&lt;br&gt;Narsingh Pal&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Narsingh Pal</dc:creator>
    <dc:date>2019-03-16T21:57:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issues with creating and building ext using maven for Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112792005" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112792005</id>
    <updated>2019-03-16T16:24:48Z</updated>
    <published>2019-03-16T16:24:48Z</published>
    <summary type="html">I don&amp;#39;t know what you&amp;#39;re using, but everything is completely out of whack.&lt;br /&gt;&lt;br /&gt;For example, it&amp;#39;s trying to download from repository.liferay.com which is the non-cached one that was changed a long while back.&lt;br /&gt;&lt;br /&gt;Also it&amp;#39;s going after repository.liferay.com/nexus/content/repositories/liferay-public-releases/com/liferay/portal-service/7.1.10 which simply doesn&amp;#39;t exist. Portal-service went away with 6.x, so it is a completely invalid reference.&lt;br /&gt;&lt;br /&gt;And 7.0.0-m2 of the maven plugin? A milestone release? I can&amp;#39;t believe after all this time a milestone release would still be used.&lt;br /&gt;&lt;br /&gt;Finally, I have to add the obligatory &amp;#34;What are you still trying to use EXT for?&amp;#34; Seriously, they&amp;#39;ve been deprecated for forever and many of the things we used to need EXT for have been replaced with OSGi-supported extension points. I&amp;#39;d be curious if you haven&amp;#39;t found the right extension point or if there is one (or more) still missing.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-16T16:24:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issues with creating and building ext using maven for Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112790343" />
    <author>
      <name>Narsingh Pal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112790343</id>
    <updated>2019-03-16T11:01:41Z</updated>
    <published>2019-03-16T11:01:41Z</published>
    <summary type="html">Hello Guys,&lt;br /&gt;&lt;br /&gt;Any pointers ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks and Regards&lt;br /&gt;Narsingh Pal</summary>
    <dc:creator>Narsingh Pal</dc:creator>
    <dc:date>2019-03-16T11:01:41Z</dc:date>
  </entry>
  <entry>
    <title>Issues with creating and building ext using maven for Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112618537" />
    <author>
      <name>Narsingh Pal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112618537</id>
    <updated>2019-03-07T11:42:46Z</updated>
    <published>2019-03-07T11:42:46Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;We want to create an ext using Maven in for “liferay-7.1”.&lt;br&gt;&lt;br&gt;&lt;strong&gt;Build Settings&lt;/strong&gt;&lt;br&gt;Maven plugin version used (this is the latest which we could find)&lt;span style="font-size: 10px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: teal"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #3f7f7f"&gt;liferay.maven.plugin.version&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: teal"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt;7.0.0-m2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: teal"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #3f7f7f"&gt;liferay.maven.plugin.version&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: teal"&gt;&amp;gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;Steps&lt;/strong&gt;&lt;ol style="list-style: decimal outside;" start="1"&gt;&lt;li&gt;Create ext plugin using Maven e.g. “my-ext”&lt;/li&gt;&lt;li&gt;Following directories for EXTs are generated&lt;/li&gt;&lt;/ol&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;&lt;code&gt;my-ext-ext
my-ext-ext-impl
my-ext-ext-lib-global
my-ext-ext-lib-portal
my-ext-ext-service
my-ext-ext-util-bridges
my-ext-ext-util-java
my-ext-ext-util-taglib
my-ext-ext-web&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;strong&gt;Issue&lt;/strong&gt;:&lt;ol style="list-style: decimal outside;" start="1"&gt;&lt;li&gt;The poms of the above maven modules (sub projects) are still refereeing to old 6.x dependency jars.&lt;/li&gt;&lt;/ol&gt;&lt;a href="/documents/14/8455421/1.png/38dcc8a0-cf20-ce3f-e28c-a6a0fcdd20a9?t=1551958744309"&gt;&lt;img src="/documents/14/8455421/1.png/38dcc8a0-cf20-ce3f-e28c-a6a0fcdd20a9?t=1551958744309" style="width:292px; height:291px"&gt;&lt;strong&gt;&lt;span style="color: #2e74b5"&gt;&lt;br&gt;&lt;br&gt;Ideally, as per the below article these artifactIds should have been renamed to the new migrated ones for 7.x&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;a href="https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-0/upgrading-the-liferay-maven-build"&gt;https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-0/upgrading-the-liferay-maven-build&lt;/a&gt;&lt;a href="/documents/14/8455421/2.png/0ac8de95-2d32-8e37-f6ea-2c787f4883d4?t=1551958772709"&gt;&lt;img src="/documents/14/8455421/2.png/0ac8de95-2d32-8e37-f6ea-2c787f4883d4?t=1551958772709" style="width:601px; height:303px"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;ISSUE :&lt;/strong&gt; But there seems to be some issue with the Maven archetype for EXT for 7.1 ext&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;ol style="list-style: decimal outside;" start="2"&gt;&lt;li&gt;To resolve this, we renamed artIfact Ids, manually in the individual pom.xml files of the modules to the new versions as per the above document&lt;/li&gt;&lt;/ol&gt;&lt;strong&gt;ISSUE:&lt;/strong&gt;The Build fails at the last step now&lt;strong&gt;Reason&lt;/strong&gt; :The build execution goal : “build-ext” tries to refer portal-service.jar internally and is not able to find/fetch it from Maven Central or Liferay Nexus&lt;br&gt;&lt;br&gt;&lt;/a&gt;&lt;a href="/documents/14/8455421/3.png/e2f28ca4-cef5-25fd-31b3-dd5d04ebac70?t=1551958796036"&gt;&lt;img src="/documents/14/8455421/3.png/e2f28ca4-cef5-25fd-31b3-dd5d04ebac70?t=1551958796036" style="width:601px; height:250px"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;​​​​​​​&lt;img src="/documents/14/8455421/4.png/7a5c4cad-5f4a-9df6-42fa-5a0cd33eca7f?t=1551958818958" style="width:623px; height:339px"&gt;&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Narsingh Pal</dc:creator>
    <dc:date>2019-03-07T11:42:46Z</dc:date>
  </entry>
</feed>
