Access one module project into another module projectAccess one module project into another module projecthttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1043239082024-03-28T12:37:19Z2024-03-28T12:37:19ZRE: Access one module project into another module projectJobin Mathewhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1150932312019-09-05T02:14:48Z2019-09-05T02:14:48ZIf your project is not in the workspace, <br />take the jar you want to add, copy to any local location . say "C:/tools/jars" and add the following in your build.gradle filecompileOnly fileTree(include: ['*.jar'] ,dir:"C:/tools/jars")Jobin Mathew2019-09-05T02:14:48ZRE: Access one module project into another module projectDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1043703792018-02-22T13:51:09Z2018-02-22T13:51:09Z<div class="quote-title">Imran Amanat:</div><blockquote><strong>I'm using Liferay workspace. Both projects are the same nature (Liferay Module Projects). Then why error occurs??</strong></blockquote><br /><br />Sorry, it didn't look that way. Normally your individual modules will be in the contained "modules" folder, that's why you find references where folks have paths like ":modules:my-project".<br /><br />You, however, seem to have placed all of your modules directly in the root folder of the workspace, at least according to the paths you've used in the screen prints.David H Nebinger2018-02-22T13:51:09ZRE: Access one module project into another module projectImran Amanathttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1043613202018-02-22T10:54:34Z2018-02-22T10:54:34ZHi David,<br /><br /><strong>I'm using Liferay workspace. Both projects are the same nature (Liferay Module Projects). Then why error occurs??</strong><br /><br />You are saying I need to use Artifactory or Nexus or any of the other alternatives for the local repository and then I will use this local repository into modules project.<br /><br />Let's Suppose I've two modules project A and B. Both are using the same repository which I've created. So I need to import the module A jar file into the module B. <strong>So how I'll convert module A jar file as a gradle version jar file. ??</strong> <br />Because when I build the module A project he generates the jar file with project name. No version is display on the jar file. <br /><strong>So kindly guide me about this I'm confused what are the steps What I need to follow.</strong><br /><br />Thanks in advance.Imran Amanat2018-02-22T10:54:34ZRE: Access one module project into another module projectDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1043271272018-02-21T17:28:25Z2018-02-21T17:28:25Z<div class="quote-title">Imran Amanat:</div><blockquote><strong>compileOnly project(":modules:fnf-services-ca")</strong></blockquote><br /><br />This syntax only works when you are in a Liferay workspace sort of layout where all submodules are part of the same project.<br /><br />You have structured this as completely separate projects. To that end, dependencies will not come from the filesystem, they come from a shared repository. You can use Artifactory or Nexus or any of the other alternatives for your local repository.David H Nebinger2018-02-21T17:28:25ZAccess one module project into another module projectImran Amanathttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1043239072018-02-21T16:42:16Z2018-02-21T16:42:16ZHi Liferay Experts,<br /><strong>I'm facing problem to import one module project into another module project. Below is my project screen shot.</strong><br /><br /><img src="https://image.ibb.co/izWftH/Import_Module_into_another_module_Liferay_7.jpg" /><br /><br /><strong>I've created module project with name fnf-services-ca and I need to use this module into all other liferay modules. What I need to do for this ??</strong><br /><br />I've created another module project with name test-module so in the build. gradle file of this project I write below line of code to import the above project.<br /><strong>compileOnly project(":modules:fnf-services-ca")</strong><br /><br /><strong>When I compile test-module project so I get this type of error.</strong><br /><br />FAILURE: Build failed with an exception.<br /><br />* Where:<br />Build file 'E:\liferay-ide-eclipse-windows-x64-3.1.2-ga3-201709011126\Final-Liferay-WS\test-module\build.gradle' line: 19<br /><br />* What went wrong:<br />A problem occurred evaluating root project 'test-module'.<br />> Project with path ':modules:hello' could not be found in