Problem adding a standard module

Hello,

My settings.gradle :

def requiredModules = [
    "axelor-account",
    "axelor-purchase",
    "axelor-sale",
    "axelor-production",
    "axelor-stock",
    "axelor-supplychain",
    "axelor-human-resource",
    "axelor-crm",
    "axelor-admin",
    "axelor-base",
    "axelor-exception",
    "axelor-tool",
    "axelor-message",
    "axelor-project",
    "axelor-bank-payment",
    "axelor-mobile"
    ]

I added the axelor-mobile module.
I can’t see it in the list of modules once the application is launched.

Be sure that you reloaded the gradle configuration with your IDE

i do : 1. gradle build
2. gradlew clean build cleaneclipse eclipse
3. F5 for refresh in eclipse

And i run Tomcat.

I tried by not putting the required modules. And I still have the same modules installed. I don’t understand.

my setting.gradle is :

rootProject.name = 'erp-axelor'


def requiredModules = [
    "axelor-mon-module",
    "axelor-account",
    "axelor-purchase",
    "axelor-sale",
    "axelor-production",
    "axelor-stock",
    "axelor-supplychain",
    "axelor-human-resource",
    "axelor-crm",
    "axelor-admin",
    "axelor-base",
    "axelor-exception",
    "axelor-tool",
    "axelor-message",
    "axelor-project",
    "axelor-bank-payment",
    "axelor-bpm", //ajout a partir d'ici inclus
    "axelor-business-production",
    "axelor-business-project",
    "axelor-business-support",
    "axelor-cash-management",
    "axelor-client-portal",
    "axelor-contract",
    "axelor-fleet",
    "axelor-helpdesk",
    "axelor-maintenance",
    "axelor-marketing",
    "axelor-mobile",
    "axelor-project-dms",
    "axelor-quality",
    "axelor-studio",
    "axelor-supplier-management",
    "axelor-supplier-portal",
    "axelor-talent"
]

def modules = []
file("modules").traverse(type: groovy.io.FileType.DIRECTORIES, maxDepth: 1) { it ->
  if(requiredModules.contains(it.getName()) && new File(it, "build.gradle").exists()) { modules.add(it) }
}

gradle.ext.appModules = modules

modules.each { dir ->
  include "modules:$dir.name"
  project(":modules:$dir.name").projectDir = dir
}

I don’t remember how to import a new module in a eclipse project but you need to do it.

@PHPierre i thought he was doing it via gradle import.

No you need to use File tab > import in eclipse, to import the module.
If you see it in the project explorer, it’s imported for Eclipse so it’s mean it’s okay
In IntelliJ, you need to reload the project with gradle so I assume it’s the same on Eclipse.

Intellij community edition is best or even Visual studio code

I just want to select core modules to compile and show in my module management. In addition to the one I actually created. To save time compiling, rather than having to compile them all.

I found how to do it, in reality I expected to see my module appear in the list of applications. But it’s not the same thing, do we agree?
So I see my custom module in the list of modules.

I did not understood. If you don’t add the module for the compilation to your eclipse project or Intellij project, yep, eclipse will not generate a war with these module so you cannot install them since Axelor.

1 J'aime

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.