You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by Nana Quame Alexander <qu...@gmail.com> on 2022/10/15 01:55:22 UTC

Re: Run with IntelliJ

Hi Hitesh,


I have been trying to set up fineract for dev with intelliJ however I keep
running into the issues attached.
I have tried the steps above as well but I get back to the same challenges.
I would be grateful if anyone could be of assistance.

PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> .\gradlew build
> Could not open the public key ring.
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Unknown file extension:
> custom\acme\loan\starter\src\main\resources\META-INF\spring.factories
> Unknown file extension:
> custom\acme\note\starter\src\main\resources\META-INF\spring.factories


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fineract-doc:spotlessGroovyGradleCheck'.
> The following files had format violations:
      build.gradle
          @@ -1,121 +1,121 @@
          -/**\r\n
          - * Licensed to the Apache Software Foundation (ASF) under one\r\n
          - * or more contributor license agreements. See the NOTICE
file\r\n
          - * distributed with this work for additional information\r\n
          - * regarding copyright ownership. The ASF licenses this file\r\n
          - * to you under the Apache License, Version 2.0 (the\r\n
          - * "License"); you may not use this file except in compliance\r\n
          - * with the License. You may obtain a copy of the License at\r\n
          - *\r\n
          - * http://www.apache.org/licenses/LICENSE-2.0\r\n
          - *\r\n
          - * Unless required by applicable law or agreed to in writing,\r\n
          - * software distributed under the License is distributed on
an\r\n
          - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n
          - * KIND, either express or implied. See the License for the\r\n
          - * specific language governing permissions and limitations\r\n
          - * under the License.\r\n
          - */\r\n
          -apply plugin: 'org.asciidoctor.jvm.convert'\r\n
          -apply plugin: 'org.asciidoctor.jvm.pdf'\r\n
          -apply plugin: 'org.asciidoctor.jvm.revealjs'\r\n
          -// apply plugin: 'org.asciidoctor.jvm.epub'\r\n
          -// apply plugin: 'org.asciidoctor.kindlegen.base'\r\n
          -\r\n
          -asciidoctorj {\r\n
          -    version = '2.5.3'\r\n
          -\r\n
          -    attributes = [\r\n
          -        version: "${project.version}",\r\n
          -        generated: "${buildDir}/generated/asciidoc",\r\n
          -        imagesdir: "${projectDir}/src/docs/en/images",\r\n
          -        diagramsdir: "${projectDir}/src/docs/en/diagrams",\r\n
          -        years: '2015-2022',\r\n
          -        revnumber: "${project.version}".toString(),\r\n
          -        rootdir: "${rootDir}".toString(),\r\n
          -        baseurl: 'fineract.apache.org',\r\n
          -    ]\r\n
          -\r\n
          -    modules {\r\n
          -        pdf.version '1.6.2'\r\n
          -        diagram.version '2.2.1'\r\n
          -        epub.version '1.5.1'\r\n
          -        revealjs.version '4.1.0'\r\n
          -    }\r\n
          -\r\n
          -    fatalWarnings ~/include file not found|missing callout|image
to embed not found or not readable/\r\n
          -    fatalWarnings missingIncludes()\r\n
          -}\r\n
      ... (194 more lines that didn't fit)
  Run 'gradlew.bat :fineract-doc:spotlessApply' to fix these violations.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible
with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation
warnings and determine if they come from your own scripts or plugins.

See
https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 15s
PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> java -version
java version "18.0.2.1" 2022-08-18
Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)
PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>


On Fri, Aug 5, 2022 at 9:43 PM Moses Kalema <mk...@gmail.com> wrote:

> Hi Hitesh,
>
> I have successfully been able to run and debug in intelliJ.
> Thank you for your guidance. It is just perfect incase anyone else needs
> to do the same thing.
>
> Best Regards,
> Moses
>
> On Fri, Aug 5, 2022 at 9:42 AM hitesh prajapati <
> hitesh.kams.prajapati@gmail.com> wrote:
>
>> Hi Moses,
>>
>> I haven't tried running a test. I skip tests with gradlew -x test
>>
>> On Fri, Aug 5, 2022 at 1:09 AM Moses Kalema <mk...@gmail.com> wrote:
>>
>>> Hi Hitesh,
>>>
>>> Trying to follow your steps but i get failure on ./gradlew build on this
>>> task twofactor-tests:cargoStartLocal . Did you get anything like this?
>>>
>>> This is the stack trace
>>>
>>> Execution failed for task ':twofactor-tests:cargoStartLocal'.
>>> > org.codehaus.cargo.container.ContainerException: Failed to create a
>>> Tomcat 9.x standalone configuration: File
>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>> does not contain replacement key @tomcat.users@
>>>
>>> * Exception is:
>>> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
>>> ':twofactor-tests:cargoStartLocal'.
>>>         at
>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
>>>         at
>>> org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
>>>         at
>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
>>>         at
>>> org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
>>> Caused by: : org.codehaus.cargo.container.ContainerException: Failed to
>>> create a Tomcat 9.x standalone configuration: File
>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>> does not contain replacement key @tomcat.users@
>>>         at
>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)
>>>         at
>>> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:90)
>>>         at
>>> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:117)
>>>         at
>>> com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction(LocalCargoContainerTask.groovy:191)
>>>         at
>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> Method)
>>>         at
>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>>>         at
>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>         at
>>> com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask$_start_closure2.doCall(Abstrac
>>>
>>>
>>>
>>> On Tue, Jul 26, 2022 at 12:54 AM hitesh prajapati <
>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> The first time without specifying spring.datasource.hikari.jdbcUrl as
>>>> an environment variable, I was getting a bean creation exception for
>>>> hikariTenanatDataSource.
>>>>
>>>> Caused by: org.springframework.beans.factory.BeanCreationException:
>>>> Error creating bean with name 'hikariTenantDataSource' defined in class
>>>> path resource
>>>> [org/apache/fineract/infrastructure/core/config/HikariCpConfig.class]: Bean
>>>> instantiation via factory method failed; nested exception is
>>>> org.springframework.beans.BeanInstantiationException: Failed to instantiate
>>>> [javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw
>>>> exception; nested exception is java.lang.IllegalArgumentException:
>>>> dataSource or dataSourceClassName or jdbcUrl is required.
>>>>
>>>> First of all this should not happen at that first place as
>>>> application.properties has
>>>> spring.datasource.hikari.jdbcUrl=${FINERACT_HIKARI_JDBC_URL:jdbc:mariadb://localhost:3306/fineract_tenants}
>>>>
>>>> So, I thought Intellij was having some problem picking up these properties, so I passed it as an environment variable and it worked.
>>>>
>>>>
>>>> And once it runs successfully, now if I remove that property from Intellij's configuration, my fineract still works. That's the surprise.
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Hitesh
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Jul 26, 2022 at 10:58 AM hitesh prajapati <
>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>
>>>>> Hi Moses Kalema,
>>>>>
>>>>> Here is my debugger running. Just note that in debug configuration , I
>>>>> need to pass spring.datasource.hikari.jdbcUrl as an environment variable as
>>>>> it is not picking up from application.properties.
>>>>>
>>>>> [image: image.png]
>>>>>
>>>>> [image: image.png]
>>>>>
>>>>>
>>>>> On Tue, Jul 26, 2022 at 10:03 AM hitesh prajapati <
>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Here is my Intellij's configuration to run fineract from it
>>>>>>  and i am able to run as debug mode.
>>>>>> [image: image.png]
>>>>>>
>>>>>> [image: image.png]
>>>>>>
>>>>>> On Tue, 26 Jul 2022, 09:46 Moses Kalema, <mk...@gmail.com> wrote:
>>>>>>
>>>>>>> In that case, you are basically using intelliJ as an editor but
>>>>>>> running an application with a command line. For example, you wouldn't be
>>>>>>> able to ren debug mode (unless it is remote debug).
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jul 25, 2022 at 11:09 PM hitesh prajapati <
>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>
>>>>>>>> No. Its from intellij's configuration.
>>>>>>>>
>>>>>>>> But gradlew build and gradlew idea from terminal or command prompt.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, 26 Jul 2022, 09:37 Moses Kalema, <mk...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> By run gradlew bootRun you don't mean using the intelliJ terminal?
>>>>>>>>>
>>>>>>>>> Thanks, let me try those steps.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Moses
>>>>>>>>>
>>>>>>>>> On Mon, Jul 25, 2022 at 11:03 PM hitesh prajapati <
>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Yes. I mean i run gradlew booRun from intellij.
>>>>>>>>>>
>>>>>>>>>> But before that
>>>>>>>>>>
>>>>>>>>>> First i do gradlew build and gradlew idea.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Then once you open the fineract in Intellij idea, please select
>>>>>>>>>> correct JDK for the module. and after that select correct JDK in intellij
>>>>>>>>>> gradle settings
>>>>>>>>>>
>>>>>>>>>> After all these steps, you should be able to run bootRun from
>>>>>>>>>> intellij. I hope this helps.
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> Hitesh
>>>>>>>>>>
>>>>>>>>>> On Tue, 26 Jul 2022, 08:43 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello,
>>>>>>>>>>>
>>>>>>>>>>> Is anyone running fineract with intellij?
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Moses Kalema*
>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Moses Kalema*
>>>>>>> *"My Heart is in The Work"*
>>>>>>>
>>>>>>
>>>
>>> --
>>> *Moses Kalema*
>>> *"My Heart is in The Work"*
>>>
>>
>
> --
> *Moses Kalema*
> *"My Heart is in The Work"*
>

Re: Run with IntelliJ

Posted by Nana Quame Alexander <qu...@gmail.com>.
Hi,

Currently I have not opened the project in intelliJ
I just cloned it from the terminal, and ran ./gradlew build which led to
those challenges

I just made a fresh clone and ran the ./gradlew spotlessApply which also
led to the errors below.
My next line of action will be to clone the project with git bash rather
than the windows terminal and also try using the linux subsystem I have
already running on my pc.
I will revert with the outcome of these.

PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> ./gradlew
> spotlessApply
> Could not open the public key ring.
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
> Errors occurred while build effective model from
> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0


Deprecated Gradle features were used in this build, making it incompatible
with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation
warnings and determine if they come from your own scripts or plugins.

See
https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>



On Sat, Oct 15, 2022 at 8:33 AM Aleksandar Vidakovic <
cheetah@monkeysintown.com> wrote:

> ... yeah, Mac doesn't have that issue (usually)... and true, could be also
> a formatting hook in Git... @quamelexiz@gmail.com <qu...@gmail.com> could
> you please check if those assumptions are matching your situation? Please
> let us know if and how you fixed it... we might update the documentation or
> the README to inform others with a similar environment.
>
> Thanks
>
> On Sat, Oct 15, 2022 at 10:27 AM Ádám Sághy <ad...@gmail.com> wrote:
>
>> Hi
>>
>> Hard to tell because i am working on mac and was not faced with this
>> issues so far.
>>
>> We can gather a couple ppl with windows, linux and mac and ask them to
>> try out the spotless plugin on the same codebase and check the outcome.
>>
>> However the autoformatting by the IDE could be the source of the issue
>> for sure. I would give a try to disable any formatting action on saving a
>> file.
>>
>> Also some of the git configuration could be source of
>> problem too (like: line ending configuration)
>>
>> Regards
>> Adam
>>
>> Sent from my iPhone
>>
>> On 15 Oct 2022, at 10:19, Aleksandar Vidakovic <ch...@monkeysintown.com>
>> wrote:
>>
>> 
>> Hi Adam,
>>
>> ... could it be that this is a Windows specific problem? "spotlessApply"
>> (which I always run before submitting PRs) does nothing when I run it on my
>> machine (Ubuntu Linux)... no complaints, nothing.
>>
>> I first thought that this is related to the new custom module concept I
>> just added... but no... the complaint is about a wrongly formatted
>> build.gradle file in fineract-doc... I ran "spotlessApply" also
>> specifically on that module, no changes formatted... my local builds and
>> the ones on latest PRs are also not complaining.
>>
>> Could it be that the dev has an editor that e. g. automatically "fixes"
>> the line breaks to Windows CRLF... aka LF (character : \n, Unix) vs CRLF
>> (character : \r\n, Windows)?
>>
>> Please let me know if this problem persists for more devs...
>>
>> On Sat, Oct 15, 2022 at 9:42 AM Aleksandar Vidakovic <
>> cheetah@monkeysintown.com> wrote:
>>
>>> ... thanks Adam... will fix right now... and I know why it didn't show
>>> up during gh actions builds .. will fix that too.
>>>
>>> On Sat, 15 Oct 2022, 09:05 Ádám Sághy, <ad...@gmail.com> wrote:
>>>
>>>> Dear Alexander,
>>>>
>>>> Based on the attached log there are checkstyle errors in your code.
>>>> Please run the following command to fix it automatically:
>>>>
>>>> ./gradlew spotlessApply
>>>>
>>>> Regards
>>>> Adam
>>>>
>>>>
>>>> Sent from my iPhone
>>>>
>>>> On 15 Oct 2022, at 03:55, Nana Quame Alexander <qu...@gmail.com>
>>>> wrote:
>>>>
>>>> 
>>>> Hi Hitesh,
>>>>
>>>>
>>>> I have been trying to set up fineract for dev with intelliJ however I
>>>> keep running into the issues attached.
>>>> I have tried the steps above as well but I get back to the same
>>>> challenges.
>>>> I would be grateful if anyone could be of assistance.
>>>>
>>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> .\gradlew build
>>>>> Could not open the public key ring.
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>>> Errors occurred while build effective model from
>>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>>         'dependencies.dependency.artifactId' for
>>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>> Unknown file extension:
>>>>> custom\acme\loan\starter\src\main\resources\META-INF\spring.factories
>>>>> Unknown file extension:
>>>>> custom\acme\note\starter\src\main\resources\META-INF\spring.factories
>>>>
>>>>
>>>> FAILURE: Build failed with an exception.
>>>>
>>>> * What went wrong:
>>>> Execution failed for task ':fineract-doc:spotlessGroovyGradleCheck'.
>>>> > The following files had format violations:
>>>>       build.gradle
>>>>           @@ -1,121 +1,121 @@
>>>>           -/**\r\n
>>>>           - * Licensed to the Apache Software Foundation (ASF) under
>>>> one\r\n
>>>>           - * or more contributor license agreements. See the NOTICE
>>>> file\r\n
>>>>           - * distributed with this work for additional information\r\n
>>>>           - * regarding copyright ownership. The ASF licenses this
>>>> file\r\n
>>>>           - * to you under the Apache License, Version 2.0 (the\r\n
>>>>           - * "License"); you may not use this file except in
>>>> compliance\r\n
>>>>           - * with the License. You may obtain a copy of the License
>>>> at\r\n
>>>>           - *\r\n
>>>>           - * http://www.apache.org/licenses/LICENSE-2.0\r\n
>>>>           - *\r\n
>>>>           - * Unless required by applicable law or agreed to in
>>>> writing,\r\n
>>>>           - * software distributed under the License is distributed on
>>>> an\r\n
>>>>           - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n
>>>>           - * KIND, either express or implied. See the License for
>>>> the\r\n
>>>>           - * specific language governing permissions and
>>>> limitations\r\n
>>>>           - * under the License.\r\n
>>>>           - */\r\n
>>>>           -apply plugin: 'org.asciidoctor.jvm.convert'\r\n
>>>>           -apply plugin: 'org.asciidoctor.jvm.pdf'\r\n
>>>>           -apply plugin: 'org.asciidoctor.jvm.revealjs'\r\n
>>>>           -// apply plugin: 'org.asciidoctor.jvm.epub'\r\n
>>>>           -// apply plugin: 'org.asciidoctor.kindlegen.base'\r\n
>>>>           -\r\n
>>>>           -asciidoctorj {\r\n
>>>>           -    version = '2.5.3'\r\n
>>>>           -\r\n
>>>>           -    attributes = [\r\n
>>>>           -        version: "${project.version}",\r\n
>>>>           -        generated: "${buildDir}/generated/asciidoc",\r\n
>>>>           -        imagesdir: "${projectDir}/src/docs/en/images",\r\n
>>>>           -        diagramsdir:
>>>> "${projectDir}/src/docs/en/diagrams",\r\n
>>>>           -        years: '2015-2022',\r\n
>>>>           -        revnumber: "${project.version}".toString(),\r\n
>>>>           -        rootdir: "${rootDir}".toString(),\r\n
>>>>           -        baseurl: 'fineract.apache.org',\r\n
>>>>           -    ]\r\n
>>>>           -\r\n
>>>>           -    modules {\r\n
>>>>           -        pdf.version '1.6.2'\r\n
>>>>           -        diagram.version '2.2.1'\r\n
>>>>           -        epub.version '1.5.1'\r\n
>>>>           -        revealjs.version '4.1.0'\r\n
>>>>           -    }\r\n
>>>>           -\r\n
>>>>           -    fatalWarnings ~/include file not found|missing
>>>> callout|image to embed not found or not readable/\r\n
>>>>           -    fatalWarnings missingIncludes()\r\n
>>>>           -}\r\n
>>>>       ... (194 more lines that didn't fit)
>>>>   Run 'gradlew.bat :fineract-doc:spotlessApply' to fix these violations.
>>>>
>>>> * Try:
>>>> > Run with --stacktrace option to get the stack trace.
>>>> > Run with --info or --debug option to get more log output.
>>>> > Run with --scan to get full insights.
>>>>
>>>> * Get more help at https://help.gradle.org
>>>>
>>>> Deprecated Gradle features were used in this build, making it
>>>> incompatible with Gradle 8.0.
>>>>
>>>> You can use '--warning-mode all' to show the individual deprecation
>>>> warnings and determine if they come from your own scripts or plugins.
>>>>
>>>> See
>>>> https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
>>>>
>>>> BUILD FAILED in 15s
>>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> java -version
>>>> java version "18.0.2.1" 2022-08-18
>>>> Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
>>>> Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode,
>>>> sharing)
>>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>>>>
>>>>
>>>> On Fri, Aug 5, 2022 at 9:43 PM Moses Kalema <mk...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Hitesh,
>>>>>
>>>>> I have successfully been able to run and debug in intelliJ.
>>>>> Thank you for your guidance. It is just perfect incase anyone else
>>>>> needs to do the same thing.
>>>>>
>>>>> Best Regards,
>>>>> Moses
>>>>>
>>>>> On Fri, Aug 5, 2022 at 9:42 AM hitesh prajapati <
>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>
>>>>>> Hi Moses,
>>>>>>
>>>>>> I haven't tried running a test. I skip tests with gradlew -x test
>>>>>>
>>>>>> On Fri, Aug 5, 2022 at 1:09 AM Moses Kalema <mk...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Hitesh,
>>>>>>>
>>>>>>> Trying to follow your steps but i get failure on ./gradlew build on
>>>>>>> this task twofactor-tests:cargoStartLocal . Did you get anything like this?
>>>>>>>
>>>>>>> This is the stack trace
>>>>>>>
>>>>>>> Execution failed for task ':twofactor-tests:cargoStartLocal'.
>>>>>>> > org.codehaus.cargo.container.ContainerException: Failed to create
>>>>>>> a Tomcat 9.x standalone configuration: File
>>>>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>>>>> does not contain replacement key @tomcat.users@
>>>>>>>
>>>>>>> * Exception is:
>>>>>>> org.gradle.api.tasks.TaskExecutionException: Execution failed for
>>>>>>> task ':twofactor-tests:cargoStartLocal'.
>>>>>>>         at
>>>>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
>>>>>>>         at
>>>>>>> org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
>>>>>>>         at
>>>>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
>>>>>>>         at
>>>>>>> org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
>>>>>>> Caused by: : org.codehaus.cargo.container.ContainerException: Failed
>>>>>>> to create a Tomcat 9.x standalone configuration: File
>>>>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>>>>> does not contain replacement key @tomcat.users@
>>>>>>>         at
>>>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)
>>>>>>>         at
>>>>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:90)
>>>>>>>         at
>>>>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:117)
>>>>>>>         at
>>>>>>> com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction(LocalCargoContainerTask.groovy:191)
>>>>>>>         at
>>>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>> Method)
>>>>>>>         at
>>>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>>>>>>>         at
>>>>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>         at
>>>>>>> com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask$_start_closure2.doCall(Abstrac
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Jul 26, 2022 at 12:54 AM hitesh prajapati <
>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi All,
>>>>>>>>
>>>>>>>> The first time without specifying spring.datasource.hikari.jdbcUrl
>>>>>>>> as an environment variable, I was getting a bean creation exception for
>>>>>>>> hikariTenanatDataSource.
>>>>>>>>
>>>>>>>> Caused by: org.springframework.beans.factory.BeanCreationException:
>>>>>>>> Error creating bean with name 'hikariTenantDataSource' defined in class
>>>>>>>> path resource
>>>>>>>> [org/apache/fineract/infrastructure/core/config/HikariCpConfig.class]: Bean
>>>>>>>> instantiation via factory method failed; nested exception is
>>>>>>>> org.springframework.beans.BeanInstantiationException: Failed to instantiate
>>>>>>>> [javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw
>>>>>>>> exception; nested exception is java.lang.IllegalArgumentException:
>>>>>>>> dataSource or dataSourceClassName or jdbcUrl is required.
>>>>>>>>
>>>>>>>> First of all this should not happen at that first place as
>>>>>>>> application.properties has
>>>>>>>> spring.datasource.hikari.jdbcUrl=${FINERACT_HIKARI_JDBC_URL:jdbc:mariadb://localhost:3306/fineract_tenants}
>>>>>>>>
>>>>>>>> So, I thought Intellij was having some problem picking up these properties, so I passed it as an environment variable and it worked.
>>>>>>>>
>>>>>>>>
>>>>>>>> And once it runs successfully, now if I remove that property from Intellij's configuration, my fineract still works. That's the surprise.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Hitesh
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Jul 26, 2022 at 10:58 AM hitesh prajapati <
>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Moses Kalema,
>>>>>>>>>
>>>>>>>>> Here is my debugger running. Just note that in debug configuration
>>>>>>>>> , I need to pass spring.datasource.hikari.jdbcUrl as an environment
>>>>>>>>> variable as it is not picking up from application.properties.
>>>>>>>>>
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Jul 26, 2022 at 10:03 AM hitesh prajapati <
>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> Here is my Intellij's configuration to run fineract from it
>>>>>>>>>>  and i am able to run as debug mode.
>>>>>>>>>> [image: image.png]
>>>>>>>>>>
>>>>>>>>>> [image: image.png]
>>>>>>>>>>
>>>>>>>>>> On Tue, 26 Jul 2022, 09:46 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> In that case, you are basically using intelliJ as an editor but
>>>>>>>>>>> running an application with a command line. For example, you wouldn't be
>>>>>>>>>>> able to ren debug mode (unless it is remote debug).
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Jul 25, 2022 at 11:09 PM hitesh prajapati <
>>>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> No. Its from intellij's configuration.
>>>>>>>>>>>>
>>>>>>>>>>>> But gradlew build and gradlew idea from terminal or command
>>>>>>>>>>>> prompt.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, 26 Jul 2022, 09:37 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> By run gradlew bootRun you don't mean using the intelliJ
>>>>>>>>>>>>> terminal?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks, let me try those steps.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>> Moses
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Mon, Jul 25, 2022 at 11:03 PM hitesh prajapati <
>>>>>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Yes. I mean i run gradlew booRun from intellij.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But before that
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> First i do gradlew build and gradlew idea.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Then once you open the fineract in Intellij idea, please
>>>>>>>>>>>>>> select correct JDK for the module. and after that select correct JDK in
>>>>>>>>>>>>>> intellij gradle settings
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> After all these steps, you should be able to run bootRun from
>>>>>>>>>>>>>> intellij. I hope this helps.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>> Hitesh
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tue, 26 Jul 2022, 08:43 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Is anyone running fineract with intellij?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Moses Kalema*
>>>>>>> *"My Heart is in The Work"*
>>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> *Moses Kalema*
>>>>> *"My Heart is in The Work"*
>>>>>
>>>>

Re: Run with IntelliJ

Posted by Aleksandar Vidakovic <ch...@monkeysintown.com>.
... yeah, Mac doesn't have that issue (usually)... and true, could be also
a formatting hook in Git... @quamelexiz@gmail.com <qu...@gmail.com> could
you please check if those assumptions are matching your situation? Please
let us know if and how you fixed it... we might update the documentation or
the README to inform others with a similar environment.

Thanks

On Sat, Oct 15, 2022 at 10:27 AM Ádám Sághy <ad...@gmail.com> wrote:

> Hi
>
> Hard to tell because i am working on mac and was not faced with this
> issues so far.
>
> We can gather a couple ppl with windows, linux and mac and ask them to try
> out the spotless plugin on the same codebase and check the outcome.
>
> However the autoformatting by the IDE could be the source of the issue for
> sure. I would give a try to disable any formatting action on saving a file.
>
> Also some of the git configuration could be source of
> problem too (like: line ending configuration)
>
> Regards
> Adam
>
> Sent from my iPhone
>
> On 15 Oct 2022, at 10:19, Aleksandar Vidakovic <ch...@monkeysintown.com>
> wrote:
>
> 
> Hi Adam,
>
> ... could it be that this is a Windows specific problem? "spotlessApply"
> (which I always run before submitting PRs) does nothing when I run it on my
> machine (Ubuntu Linux)... no complaints, nothing.
>
> I first thought that this is related to the new custom module concept I
> just added... but no... the complaint is about a wrongly formatted
> build.gradle file in fineract-doc... I ran "spotlessApply" also
> specifically on that module, no changes formatted... my local builds and
> the ones on latest PRs are also not complaining.
>
> Could it be that the dev has an editor that e. g. automatically "fixes"
> the line breaks to Windows CRLF... aka LF (character : \n, Unix) vs CRLF
> (character : \r\n, Windows)?
>
> Please let me know if this problem persists for more devs...
>
> On Sat, Oct 15, 2022 at 9:42 AM Aleksandar Vidakovic <
> cheetah@monkeysintown.com> wrote:
>
>> ... thanks Adam... will fix right now... and I know why it didn't show up
>> during gh actions builds .. will fix that too.
>>
>> On Sat, 15 Oct 2022, 09:05 Ádám Sághy, <ad...@gmail.com> wrote:
>>
>>> Dear Alexander,
>>>
>>> Based on the attached log there are checkstyle errors in your code.
>>> Please run the following command to fix it automatically:
>>>
>>> ./gradlew spotlessApply
>>>
>>> Regards
>>> Adam
>>>
>>>
>>> Sent from my iPhone
>>>
>>> On 15 Oct 2022, at 03:55, Nana Quame Alexander <qu...@gmail.com>
>>> wrote:
>>>
>>> 
>>> Hi Hitesh,
>>>
>>>
>>> I have been trying to set up fineract for dev with intelliJ however I
>>> keep running into the issues attached.
>>> I have tried the steps above as well but I get back to the same
>>> challenges.
>>> I would be grateful if anyone could be of assistance.
>>>
>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> .\gradlew build
>>>> Could not open the public key ring.
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Unknown file extension:
>>>> custom\acme\loan\starter\src\main\resources\META-INF\spring.factories
>>>> Unknown file extension:
>>>> custom\acme\note\starter\src\main\resources\META-INF\spring.factories
>>>
>>>
>>> FAILURE: Build failed with an exception.
>>>
>>> * What went wrong:
>>> Execution failed for task ':fineract-doc:spotlessGroovyGradleCheck'.
>>> > The following files had format violations:
>>>       build.gradle
>>>           @@ -1,121 +1,121 @@
>>>           -/**\r\n
>>>           - * Licensed to the Apache Software Foundation (ASF) under
>>> one\r\n
>>>           - * or more contributor license agreements. See the NOTICE
>>> file\r\n
>>>           - * distributed with this work for additional information\r\n
>>>           - * regarding copyright ownership. The ASF licenses this
>>> file\r\n
>>>           - * to you under the Apache License, Version 2.0 (the\r\n
>>>           - * "License"); you may not use this file except in
>>> compliance\r\n
>>>           - * with the License. You may obtain a copy of the License
>>> at\r\n
>>>           - *\r\n
>>>           - * http://www.apache.org/licenses/LICENSE-2.0\r\n
>>>           - *\r\n
>>>           - * Unless required by applicable law or agreed to in
>>> writing,\r\n
>>>           - * software distributed under the License is distributed on
>>> an\r\n
>>>           - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n
>>>           - * KIND, either express or implied. See the License for
>>> the\r\n
>>>           - * specific language governing permissions and limitations\r\n
>>>           - * under the License.\r\n
>>>           - */\r\n
>>>           -apply plugin: 'org.asciidoctor.jvm.convert'\r\n
>>>           -apply plugin: 'org.asciidoctor.jvm.pdf'\r\n
>>>           -apply plugin: 'org.asciidoctor.jvm.revealjs'\r\n
>>>           -// apply plugin: 'org.asciidoctor.jvm.epub'\r\n
>>>           -// apply plugin: 'org.asciidoctor.kindlegen.base'\r\n
>>>           -\r\n
>>>           -asciidoctorj {\r\n
>>>           -    version = '2.5.3'\r\n
>>>           -\r\n
>>>           -    attributes = [\r\n
>>>           -        version: "${project.version}",\r\n
>>>           -        generated: "${buildDir}/generated/asciidoc",\r\n
>>>           -        imagesdir: "${projectDir}/src/docs/en/images",\r\n
>>>           -        diagramsdir: "${projectDir}/src/docs/en/diagrams",\r\n
>>>           -        years: '2015-2022',\r\n
>>>           -        revnumber: "${project.version}".toString(),\r\n
>>>           -        rootdir: "${rootDir}".toString(),\r\n
>>>           -        baseurl: 'fineract.apache.org',\r\n
>>>           -    ]\r\n
>>>           -\r\n
>>>           -    modules {\r\n
>>>           -        pdf.version '1.6.2'\r\n
>>>           -        diagram.version '2.2.1'\r\n
>>>           -        epub.version '1.5.1'\r\n
>>>           -        revealjs.version '4.1.0'\r\n
>>>           -    }\r\n
>>>           -\r\n
>>>           -    fatalWarnings ~/include file not found|missing
>>> callout|image to embed not found or not readable/\r\n
>>>           -    fatalWarnings missingIncludes()\r\n
>>>           -}\r\n
>>>       ... (194 more lines that didn't fit)
>>>   Run 'gradlew.bat :fineract-doc:spotlessApply' to fix these violations.
>>>
>>> * Try:
>>> > Run with --stacktrace option to get the stack trace.
>>> > Run with --info or --debug option to get more log output.
>>> > Run with --scan to get full insights.
>>>
>>> * Get more help at https://help.gradle.org
>>>
>>> Deprecated Gradle features were used in this build, making it
>>> incompatible with Gradle 8.0.
>>>
>>> You can use '--warning-mode all' to show the individual deprecation
>>> warnings and determine if they come from your own scripts or plugins.
>>>
>>> See
>>> https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
>>>
>>> BUILD FAILED in 15s
>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> java -version
>>> java version "18.0.2.1" 2022-08-18
>>> Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
>>> Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode,
>>> sharing)
>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>>>
>>>
>>> On Fri, Aug 5, 2022 at 9:43 PM Moses Kalema <mk...@gmail.com> wrote:
>>>
>>>> Hi Hitesh,
>>>>
>>>> I have successfully been able to run and debug in intelliJ.
>>>> Thank you for your guidance. It is just perfect incase anyone else
>>>> needs to do the same thing.
>>>>
>>>> Best Regards,
>>>> Moses
>>>>
>>>> On Fri, Aug 5, 2022 at 9:42 AM hitesh prajapati <
>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>
>>>>> Hi Moses,
>>>>>
>>>>> I haven't tried running a test. I skip tests with gradlew -x test
>>>>>
>>>>> On Fri, Aug 5, 2022 at 1:09 AM Moses Kalema <mk...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Hitesh,
>>>>>>
>>>>>> Trying to follow your steps but i get failure on ./gradlew build on
>>>>>> this task twofactor-tests:cargoStartLocal . Did you get anything like this?
>>>>>>
>>>>>> This is the stack trace
>>>>>>
>>>>>> Execution failed for task ':twofactor-tests:cargoStartLocal'.
>>>>>> > org.codehaus.cargo.container.ContainerException: Failed to create a
>>>>>> Tomcat 9.x standalone configuration: File
>>>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>>>> does not contain replacement key @tomcat.users@
>>>>>>
>>>>>> * Exception is:
>>>>>> org.gradle.api.tasks.TaskExecutionException: Execution failed for
>>>>>> task ':twofactor-tests:cargoStartLocal'.
>>>>>>         at
>>>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
>>>>>>         at
>>>>>> org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
>>>>>>         at
>>>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
>>>>>>         at
>>>>>> org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
>>>>>> Caused by: : org.codehaus.cargo.container.ContainerException: Failed
>>>>>> to create a Tomcat 9.x standalone configuration: File
>>>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>>>> does not contain replacement key @tomcat.users@
>>>>>>         at
>>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)
>>>>>>         at
>>>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:90)
>>>>>>         at
>>>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:117)
>>>>>>         at
>>>>>> com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction(LocalCargoContainerTask.groovy:191)
>>>>>>         at
>>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>> Method)
>>>>>>         at
>>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>>>>>>         at
>>>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>         at
>>>>>> com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask$_start_closure2.doCall(Abstrac
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Jul 26, 2022 at 12:54 AM hitesh prajapati <
>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> The first time without specifying spring.datasource.hikari.jdbcUrl
>>>>>>> as an environment variable, I was getting a bean creation exception for
>>>>>>> hikariTenanatDataSource.
>>>>>>>
>>>>>>> Caused by: org.springframework.beans.factory.BeanCreationException:
>>>>>>> Error creating bean with name 'hikariTenantDataSource' defined in class
>>>>>>> path resource
>>>>>>> [org/apache/fineract/infrastructure/core/config/HikariCpConfig.class]: Bean
>>>>>>> instantiation via factory method failed; nested exception is
>>>>>>> org.springframework.beans.BeanInstantiationException: Failed to instantiate
>>>>>>> [javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw
>>>>>>> exception; nested exception is java.lang.IllegalArgumentException:
>>>>>>> dataSource or dataSourceClassName or jdbcUrl is required.
>>>>>>>
>>>>>>> First of all this should not happen at that first place as
>>>>>>> application.properties has
>>>>>>> spring.datasource.hikari.jdbcUrl=${FINERACT_HIKARI_JDBC_URL:jdbc:mariadb://localhost:3306/fineract_tenants}
>>>>>>>
>>>>>>> So, I thought Intellij was having some problem picking up these properties, so I passed it as an environment variable and it worked.
>>>>>>>
>>>>>>>
>>>>>>> And once it runs successfully, now if I remove that property from Intellij's configuration, my fineract still works. That's the surprise.
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Hitesh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Jul 26, 2022 at 10:58 AM hitesh prajapati <
>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Moses Kalema,
>>>>>>>>
>>>>>>>> Here is my debugger running. Just note that in debug configuration
>>>>>>>> , I need to pass spring.datasource.hikari.jdbcUrl as an environment
>>>>>>>> variable as it is not picking up from application.properties.
>>>>>>>>
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Jul 26, 2022 at 10:03 AM hitesh prajapati <
>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> Here is my Intellij's configuration to run fineract from it
>>>>>>>>>  and i am able to run as debug mode.
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>> On Tue, 26 Jul 2022, 09:46 Moses Kalema, <mk...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> In that case, you are basically using intelliJ as an editor but
>>>>>>>>>> running an application with a command line. For example, you wouldn't be
>>>>>>>>>> able to ren debug mode (unless it is remote debug).
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Mon, Jul 25, 2022 at 11:09 PM hitesh prajapati <
>>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> No. Its from intellij's configuration.
>>>>>>>>>>>
>>>>>>>>>>> But gradlew build and gradlew idea from terminal or command
>>>>>>>>>>> prompt.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Tue, 26 Jul 2022, 09:37 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> By run gradlew bootRun you don't mean using the intelliJ
>>>>>>>>>>>> terminal?
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks, let me try those steps.
>>>>>>>>>>>>
>>>>>>>>>>>> Regards,
>>>>>>>>>>>> Moses
>>>>>>>>>>>>
>>>>>>>>>>>> On Mon, Jul 25, 2022 at 11:03 PM hitesh prajapati <
>>>>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Yes. I mean i run gradlew booRun from intellij.
>>>>>>>>>>>>>
>>>>>>>>>>>>> But before that
>>>>>>>>>>>>>
>>>>>>>>>>>>> First i do gradlew build and gradlew idea.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Then once you open the fineract in Intellij idea, please
>>>>>>>>>>>>> select correct JDK for the module. and after that select correct JDK in
>>>>>>>>>>>>> intellij gradle settings
>>>>>>>>>>>>>
>>>>>>>>>>>>> After all these steps, you should be able to run bootRun from
>>>>>>>>>>>>> intellij. I hope this helps.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>> Hitesh
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tue, 26 Jul 2022, 08:43 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Is anyone running fineract with intellij?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Moses Kalema*
>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>
>>>>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Moses Kalema*
>>>>>> *"My Heart is in The Work"*
>>>>>>
>>>>>
>>>>
>>>> --
>>>> *Moses Kalema*
>>>> *"My Heart is in The Work"*
>>>>
>>>

Re: Run with IntelliJ

Posted by Ádám Sághy <ad...@gmail.com>.
Hi

  

Hard to tell because i am working on mac and was not faced with this issues so
far.

  

We can gather a couple ppl with windows, linux and mac and ask them to try out
the spotless plugin on the same codebase and check the outcome.

  

However the autoformatting by the IDE could be the source of the issue for
sure. I would give a try to disable any formatting action on saving a file.

  

Also some of the git configuration could be source of

problem too (like: line ending configuration)

  

Regards

Adam

  

Sent from my iPhone

  

> On 15 Oct 2022, at 10:19, Aleksandar Vidakovic <ch...@monkeysintown.com>
> wrote:  
>  
>

> 
>
> Hi Adam,
>
>  
>
>
> ... could it be that this is a Windows specific problem? "spotlessApply"
> (which I always run before submitting PRs) does nothing when I run it on my
> machine (Ubuntu Linux)... no complaints, nothing.
>
>  
>
>
> I first thought that this is related to the new custom module concept I just
> added... but no... the complaint is about a wrongly formatted build.gradle
> file in fineract-doc... I ran "spotlessApply" also specifically on that
> module, no changes formatted... my local builds and the ones on latest PRs
> are also not complaining.
>
>  
>
>
> Could it be that the dev has an editor that e. g. automatically "fixes" the
> line breaks to Windows CRLF... aka LF (character : \n, Unix) vs CRLF
> (character : \r\n, Windows)?
>
>  
>
>
> Please let me know if this problem persists for more devs...
>
>  
>
>
> On Sat, Oct 15, 2022 at 9:42 AM Aleksandar Vidakovic
> <[cheetah@monkeysintown.com](mailto:cheetah@monkeysintown.com)> wrote:  
>
>

>> ... thanks Adam... will fix right now... and I know why it didn't show up
during gh actions builds .. will fix that too.

>>

>>  
>
>>

>> On Sat, 15 Oct 2022, 09:05 Ádám Sághy,
<[adamsaghy@gmail.com](mailto:adamsaghy@gmail.com)> wrote:  
>
>>

>>> Dear Alexander,

>>>

>>>  
>
>>>

>>> Based on the attached log there are checkstyle errors in your code. Please
run the following command to fix it automatically:

>>>

>>>  
>
>>>

>>> ./gradlew spotlessApply

>>>

>>>  
>
>>>

>>> Regards

>>>

>>> Adam

>>>

>>>  
>  
>
>>>

>>> Sent from my iPhone

>>>

>>>  
>
>>>

>>>> On 15 Oct 2022, at 03:55, Nana Quame Alexander
<[quamelexiz@gmail.com](mailto:quamelexiz@gmail.com)> wrote:  
>  
>
>>>

>>>> 

>>>>

>>>> Hi Hitesh,

>>>>

>>>>  
>
>>>>

>>>>  
>
>>>>

>>>> I have been trying to set up fineract for dev with intelliJ however I
keep running into the issues attached.  
> I have tried the steps above as well but I get back to the same challenges.  
> I would be grateful if anyone could be of assistance.  
>  
>
>>>>

>>>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> .\gradlew build  
> Could not open the public key ring.  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Unknown file extension: custom\acme\loan\starter\src\main\resources\META-
> INF\spring.factories  
> Unknown file extension: custom\acme\note\starter\src\main\resources\META-
> INF\spring.factories
>>>>

>>>>  
> FAILURE: Build failed with an exception.  
>  
> * What went wrong:  
> Execution failed for task ':fineract-doc:spotlessGroovyGradleCheck'.  
> > The following files had format violations:  
>       build.gradle  
>           @@ -1,121 +1,121 @@  
>           -/**\r\n  
>           \- * Licensed to the Apache Software Foundation (ASF) under
> one\r\n  
>           \- * or more contributor license agreements. See the NOTICE
> file\r\n  
>           \- * distributed with this work for additional information\r\n  
>           \- * regarding copyright ownership. The ASF licenses this file\r\n  
>           \- * to you under the Apache License, Version 2.0 (the\r\n  
>           \- * "License"); you may not use this file except in
> compliance\r\n  
>           \- * with the License. You may obtain a copy of the License at\r\n  
>           \- *\r\n  
>           \- *
> [http://www.apache.org/licenses/LICENSE-2.0\r\n](http://www.apache.org/licenses/LICENSE-2.0%5Cr%5Cn)  
>           \- *\r\n  
>           \- * Unless required by applicable law or agreed to in
> writing,\r\n  
>           \- * software distributed under the License is distributed on
> an\r\n  
>           \- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n  
>           \- * KIND, either express or implied. See the License for the\r\n  
>           \- * specific language governing permissions and limitations\r\n  
>           \- * under the License.\r\n  
>           \- */\r\n  
>           -apply plugin: 'org.asciidoctor.jvm.convert'\r\n  
>           -apply plugin: 'org.asciidoctor.jvm.pdf'\r\n  
>           -apply plugin: 'org.asciidoctor.jvm.revealjs'\r\n  
>           -// apply plugin: 'org.asciidoctor.jvm.epub'\r\n  
>           -// apply plugin: 'org.asciidoctor.kindlegen.base'\r\n  
>           -\r\n  
>           -asciidoctorj {\r\n  
>           \-    version = '2.5.3'\r\n  
>           -\r\n  
>           \-    attributes = [\r\n  
>           \-        version: "${project.version}",\r\n  
>           \-        generated: "${buildDir}/generated/asciidoc",\r\n  
>           \-        imagesdir: "${projectDir}/src/docs/en/images",\r\n  
>           \-        diagramsdir: "${projectDir}/src/docs/en/diagrams",\r\n  
>           \-        years: '2015-2022',\r\n  
>           \-        revnumber: "${project.version}".toString(),\r\n  
>           \-        rootdir: "${rootDir}".toString(),\r\n  
>           \-        baseurl:
> '[fineract.apache.org](http://fineract.apache.org)',\r\n  
>           \-    ]\r\n  
>           -\r\n  
>           \-    modules {\r\n  
>           \-        pdf.version '1.6.2'\r\n  
>           \-        diagram.version '2.2.1'\r\n  
>           \-        epub.version '1.5.1'\r\n  
>           \-        revealjs.version '4.1.0'\r\n  
>           \-    }\r\n  
>           -\r\n  
>           \-    fatalWarnings ~/include file not found|missing callout|image
> to embed not found or not readable/\r\n  
>           \-    fatalWarnings missingIncludes()\r\n  
>           -}\r\n  
>       ... (194 more lines that didn't fit)  
>   Run 'gradlew.bat :fineract-doc:spotlessApply' to fix these violations.  
>  
> * Try:  
> > Run with --stacktrace option to get the stack trace.  
> > Run with --info or --debug option to get more log output.  
> > Run with --scan to get full insights.  
>  
> * Get more help at <https://help.gradle.org>  
>  
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 8.0.  
>  
> You can use '--warning-mode all' to show the individual deprecation warnings
> and determine if they come from your own scripts or plugins.  
>  
> See
> <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>  
>  
> BUILD FAILED in 15s  
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>  
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> java -version  
> java version "18.0.2.1" 2022-08-18  
> Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)  
> Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)  
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>  
>  
>
>>>>

>>>>  
>
>>>>

>>>> On Fri, Aug 5, 2022 at 9:43 PM Moses Kalema
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>>

>>>>> Hi Hitesh,  
>
>>>>>

>>>>>  
>
>>>>>

>>>>> I have successfully been able to run and debug in intelliJ.

>>>>>

>>>>> Thank you for your guidance. It is just perfect incase anyone else needs
to do the same thing.

>>>>>

>>>>>  
>
>>>>>

>>>>> Best Regards,

>>>>>

>>>>> Moses

>>>>>

>>>>>  
>
>>>>>

>>>>> On Fri, Aug 5, 2022 at 9:42 AM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>

>>>>>> Hi Moses,

>>>>>>

>>>>>>  
>
>>>>>>

>>>>>> I haven't tried running a test. I skip tests with gradlew -x test

>>>>>>

>>>>>>  
>
>>>>>>

>>>>>> On Fri, Aug 5, 2022 at 1:09 AM Moses Kalema
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>>>>

>>>>>>> Hi Hitesh,  
>
>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>> Trying to follow your steps but i get failure on ./gradlew build on
this task twofactor-tests:cargoStartLocal . Did you get anything like this?

>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>> This is the stack trace

>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>> Execution failed for task ':twofactor-tests:cargoStartLocal'.  
> > org.codehaus.cargo.container.ContainerException: Failed to create a Tomcat
> 9.x standalone configuration: File
> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-
> users.xml does not contain replacement key @tomcat.users@  
>  
> * Exception is:  
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
> ':twofactor-tests:cargoStartLocal'.  
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)  
>         at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)  
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)  
>         at
> org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)  
> Caused by: : org.codehaus.cargo.container.ContainerException: Failed to
> create a Tomcat 9.x standalone configuration: File
> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-
> users.xml does not contain replacement key @tomcat.users@  
>         at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)  
>         at
> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:90)  
>         at
> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:117)  
>         at
> com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction(LocalCargoContainerTask.groovy:191)  
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)  
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)  
>         at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
>         at
> com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask$_start_closure2.doCall(Abstrac  
>
>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>> On Tue, Jul 26, 2022 at 12:54 AM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>>>

>>>>>>>> Hi All,

>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>> The first time without specifying spring.datasource.hikari.jdbcUrl as
an environment variable, I was getting a bean creation exception for
hikariTenanatDataSource.

>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>> Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'hikariTenantDataSource' defined in class path
resource
[org/apache/fineract/infrastructure/core/config/HikariCpConfig.class]: Bean
instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw
exception; nested exception is java.lang.IllegalArgumentException: dataSource
or dataSourceClassName or jdbcUrl is required.  
>
>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>> First of all this should not happen at that first place as
application.properties has
spring.datasource.hikari.jdbcUrl=${FINERACT_HIKARI_JDBC_URL:jdbc:mariadb://localhost:3306/fineract_tenants}

>>>>>>>>  
>>>>>>>>  
>>>>>>>>     So, I thought Intellij was having some problem picking up these
properties, so I passed it as an environment variable and it worked.

>>>>>>>>  
>>>>>>>>  
>>>>>>>>  
>>>>>>>>     >

>>>>>>>>  
>>>>>>>>  
>>>>>>>>     And once it runs successfully, now if I remove that property from
Intellij's configuration, my fineract still works. That's the surprise.

>>>>>>>>  
>>>>>>>>  
>>>>>>>>  
>>>>>>>>     >

>>>>>>>>  
>>>>>>>>  
>>>>>>>>     Thanks,

>>>>>>>>  
>>>>>>>>  
>>>>>>>>     Hitesh

>>>>>>>>  
>>>>>>>>  
>>>>>>>>  
>>>>>>>>     >

>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>> On Tue, Jul 26, 2022 at 10:58 AM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>>>>

>>>>>>>>> Hi Moses Kalema,

>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>> Here is my debugger running. Just note that in debug configuration ,
I need to pass spring.datasource.hikari.jdbcUrl as an environment variable as
it is not picking up from application.properties.

>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>> On Tue, Jul 26, 2022 at 10:03 AM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>>>>>

>>>>>>>>>> Hi,

>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>> Here is my Intellij's configuration to run fineract from it

>>>>>>>>>>

>>>>>>>>>>  and i am able to run as debug mode.

>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>> On Tue, 26 Jul 2022, 09:46 Moses Kalema,
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>>>>>>>>

>>>>>>>>>>> In that case, you are basically using intelliJ as an editor but
running an application with a command line. For example, you wouldn't be able
to ren debug mode (unless it is remote debug).

>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>> On Mon, Jul 25, 2022 at 11:09 PM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>>>>>>>

>>>>>>>>>>>> No. Its from intellij's configuration.

>>>>>>>>>>>>

>>>>>>>>>>>>  
>
>>>>>>>>>>>>

>>>>>>>>>>>> But gradlew build and gradlew idea from terminal or command
prompt.  
>
>>>>>>>>>>>>

>>>>>>>>>>>>  
>
>>>>>>>>>>>>

>>>>>>>>>>>>  
>
>>>>>>>>>>>>

>>>>>>>>>>>>  
>
>>>>>>>>>>>>

>>>>>>>>>>>>  
>
>>>>>>>>>>>>

>>>>>>>>>>>> On Tue, 26 Jul 2022, 09:37 Moses Kalema,
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>>>>>>>>>>

>>>>>>>>>>>>> By run gradlew bootRun you don't mean using the intelliJ
terminal?

>>>>>>>>>>>>>

>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>

>>>>>>>>>>>>> Thanks, let me try those steps.

>>>>>>>>>>>>>

>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>

>>>>>>>>>>>>> Regards,

>>>>>>>>>>>>>

>>>>>>>>>>>>> Moses

>>>>>>>>>>>>>

>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>

>>>>>>>>>>>>> On Mon, Jul 25, 2022 at 11:03 PM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>>>>>>>>>

>>>>>>>>>>>>>> Yes. I mean i run gradlew booRun from intellij.

>>>>>>>>>>>>>>

>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>

>>>>>>>>>>>>>> But before that

>>>>>>>>>>>>>>

>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>

>>>>>>>>>>>>>> First i do gradlew build and gradlew idea.

>>>>>>>>>>>>>>

>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>

>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>

>>>>>>>>>>>>>> Then once you open the fineract in Intellij idea, please select
correct JDK for the module. and after that select correct JDK in intellij
gradle settings

>>>>>>>>>>>>>>

>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>

>>>>>>>>>>>>>> After all these steps, you should be able to run bootRun from
intellij. I hope this helps.

>>>>>>>>>>>>>>

>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>

>>>>>>>>>>>>>> Cheers,

>>>>>>>>>>>>>>

>>>>>>>>>>>>>> Hitesh

>>>>>>>>>>>>>>

>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>

>>>>>>>>>>>>>> On Tue, 26 Jul 2022, 08:43 Moses Kalema,
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>>>>>>>>>>>>

>>>>>>>>>>>>>>> Hello,  
>
>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>> Is anyone running fineract with intellij?

>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>> \--  
>
>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>> **Moses Kalema**

>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>>  **"My Heart is in The Work"**

>>>>>>>>>>>>>

>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>

>>>>>>>>>>>>>  
>
>>>>>>>>>>>>>

>>>>>>>>>>>>> \--  
>
>>>>>>>>>>>>>

>>>>>>>>>>>>> **Moses Kalema**

>>>>>>>>>>>>>

>>>>>>>>>>>>>  **"My Heart is in The Work"**

>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>> \--  
>
>>>>>>>>>>>

>>>>>>>>>>> **Moses Kalema**

>>>>>>>>>>>

>>>>>>>>>>>  **"My Heart is in The Work"**

>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>> \--  
>
>>>>>>>

>>>>>>> **Moses Kalema**

>>>>>>>

>>>>>>>  **"My Heart is in The Work"**

>>>>>

>>>>>  
>
>>>>>

>>>>>  
>
>>>>>

>>>>> \--  
>
>>>>>

>>>>> **Moses Kalema**

>>>>>

>>>>>  **"My Heart is in The Work"**


Re: Run with IntelliJ

Posted by ronald munjoma <si...@gmail.com>.
Hi Aleksandar,

On Sat, 15 Oct 2022 at 10:19, Aleksandar Vidakovic <
cheetah@monkeysintown.com> wrote:

> Hi Adam,
>
> ... could it be that this is a Windows specific problem? "spotlessApply"
> (which I always run before submitting PRs) does nothing when I run it on my
> machine (Ubuntu Linux)... no complaints, nothing.
>
> I first thought that this is related to the new custom module concept I
> just added... but no... the complaint is about a wrongly formatted
> build.gradle file in fineract-doc... I ran "spotlessApply"
>

From Moses' stack trace the correct command should be:
      ... (194 more lines that didn't fit)
  Run '*gradlew.bat :fineract-doc:spotlessApply*' to fix these violations.

I have not tested it though.

Best Ronald

also specifically on that module, no changes formatted... my local builds
> and the ones on latest PRs are also not complaining.
>
> Could it be that the dev has an editor that e. g. automatically "fixes"
> the line breaks to Windows CRLF... aka LF (character : \n, Unix) vs CRLF
> (character : \r\n, Windows)?
>
> Please let me know if this problem persists for more devs...
>
> On Sat, Oct 15, 2022 at 9:42 AM Aleksandar Vidakovic <
> cheetah@monkeysintown.com> wrote:
>
>> ... thanks Adam... will fix right now... and I know why it didn't show up
>> during gh actions builds .. will fix that too.
>>
>> On Sat, 15 Oct 2022, 09:05 Ádám Sághy, <ad...@gmail.com> wrote:
>>
>>> Dear Alexander,
>>>
>>> Based on the attached log there are checkstyle errors in your code.
>>> Please run the following command to fix it automatically:
>>>
>>> ./gradlew spotlessApply
>>>
>>> Regards
>>> Adam
>>>
>>>
>>> Sent from my iPhone
>>>
>>> On 15 Oct 2022, at 03:55, Nana Quame Alexander <qu...@gmail.com>
>>> wrote:
>>>
>>> 
>>> Hi Hitesh,
>>>
>>>
>>> I have been trying to set up fineract for dev with intelliJ however I
>>> keep running into the issues attached.
>>> I have tried the steps above as well but I get back to the same
>>> challenges.
>>> I would be grateful if anyone could be of assistance.
>>>
>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> .\gradlew build
>>>> Could not open the public key ring.
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>>> Errors occurred while build effective model from
>>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>>         'dependencies.dependency.artifactId' for
>>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>> Unknown file extension:
>>>> custom\acme\loan\starter\src\main\resources\META-INF\spring.factories
>>>> Unknown file extension:
>>>> custom\acme\note\starter\src\main\resources\META-INF\spring.factories
>>>
>>>
>>> FAILURE: Build failed with an exception.
>>>
>>> * What went wrong:
>>> Execution failed for task ':fineract-doc:spotlessGroovyGradleCheck'.
>>> > The following files had format violations:
>>>       build.gradle
>>>           @@ -1,121 +1,121 @@
>>>           -/**\r\n
>>>           - * Licensed to the Apache Software Foundation (ASF) under
>>> one\r\n
>>>           - * or more contributor license agreements. See the NOTICE
>>> file\r\n
>>>           - * distributed with this work for additional information\r\n
>>>           - * regarding copyright ownership. The ASF licenses this
>>> file\r\n
>>>           - * to you under the Apache License, Version 2.0 (the\r\n
>>>           - * "License"); you may not use this file except in
>>> compliance\r\n
>>>           - * with the License. You may obtain a copy of the License
>>> at\r\n
>>>           - *\r\n
>>>           - * http://www.apache.org/licenses/LICENSE-2.0\r\n
>>>           - *\r\n
>>>           - * Unless required by applicable law or agreed to in
>>> writing,\r\n
>>>           - * software distributed under the License is distributed on
>>> an\r\n
>>>           - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n
>>>           - * KIND, either express or implied. See the License for
>>> the\r\n
>>>           - * specific language governing permissions and limitations\r\n
>>>           - * under the License.\r\n
>>>           - */\r\n
>>>           -apply plugin: 'org.asciidoctor.jvm.convert'\r\n
>>>           -apply plugin: 'org.asciidoctor.jvm.pdf'\r\n
>>>           -apply plugin: 'org.asciidoctor.jvm.revealjs'\r\n
>>>           -// apply plugin: 'org.asciidoctor.jvm.epub'\r\n
>>>           -// apply plugin: 'org.asciidoctor.kindlegen.base'\r\n
>>>           -\r\n
>>>           -asciidoctorj {\r\n
>>>           -    version = '2.5.3'\r\n
>>>           -\r\n
>>>           -    attributes = [\r\n
>>>           -        version: "${project.version}",\r\n
>>>           -        generated: "${buildDir}/generated/asciidoc",\r\n
>>>           -        imagesdir: "${projectDir}/src/docs/en/images",\r\n
>>>           -        diagramsdir: "${projectDir}/src/docs/en/diagrams",\r\n
>>>           -        years: '2015-2022',\r\n
>>>           -        revnumber: "${project.version}".toString(),\r\n
>>>           -        rootdir: "${rootDir}".toString(),\r\n
>>>           -        baseurl: 'fineract.apache.org',\r\n
>>>           -    ]\r\n
>>>           -\r\n
>>>           -    modules {\r\n
>>>           -        pdf.version '1.6.2'\r\n
>>>           -        diagram.version '2.2.1'\r\n
>>>           -        epub.version '1.5.1'\r\n
>>>           -        revealjs.version '4.1.0'\r\n
>>>           -    }\r\n
>>>           -\r\n
>>>           -    fatalWarnings ~/include file not found|missing
>>> callout|image to embed not found or not readable/\r\n
>>>           -    fatalWarnings missingIncludes()\r\n
>>>           -}\r\n
>>>       ... (194 more lines that didn't fit)
>>>   Run 'gradlew.bat :fineract-doc:spotlessApply' to fix these violations.
>>>
>>> * Try:
>>> > Run with --stacktrace option to get the stack trace.
>>> > Run with --info or --debug option to get more log output.
>>> > Run with --scan to get full insights.
>>>
>>> * Get more help at https://help.gradle.org
>>>
>>> Deprecated Gradle features were used in this build, making it
>>> incompatible with Gradle 8.0.
>>>
>>> You can use '--warning-mode all' to show the individual deprecation
>>> warnings and determine if they come from your own scripts or plugins.
>>>
>>> See
>>> https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
>>>
>>> BUILD FAILED in 15s
>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> java -version
>>> java version "18.0.2.1" 2022-08-18
>>> Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
>>> Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode,
>>> sharing)
>>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>>>
>>>
>>> On Fri, Aug 5, 2022 at 9:43 PM Moses Kalema <mk...@gmail.com> wrote:
>>>
>>>> Hi Hitesh,
>>>>
>>>> I have successfully been able to run and debug in intelliJ.
>>>> Thank you for your guidance. It is just perfect incase anyone else
>>>> needs to do the same thing.
>>>>
>>>> Best Regards,
>>>> Moses
>>>>
>>>> On Fri, Aug 5, 2022 at 9:42 AM hitesh prajapati <
>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>
>>>>> Hi Moses,
>>>>>
>>>>> I haven't tried running a test. I skip tests with gradlew -x test
>>>>>
>>>>> On Fri, Aug 5, 2022 at 1:09 AM Moses Kalema <mk...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Hitesh,
>>>>>>
>>>>>> Trying to follow your steps but i get failure on ./gradlew build on
>>>>>> this task twofactor-tests:cargoStartLocal . Did you get anything like this?
>>>>>>
>>>>>> This is the stack trace
>>>>>>
>>>>>> Execution failed for task ':twofactor-tests:cargoStartLocal'.
>>>>>> > org.codehaus.cargo.container.ContainerException: Failed to create a
>>>>>> Tomcat 9.x standalone configuration: File
>>>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>>>> does not contain replacement key @tomcat.users@
>>>>>>
>>>>>> * Exception is:
>>>>>> org.gradle.api.tasks.TaskExecutionException: Execution failed for
>>>>>> task ':twofactor-tests:cargoStartLocal'.
>>>>>>         at
>>>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
>>>>>>         at
>>>>>> org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
>>>>>>         at
>>>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
>>>>>>         at
>>>>>> org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
>>>>>> Caused by: : org.codehaus.cargo.container.ContainerException: Failed
>>>>>> to create a Tomcat 9.x standalone configuration: File
>>>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>>>> does not contain replacement key @tomcat.users@
>>>>>>         at
>>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)
>>>>>>         at
>>>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:90)
>>>>>>         at
>>>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:117)
>>>>>>         at
>>>>>> com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction(LocalCargoContainerTask.groovy:191)
>>>>>>         at
>>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>> Method)
>>>>>>         at
>>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>>>>>>         at
>>>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>         at
>>>>>> com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask$_start_closure2.doCall(Abstrac
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Jul 26, 2022 at 12:54 AM hitesh prajapati <
>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> The first time without specifying spring.datasource.hikari.jdbcUrl
>>>>>>> as an environment variable, I was getting a bean creation exception for
>>>>>>> hikariTenanatDataSource.
>>>>>>>
>>>>>>> Caused by: org.springframework.beans.factory.BeanCreationException:
>>>>>>> Error creating bean with name 'hikariTenantDataSource' defined in class
>>>>>>> path resource
>>>>>>> [org/apache/fineract/infrastructure/core/config/HikariCpConfig.class]: Bean
>>>>>>> instantiation via factory method failed; nested exception is
>>>>>>> org.springframework.beans.BeanInstantiationException: Failed to instantiate
>>>>>>> [javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw
>>>>>>> exception; nested exception is java.lang.IllegalArgumentException:
>>>>>>> dataSource or dataSourceClassName or jdbcUrl is required.
>>>>>>>
>>>>>>> First of all this should not happen at that first place as
>>>>>>> application.properties has
>>>>>>> spring.datasource.hikari.jdbcUrl=${FINERACT_HIKARI_JDBC_URL:jdbc:mariadb://localhost:3306/fineract_tenants}
>>>>>>>
>>>>>>> So, I thought Intellij was having some problem picking up these properties, so I passed it as an environment variable and it worked.
>>>>>>>
>>>>>>>
>>>>>>> And once it runs successfully, now if I remove that property from Intellij's configuration, my fineract still works. That's the surprise.
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Hitesh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Jul 26, 2022 at 10:58 AM hitesh prajapati <
>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Moses Kalema,
>>>>>>>>
>>>>>>>> Here is my debugger running. Just note that in debug configuration
>>>>>>>> , I need to pass spring.datasource.hikari.jdbcUrl as an environment
>>>>>>>> variable as it is not picking up from application.properties.
>>>>>>>>
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Jul 26, 2022 at 10:03 AM hitesh prajapati <
>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> Here is my Intellij's configuration to run fineract from it
>>>>>>>>>  and i am able to run as debug mode.
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>> On Tue, 26 Jul 2022, 09:46 Moses Kalema, <mk...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> In that case, you are basically using intelliJ as an editor but
>>>>>>>>>> running an application with a command line. For example, you wouldn't be
>>>>>>>>>> able to ren debug mode (unless it is remote debug).
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Mon, Jul 25, 2022 at 11:09 PM hitesh prajapati <
>>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> No. Its from intellij's configuration.
>>>>>>>>>>>
>>>>>>>>>>> But gradlew build and gradlew idea from terminal or command
>>>>>>>>>>> prompt.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Tue, 26 Jul 2022, 09:37 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> By run gradlew bootRun you don't mean using the intelliJ
>>>>>>>>>>>> terminal?
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks, let me try those steps.
>>>>>>>>>>>>
>>>>>>>>>>>> Regards,
>>>>>>>>>>>> Moses
>>>>>>>>>>>>
>>>>>>>>>>>> On Mon, Jul 25, 2022 at 11:03 PM hitesh prajapati <
>>>>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Yes. I mean i run gradlew booRun from intellij.
>>>>>>>>>>>>>
>>>>>>>>>>>>> But before that
>>>>>>>>>>>>>
>>>>>>>>>>>>> First i do gradlew build and gradlew idea.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Then once you open the fineract in Intellij idea, please
>>>>>>>>>>>>> select correct JDK for the module. and after that select correct JDK in
>>>>>>>>>>>>> intellij gradle settings
>>>>>>>>>>>>>
>>>>>>>>>>>>> After all these steps, you should be able to run bootRun from
>>>>>>>>>>>>> intellij. I hope this helps.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>> Hitesh
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tue, 26 Jul 2022, 08:43 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Is anyone running fineract with intellij?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Moses Kalema*
>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>
>>>>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Moses Kalema*
>>>>>> *"My Heart is in The Work"*
>>>>>>
>>>>>
>>>>
>>>> --
>>>> *Moses Kalema*
>>>> *"My Heart is in The Work"*
>>>>
>>>

-- 
Best and Regards
Ronald Munjoma
+263 775 625 283


[image: --]

Ronald Munjoma
[image: https://]about.me/ronaldmunjoma
<https://about.me/ronaldmunjoma?promo=email_sig>

Re: Run with IntelliJ

Posted by Aleksandar Vidakovic <ch...@monkeysintown.com>.
Hi Adam,

... could it be that this is a Windows specific problem? "spotlessApply"
(which I always run before submitting PRs) does nothing when I run it on my
machine (Ubuntu Linux)... no complaints, nothing.

I first thought that this is related to the new custom module concept I
just added... but no... the complaint is about a wrongly formatted
build.gradle file in fineract-doc... I ran "spotlessApply" also
specifically on that module, no changes formatted... my local builds and
the ones on latest PRs are also not complaining.

Could it be that the dev has an editor that e. g. automatically "fixes" the
line breaks to Windows CRLF... aka LF (character : \n, Unix) vs CRLF
(character : \r\n, Windows)?

Please let me know if this problem persists for more devs...

On Sat, Oct 15, 2022 at 9:42 AM Aleksandar Vidakovic <
cheetah@monkeysintown.com> wrote:

> ... thanks Adam... will fix right now... and I know why it didn't show up
> during gh actions builds .. will fix that too.
>
> On Sat, 15 Oct 2022, 09:05 Ádám Sághy, <ad...@gmail.com> wrote:
>
>> Dear Alexander,
>>
>> Based on the attached log there are checkstyle errors in your code.
>> Please run the following command to fix it automatically:
>>
>> ./gradlew spotlessApply
>>
>> Regards
>> Adam
>>
>>
>> Sent from my iPhone
>>
>> On 15 Oct 2022, at 03:55, Nana Quame Alexander <qu...@gmail.com>
>> wrote:
>>
>> 
>> Hi Hitesh,
>>
>>
>> I have been trying to set up fineract for dev with intelliJ however I
>> keep running into the issues attached.
>> I have tried the steps above as well but I get back to the same
>> challenges.
>> I would be grateful if anyone could be of assistance.
>>
>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> .\gradlew build
>>> Could not open the public key ring.
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>>> Errors occurred while build effective model from
>>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>>         'dependencies.dependency.artifactId' for
>>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>> Unknown file extension:
>>> custom\acme\loan\starter\src\main\resources\META-INF\spring.factories
>>> Unknown file extension:
>>> custom\acme\note\starter\src\main\resources\META-INF\spring.factories
>>
>>
>> FAILURE: Build failed with an exception.
>>
>> * What went wrong:
>> Execution failed for task ':fineract-doc:spotlessGroovyGradleCheck'.
>> > The following files had format violations:
>>       build.gradle
>>           @@ -1,121 +1,121 @@
>>           -/**\r\n
>>           - * Licensed to the Apache Software Foundation (ASF) under
>> one\r\n
>>           - * or more contributor license agreements. See the NOTICE
>> file\r\n
>>           - * distributed with this work for additional information\r\n
>>           - * regarding copyright ownership. The ASF licenses this
>> file\r\n
>>           - * to you under the Apache License, Version 2.0 (the\r\n
>>           - * "License"); you may not use this file except in
>> compliance\r\n
>>           - * with the License. You may obtain a copy of the License
>> at\r\n
>>           - *\r\n
>>           - * http://www.apache.org/licenses/LICENSE-2.0\r\n
>>           - *\r\n
>>           - * Unless required by applicable law or agreed to in
>> writing,\r\n
>>           - * software distributed under the License is distributed on
>> an\r\n
>>           - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n
>>           - * KIND, either express or implied. See the License for the\r\n
>>           - * specific language governing permissions and limitations\r\n
>>           - * under the License.\r\n
>>           - */\r\n
>>           -apply plugin: 'org.asciidoctor.jvm.convert'\r\n
>>           -apply plugin: 'org.asciidoctor.jvm.pdf'\r\n
>>           -apply plugin: 'org.asciidoctor.jvm.revealjs'\r\n
>>           -// apply plugin: 'org.asciidoctor.jvm.epub'\r\n
>>           -// apply plugin: 'org.asciidoctor.kindlegen.base'\r\n
>>           -\r\n
>>           -asciidoctorj {\r\n
>>           -    version = '2.5.3'\r\n
>>           -\r\n
>>           -    attributes = [\r\n
>>           -        version: "${project.version}",\r\n
>>           -        generated: "${buildDir}/generated/asciidoc",\r\n
>>           -        imagesdir: "${projectDir}/src/docs/en/images",\r\n
>>           -        diagramsdir: "${projectDir}/src/docs/en/diagrams",\r\n
>>           -        years: '2015-2022',\r\n
>>           -        revnumber: "${project.version}".toString(),\r\n
>>           -        rootdir: "${rootDir}".toString(),\r\n
>>           -        baseurl: 'fineract.apache.org',\r\n
>>           -    ]\r\n
>>           -\r\n
>>           -    modules {\r\n
>>           -        pdf.version '1.6.2'\r\n
>>           -        diagram.version '2.2.1'\r\n
>>           -        epub.version '1.5.1'\r\n
>>           -        revealjs.version '4.1.0'\r\n
>>           -    }\r\n
>>           -\r\n
>>           -    fatalWarnings ~/include file not found|missing
>> callout|image to embed not found or not readable/\r\n
>>           -    fatalWarnings missingIncludes()\r\n
>>           -}\r\n
>>       ... (194 more lines that didn't fit)
>>   Run 'gradlew.bat :fineract-doc:spotlessApply' to fix these violations.
>>
>> * Try:
>> > Run with --stacktrace option to get the stack trace.
>> > Run with --info or --debug option to get more log output.
>> > Run with --scan to get full insights.
>>
>> * Get more help at https://help.gradle.org
>>
>> Deprecated Gradle features were used in this build, making it
>> incompatible with Gradle 8.0.
>>
>> You can use '--warning-mode all' to show the individual deprecation
>> warnings and determine if they come from your own scripts or plugins.
>>
>> See
>> https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
>>
>> BUILD FAILED in 15s
>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> java -version
>> java version "18.0.2.1" 2022-08-18
>> Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
>> Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode,
>> sharing)
>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>>
>>
>> On Fri, Aug 5, 2022 at 9:43 PM Moses Kalema <mk...@gmail.com> wrote:
>>
>>> Hi Hitesh,
>>>
>>> I have successfully been able to run and debug in intelliJ.
>>> Thank you for your guidance. It is just perfect incase anyone else needs
>>> to do the same thing.
>>>
>>> Best Regards,
>>> Moses
>>>
>>> On Fri, Aug 5, 2022 at 9:42 AM hitesh prajapati <
>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>
>>>> Hi Moses,
>>>>
>>>> I haven't tried running a test. I skip tests with gradlew -x test
>>>>
>>>> On Fri, Aug 5, 2022 at 1:09 AM Moses Kalema <mk...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Hitesh,
>>>>>
>>>>> Trying to follow your steps but i get failure on ./gradlew build on
>>>>> this task twofactor-tests:cargoStartLocal . Did you get anything like this?
>>>>>
>>>>> This is the stack trace
>>>>>
>>>>> Execution failed for task ':twofactor-tests:cargoStartLocal'.
>>>>> > org.codehaus.cargo.container.ContainerException: Failed to create a
>>>>> Tomcat 9.x standalone configuration: File
>>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>>> does not contain replacement key @tomcat.users@
>>>>>
>>>>> * Exception is:
>>>>> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
>>>>> ':twofactor-tests:cargoStartLocal'.
>>>>>         at
>>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
>>>>>         at
>>>>> org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
>>>>>         at
>>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
>>>>>         at
>>>>> org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
>>>>> Caused by: : org.codehaus.cargo.container.ContainerException: Failed
>>>>> to create a Tomcat 9.x standalone configuration: File
>>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>>> does not contain replacement key @tomcat.users@
>>>>>         at
>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)
>>>>>         at
>>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:90)
>>>>>         at
>>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:117)
>>>>>         at
>>>>> com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction(LocalCargoContainerTask.groovy:191)
>>>>>         at
>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>> Method)
>>>>>         at
>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>>>>>         at
>>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>         at
>>>>> com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask$_start_closure2.doCall(Abstrac
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Jul 26, 2022 at 12:54 AM hitesh prajapati <
>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> The first time without specifying spring.datasource.hikari.jdbcUrl as
>>>>>> an environment variable, I was getting a bean creation exception for
>>>>>> hikariTenanatDataSource.
>>>>>>
>>>>>> Caused by: org.springframework.beans.factory.BeanCreationException:
>>>>>> Error creating bean with name 'hikariTenantDataSource' defined in class
>>>>>> path resource
>>>>>> [org/apache/fineract/infrastructure/core/config/HikariCpConfig.class]: Bean
>>>>>> instantiation via factory method failed; nested exception is
>>>>>> org.springframework.beans.BeanInstantiationException: Failed to instantiate
>>>>>> [javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw
>>>>>> exception; nested exception is java.lang.IllegalArgumentException:
>>>>>> dataSource or dataSourceClassName or jdbcUrl is required.
>>>>>>
>>>>>> First of all this should not happen at that first place as
>>>>>> application.properties has
>>>>>> spring.datasource.hikari.jdbcUrl=${FINERACT_HIKARI_JDBC_URL:jdbc:mariadb://localhost:3306/fineract_tenants}
>>>>>>
>>>>>> So, I thought Intellij was having some problem picking up these properties, so I passed it as an environment variable and it worked.
>>>>>>
>>>>>>
>>>>>> And once it runs successfully, now if I remove that property from Intellij's configuration, my fineract still works. That's the surprise.
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Hitesh
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Jul 26, 2022 at 10:58 AM hitesh prajapati <
>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Moses Kalema,
>>>>>>>
>>>>>>> Here is my debugger running. Just note that in debug configuration ,
>>>>>>> I need to pass spring.datasource.hikari.jdbcUrl as an environment variable
>>>>>>> as it is not picking up from application.properties.
>>>>>>>
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Jul 26, 2022 at 10:03 AM hitesh prajapati <
>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Here is my Intellij's configuration to run fineract from it
>>>>>>>>  and i am able to run as debug mode.
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>> [image: image.png]
>>>>>>>>
>>>>>>>> On Tue, 26 Jul 2022, 09:46 Moses Kalema, <mk...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> In that case, you are basically using intelliJ as an editor but
>>>>>>>>> running an application with a command line. For example, you wouldn't be
>>>>>>>>> able to ren debug mode (unless it is remote debug).
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Mon, Jul 25, 2022 at 11:09 PM hitesh prajapati <
>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> No. Its from intellij's configuration.
>>>>>>>>>>
>>>>>>>>>> But gradlew build and gradlew idea from terminal or command
>>>>>>>>>> prompt.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, 26 Jul 2022, 09:37 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> By run gradlew bootRun you don't mean using the intelliJ
>>>>>>>>>>> terminal?
>>>>>>>>>>>
>>>>>>>>>>> Thanks, let me try those steps.
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Moses
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Jul 25, 2022 at 11:03 PM hitesh prajapati <
>>>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Yes. I mean i run gradlew booRun from intellij.
>>>>>>>>>>>>
>>>>>>>>>>>> But before that
>>>>>>>>>>>>
>>>>>>>>>>>> First i do gradlew build and gradlew idea.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Then once you open the fineract in Intellij idea, please select
>>>>>>>>>>>> correct JDK for the module. and after that select correct JDK in intellij
>>>>>>>>>>>> gradle settings
>>>>>>>>>>>>
>>>>>>>>>>>> After all these steps, you should be able to run bootRun from
>>>>>>>>>>>> intellij. I hope this helps.
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>> Hitesh
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, 26 Jul 2022, 08:43 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Is anyone running fineract with intellij?
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Moses Kalema*
>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>
>>>>>>>>
>>>>>
>>>>> --
>>>>> *Moses Kalema*
>>>>> *"My Heart is in The Work"*
>>>>>
>>>>
>>>
>>> --
>>> *Moses Kalema*
>>> *"My Heart is in The Work"*
>>>
>>

Re: Run with IntelliJ

Posted by Aleksandar Vidakovic <ch...@monkeysintown.com>.
... thanks Adam... will fix right now... and I know why it didn't show up
during gh actions builds .. will fix that too.

On Sat, 15 Oct 2022, 09:05 Ádám Sághy, <ad...@gmail.com> wrote:

> Dear Alexander,
>
> Based on the attached log there are checkstyle errors in your code. Please
> run the following command to fix it automatically:
>
> ./gradlew spotlessApply
>
> Regards
> Adam
>
>
> Sent from my iPhone
>
> On 15 Oct 2022, at 03:55, Nana Quame Alexander <qu...@gmail.com>
> wrote:
>
> 
> Hi Hitesh,
>
>
> I have been trying to set up fineract for dev with intelliJ however I keep
> running into the issues attached.
> I have tried the steps above as well but I get back to the same challenges.
> I would be grateful if anyone could be of assistance.
>
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> .\gradlew build
>> Could not open the public key ring.
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.core.expressions:3.8.200
>> Errors occurred while build effective model from
>> C:\Users\User\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:
>>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>>         'dependencies.dependency.artifactId' for
>> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
>> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
>> org.eclipse.platform:org.eclipse.swt:3.121.0
>> Unknown file extension:
>> custom\acme\loan\starter\src\main\resources\META-INF\spring.factories
>> Unknown file extension:
>> custom\acme\note\starter\src\main\resources\META-INF\spring.factories
>
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':fineract-doc:spotlessGroovyGradleCheck'.
> > The following files had format violations:
>       build.gradle
>           @@ -1,121 +1,121 @@
>           -/**\r\n
>           - * Licensed to the Apache Software Foundation (ASF) under
> one\r\n
>           - * or more contributor license agreements. See the NOTICE
> file\r\n
>           - * distributed with this work for additional information\r\n
>           - * regarding copyright ownership. The ASF licenses this file\r\n
>           - * to you under the Apache License, Version 2.0 (the\r\n
>           - * "License"); you may not use this file except in
> compliance\r\n
>           - * with the License. You may obtain a copy of the License at\r\n
>           - *\r\n
>           - * http://www.apache.org/licenses/LICENSE-2.0\r\n
>           - *\r\n
>           - * Unless required by applicable law or agreed to in
> writing,\r\n
>           - * software distributed under the License is distributed on
> an\r\n
>           - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n
>           - * KIND, either express or implied. See the License for the\r\n
>           - * specific language governing permissions and limitations\r\n
>           - * under the License.\r\n
>           - */\r\n
>           -apply plugin: 'org.asciidoctor.jvm.convert'\r\n
>           -apply plugin: 'org.asciidoctor.jvm.pdf'\r\n
>           -apply plugin: 'org.asciidoctor.jvm.revealjs'\r\n
>           -// apply plugin: 'org.asciidoctor.jvm.epub'\r\n
>           -// apply plugin: 'org.asciidoctor.kindlegen.base'\r\n
>           -\r\n
>           -asciidoctorj {\r\n
>           -    version = '2.5.3'\r\n
>           -\r\n
>           -    attributes = [\r\n
>           -        version: "${project.version}",\r\n
>           -        generated: "${buildDir}/generated/asciidoc",\r\n
>           -        imagesdir: "${projectDir}/src/docs/en/images",\r\n
>           -        diagramsdir: "${projectDir}/src/docs/en/diagrams",\r\n
>           -        years: '2015-2022',\r\n
>           -        revnumber: "${project.version}".toString(),\r\n
>           -        rootdir: "${rootDir}".toString(),\r\n
>           -        baseurl: 'fineract.apache.org',\r\n
>           -    ]\r\n
>           -\r\n
>           -    modules {\r\n
>           -        pdf.version '1.6.2'\r\n
>           -        diagram.version '2.2.1'\r\n
>           -        epub.version '1.5.1'\r\n
>           -        revealjs.version '4.1.0'\r\n
>           -    }\r\n
>           -\r\n
>           -    fatalWarnings ~/include file not found|missing
> callout|image to embed not found or not readable/\r\n
>           -    fatalWarnings missingIncludes()\r\n
>           -}\r\n
>       ... (194 more lines that didn't fit)
>   Run 'gradlew.bat :fineract-doc:spotlessApply' to fix these violations.
>
> * Try:
> > Run with --stacktrace option to get the stack trace.
> > Run with --info or --debug option to get more log output.
> > Run with --scan to get full insights.
>
> * Get more help at https://help.gradle.org
>
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 8.0.
>
> You can use '--warning-mode all' to show the individual deprecation
> warnings and determine if they come from your own scripts or plugins.
>
> See
> https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
>
> BUILD FAILED in 15s
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> java -version
> java version "18.0.2.1" 2022-08-18
> Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
> Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>
>
>
> On Fri, Aug 5, 2022 at 9:43 PM Moses Kalema <mk...@gmail.com> wrote:
>
>> Hi Hitesh,
>>
>> I have successfully been able to run and debug in intelliJ.
>> Thank you for your guidance. It is just perfect incase anyone else needs
>> to do the same thing.
>>
>> Best Regards,
>> Moses
>>
>> On Fri, Aug 5, 2022 at 9:42 AM hitesh prajapati <
>> hitesh.kams.prajapati@gmail.com> wrote:
>>
>>> Hi Moses,
>>>
>>> I haven't tried running a test. I skip tests with gradlew -x test
>>>
>>> On Fri, Aug 5, 2022 at 1:09 AM Moses Kalema <mk...@gmail.com> wrote:
>>>
>>>> Hi Hitesh,
>>>>
>>>> Trying to follow your steps but i get failure on ./gradlew build on
>>>> this task twofactor-tests:cargoStartLocal . Did you get anything like this?
>>>>
>>>> This is the stack trace
>>>>
>>>> Execution failed for task ':twofactor-tests:cargoStartLocal'.
>>>> > org.codehaus.cargo.container.ContainerException: Failed to create a
>>>> Tomcat 9.x standalone configuration: File
>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>> does not contain replacement key @tomcat.users@
>>>>
>>>> * Exception is:
>>>> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
>>>> ':twofactor-tests:cargoStartLocal'.
>>>>         at
>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
>>>>         at
>>>> org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
>>>>         at
>>>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
>>>>         at
>>>> org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
>>>> Caused by: : org.codehaus.cargo.container.ContainerException: Failed to
>>>> create a Tomcat 9.x standalone configuration: File
>>>> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-users.xml
>>>> does not contain replacement key @tomcat.users@
>>>>         at
>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)
>>>>         at
>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:90)
>>>>         at
>>>> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:117)
>>>>         at
>>>> com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction(LocalCargoContainerTask.groovy:191)
>>>>         at
>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> Method)
>>>>         at
>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>>>>         at
>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>         at
>>>> com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask$_start_closure2.doCall(Abstrac
>>>>
>>>>
>>>>
>>>> On Tue, Jul 26, 2022 at 12:54 AM hitesh prajapati <
>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> The first time without specifying spring.datasource.hikari.jdbcUrl as
>>>>> an environment variable, I was getting a bean creation exception for
>>>>> hikariTenanatDataSource.
>>>>>
>>>>> Caused by: org.springframework.beans.factory.BeanCreationException:
>>>>> Error creating bean with name 'hikariTenantDataSource' defined in class
>>>>> path resource
>>>>> [org/apache/fineract/infrastructure/core/config/HikariCpConfig.class]: Bean
>>>>> instantiation via factory method failed; nested exception is
>>>>> org.springframework.beans.BeanInstantiationException: Failed to instantiate
>>>>> [javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw
>>>>> exception; nested exception is java.lang.IllegalArgumentException:
>>>>> dataSource or dataSourceClassName or jdbcUrl is required.
>>>>>
>>>>> First of all this should not happen at that first place as
>>>>> application.properties has
>>>>> spring.datasource.hikari.jdbcUrl=${FINERACT_HIKARI_JDBC_URL:jdbc:mariadb://localhost:3306/fineract_tenants}
>>>>>
>>>>> So, I thought Intellij was having some problem picking up these properties, so I passed it as an environment variable and it worked.
>>>>>
>>>>>
>>>>> And once it runs successfully, now if I remove that property from Intellij's configuration, my fineract still works. That's the surprise.
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Hitesh
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Jul 26, 2022 at 10:58 AM hitesh prajapati <
>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>
>>>>>> Hi Moses Kalema,
>>>>>>
>>>>>> Here is my debugger running. Just note that in debug configuration ,
>>>>>> I need to pass spring.datasource.hikari.jdbcUrl as an environment variable
>>>>>> as it is not picking up from application.properties.
>>>>>>
>>>>>> [image: image.png]
>>>>>>
>>>>>> [image: image.png]
>>>>>>
>>>>>>
>>>>>> On Tue, Jul 26, 2022 at 10:03 AM hitesh prajapati <
>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Here is my Intellij's configuration to run fineract from it
>>>>>>>  and i am able to run as debug mode.
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>> On Tue, 26 Jul 2022, 09:46 Moses Kalema, <mk...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> In that case, you are basically using intelliJ as an editor but
>>>>>>>> running an application with a command line. For example, you wouldn't be
>>>>>>>> able to ren debug mode (unless it is remote debug).
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Jul 25, 2022 at 11:09 PM hitesh prajapati <
>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> No. Its from intellij's configuration.
>>>>>>>>>
>>>>>>>>> But gradlew build and gradlew idea from terminal or command prompt.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, 26 Jul 2022, 09:37 Moses Kalema, <mk...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> By run gradlew bootRun you don't mean using the intelliJ terminal?
>>>>>>>>>>
>>>>>>>>>> Thanks, let me try those steps.
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Moses
>>>>>>>>>>
>>>>>>>>>> On Mon, Jul 25, 2022 at 11:03 PM hitesh prajapati <
>>>>>>>>>> hitesh.kams.prajapati@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Yes. I mean i run gradlew booRun from intellij.
>>>>>>>>>>>
>>>>>>>>>>> But before that
>>>>>>>>>>>
>>>>>>>>>>> First i do gradlew build and gradlew idea.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Then once you open the fineract in Intellij idea, please select
>>>>>>>>>>> correct JDK for the module. and after that select correct JDK in intellij
>>>>>>>>>>> gradle settings
>>>>>>>>>>>
>>>>>>>>>>> After all these steps, you should be able to run bootRun from
>>>>>>>>>>> intellij. I hope this helps.
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>> Hitesh
>>>>>>>>>>>
>>>>>>>>>>> On Tue, 26 Jul 2022, 08:43 Moses Kalema, <mk...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hello,
>>>>>>>>>>>>
>>>>>>>>>>>> Is anyone running fineract with intellij?
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> *Moses Kalema*
>>>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Moses Kalema*
>>>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Moses Kalema*
>>>>>>>> *"My Heart is in The Work"*
>>>>>>>>
>>>>>>>
>>>>
>>>> --
>>>> *Moses Kalema*
>>>> *"My Heart is in The Work"*
>>>>
>>>
>>
>> --
>> *Moses Kalema*
>> *"My Heart is in The Work"*
>>
>

Re: Run with IntelliJ

Posted by Ádám Sághy <ad...@gmail.com>.
Dear Alexander,

  

Based on the attached log there are checkstyle errors in your code. Please run
the following command to fix it automatically:

  

./gradlew spotlessApply

  

Regards

Adam

  
  

Sent from my iPhone

  

> On 15 Oct 2022, at 03:55, Nana Quame Alexander <qu...@gmail.com> wrote:  
>  
>

> 
>
> Hi Hitesh,
>
>  
>
>
>  
>
>
> I have been trying to set up fineract for dev with intelliJ however I keep
> running into the issues attached.  
> I have tried the steps above as well but I get back to the same challenges.  
> I would be grateful if anyone could be of assistance.  
>  
>
>

>> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> .\gradlew build  
> Could not open the public key ring.  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.core.expressions\3.8.200\eb159f34083b0135459745f934a6ad5eb61b61c\org.eclipse.core.expressions-3.8.200.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.core.expressions:3.8.200  
> Errors occurred while build effective model from
> C:\Users\User\\.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.121.0\2fceaff0cb642e6bb6204bebe84058a4c17126fc\org.eclipse.swt-3.121.0.pom:  
>         'modelVersion' must be one of [4.0.0] but is '4.0'. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
>         'dependencies.dependency.artifactId' for
> org.eclipse.platform:org.eclipse.swt.${osgi.platform}:jar with value
> 'org.eclipse.swt.${osgi.platform}' does not match a valid id pattern. in
> org.eclipse.platform:org.eclipse.swt:3.121.0  
> Unknown file extension: custom\acme\loan\starter\src\main\resources\META-
> INF\spring.factories  
> Unknown file extension: custom\acme\note\starter\src\main\resources\META-
> INF\spring.factories
>
>  
> FAILURE: Build failed with an exception.  
>  
> * What went wrong:  
> Execution failed for task ':fineract-doc:spotlessGroovyGradleCheck'.  
> > The following files had format violations:  
>       build.gradle  
>           @@ -1,121 +1,121 @@  
>           -/**\r\n  
>           \- * Licensed to the Apache Software Foundation (ASF) under
> one\r\n  
>           \- * or more contributor license agreements. See the NOTICE
> file\r\n  
>           \- * distributed with this work for additional information\r\n  
>           \- * regarding copyright ownership. The ASF licenses this file\r\n  
>           \- * to you under the Apache License, Version 2.0 (the\r\n  
>           \- * "License"); you may not use this file except in
> compliance\r\n  
>           \- * with the License. You may obtain a copy of the License at\r\n  
>           \- *\r\n  
>           \- * <http://www.apache.org/licenses/LICENSE-2.0\r\n>  
>           \- *\r\n  
>           \- * Unless required by applicable law or agreed to in
> writing,\r\n  
>           \- * software distributed under the License is distributed on
> an\r\n  
>           \- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n  
>           \- * KIND, either express or implied. See the License for the\r\n  
>           \- * specific language governing permissions and limitations\r\n  
>           \- * under the License.\r\n  
>           \- */\r\n  
>           -apply plugin: 'org.asciidoctor.jvm.convert'\r\n  
>           -apply plugin: 'org.asciidoctor.jvm.pdf'\r\n  
>           -apply plugin: 'org.asciidoctor.jvm.revealjs'\r\n  
>           -// apply plugin: 'org.asciidoctor.jvm.epub'\r\n  
>           -// apply plugin: 'org.asciidoctor.kindlegen.base'\r\n  
>           -\r\n  
>           -asciidoctorj {\r\n  
>           \-    version = '2.5.3'\r\n  
>           -\r\n  
>           \-    attributes = [\r\n  
>           \-        version: "${project.version}",\r\n  
>           \-        generated: "${buildDir}/generated/asciidoc",\r\n  
>           \-        imagesdir: "${projectDir}/src/docs/en/images",\r\n  
>           \-        diagramsdir: "${projectDir}/src/docs/en/diagrams",\r\n  
>           \-        years: '2015-2022',\r\n  
>           \-        revnumber: "${project.version}".toString(),\r\n  
>           \-        rootdir: "${rootDir}".toString(),\r\n  
>           \-        baseurl:
> '[fineract.apache.org](http://fineract.apache.org)',\r\n  
>           \-    ]\r\n  
>           -\r\n  
>           \-    modules {\r\n  
>           \-        pdf.version '1.6.2'\r\n  
>           \-        diagram.version '2.2.1'\r\n  
>           \-        epub.version '1.5.1'\r\n  
>           \-        revealjs.version '4.1.0'\r\n  
>           \-    }\r\n  
>           -\r\n  
>           \-    fatalWarnings ~/include file not found|missing callout|image
> to embed not found or not readable/\r\n  
>           \-    fatalWarnings missingIncludes()\r\n  
>           -}\r\n  
>       ... (194 more lines that didn't fit)  
>   Run 'gradlew.bat :fineract-doc:spotlessApply' to fix these violations.  
>  
> * Try:  
> > Run with --stacktrace option to get the stack trace.  
> > Run with --info or --debug option to get more log output.  
> > Run with --scan to get full insights.  
>  
> * Get more help at <https://help.gradle.org>  
>  
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 8.0.  
>  
> You can use '--warning-mode all' to show the individual deprecation warnings
> and determine if they come from your own scripts or plugins.  
>  
> See
> <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>  
>  
> BUILD FAILED in 15s  
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>  
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract> java -version  
> java version "18.0.2.1" 2022-08-18  
> Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)  
> Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)  
> PS C:\Users\User\OneDrive\Desktop\core-bank\fineract>  
>  
>
>
>  
>
>
> On Fri, Aug 5, 2022 at 9:43 PM Moses Kalema
> <[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>

>> Hi Hitesh,  
>
>>

>>  
>
>>

>> I have successfully been able to run and debug in intelliJ.

>>

>> Thank you for your guidance. It is just perfect incase anyone else needs to
do the same thing.

>>

>>  
>
>>

>> Best Regards,

>>

>> Moses

>>

>>  
>
>>

>> On Fri, Aug 5, 2022 at 9:42 AM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>

>>> Hi Moses,

>>>

>>>  
>
>>>

>>> I haven't tried running a test. I skip tests with gradlew -x test

>>>

>>>  
>
>>>

>>> On Fri, Aug 5, 2022 at 1:09 AM Moses Kalema
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>

>>>> Hi Hitesh,  
>
>>>>

>>>>  
>
>>>>

>>>> Trying to follow your steps but i get failure on ./gradlew build on this
task twofactor-tests:cargoStartLocal . Did you get anything like this?

>>>>

>>>>  
>
>>>>

>>>> This is the stack trace

>>>>

>>>>  
>
>>>>

>>>> Execution failed for task ':twofactor-tests:cargoStartLocal'.  
> > org.codehaus.cargo.container.ContainerException: Failed to create a Tomcat
> 9.x standalone configuration: File
> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-
> users.xml does not contain replacement key @tomcat.users@  
>  
> * Exception is:  
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
> ':twofactor-tests:cargoStartLocal'.  
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)  
>         at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)  
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)  
>         at
> org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)  
> Caused by: : org.codehaus.cargo.container.ContainerException: Failed to
> create a Tomcat 9.x standalone configuration: File
> /var/folders/xq/qdl2y9xd6rx44jh25nll1hq40000gn/T/cargo/conf/conf/tomcat-
> users.xml does not contain replacement key @tomcat.users@  
>         at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:109)  
>         at
> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:90)  
>         at
> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:117)  
>         at
> com.bmuschko.gradle.cargo.tasks.local.LocalCargoContainerTask.runAction(LocalCargoContainerTask.groovy:191)  
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)  
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)  
>         at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
>         at
> com.bmuschko.gradle.cargo.tasks.AbstractCargoContainerTask$_start_closure2.doCall(Abstrac  
>
>>>>

>>>>  
>
>>>>

>>>>  
>
>>>>

>>>>  
>
>>>>

>>>> On Tue, Jul 26, 2022 at 12:54 AM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>

>>>>> Hi All,

>>>>>

>>>>>  
>
>>>>>

>>>>> The first time without specifying spring.datasource.hikari.jdbcUrl as an
environment variable, I was getting a bean creation exception for
hikariTenanatDataSource.

>>>>>

>>>>>  
>
>>>>>

>>>>> Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'hikariTenantDataSource' defined in class path
resource
[org/apache/fineract/infrastructure/core/config/HikariCpConfig.class]: Bean
instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw
exception; nested exception is java.lang.IllegalArgumentException: dataSource
or dataSourceClassName or jdbcUrl is required.  
>
>>>>>

>>>>>  
>
>>>>>

>>>>> First of all this should not happen at that first place as
application.properties has
spring.datasource.hikari.jdbcUrl=${FINERACT_HIKARI_JDBC_URL:jdbc:mariadb://localhost:3306/fineract_tenants}

>>>>>  
>>>>>  
>>>>>     So, I thought Intellij was having some problem picking up these
properties, so I passed it as an environment variable and it worked.

>>>>>  
>>>>>  
>>>>>  
>>>>>     >

>>>>>  
>>>>>  
>>>>>     And once it runs successfully, now if I remove that property from
Intellij's configuration, my fineract still works. That's the surprise.

>>>>>  
>>>>>  
>>>>>  
>>>>>     >

>>>>>  
>>>>>  
>>>>>     Thanks,

>>>>>  
>>>>>  
>>>>>     Hitesh

>>>>>  
>>>>>  
>>>>>  
>>>>>     >

>>>>>

>>>>>  
>
>>>>>

>>>>>  
>
>>>>>

>>>>> On Tue, Jul 26, 2022 at 10:58 AM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>

>>>>>> Hi Moses Kalema,

>>>>>>

>>>>>>  
>
>>>>>>

>>>>>> Here is my debugger running. Just note that in debug configuration , I
need to pass spring.datasource.hikari.jdbcUrl as an environment variable as it
is not picking up from application.properties.

>>>>>>

>>>>>>  
>
>>>>>>

>>>>>> ![image.png](cid:ii_l61qkozw4)  
>
>>>>>>

>>>>>>  
>
>>>>>>

>>>>>> ![image.png](cid:ii_l61qjvla3)  
>
>>>>>>

>>>>>>  
>
>>>>>>

>>>>>>  
>
>>>>>>

>>>>>> On Tue, Jul 26, 2022 at 10:03 AM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>>

>>>>>>> Hi,

>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>> Here is my Intellij's configuration to run fineract from it

>>>>>>>

>>>>>>>  and i am able to run as debug mode.

>>>>>>>

>>>>>>> ![image.png](cid:ii_l61olm2d0)  
>
>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>> ![image.png](cid:ii_l61on1m01)  
>
>>>>>>>

>>>>>>>  
>
>>>>>>>

>>>>>>> On Tue, 26 Jul 2022, 09:46 Moses Kalema,
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>>>>>

>>>>>>>> In that case, you are basically using intelliJ as an editor but
running an application with a command line. For example, you wouldn't be able
to ren debug mode (unless it is remote debug).

>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>> On Mon, Jul 25, 2022 at 11:09 PM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>>>>

>>>>>>>>> No. Its from intellij's configuration.

>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>> But gradlew build and gradlew idea from terminal or command prompt.  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>>  
>
>>>>>>>>>

>>>>>>>>> On Tue, 26 Jul 2022, 09:37 Moses Kalema,
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>>>>>>>

>>>>>>>>>> By run gradlew bootRun you don't mean using the intelliJ terminal?

>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>> Thanks, let me try those steps.

>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>> Regards,

>>>>>>>>>>

>>>>>>>>>> Moses

>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>> On Mon, Jul 25, 2022 at 11:03 PM hitesh prajapati
<[hitesh.kams.prajapati@gmail.com](mailto:hitesh.kams.prajapati@gmail.com)>
wrote:  
>
>>>>>>>>>>

>>>>>>>>>>> Yes. I mean i run gradlew booRun from intellij.

>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>> But before that

>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>> First i do gradlew build and gradlew idea.

>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>> Then once you open the fineract in Intellij idea, please select
correct JDK for the module. and after that select correct JDK in intellij
gradle settings

>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>> After all these steps, you should be able to run bootRun from
intellij. I hope this helps.

>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>> Cheers,

>>>>>>>>>>>

>>>>>>>>>>> Hitesh

>>>>>>>>>>>

>>>>>>>>>>>  
>
>>>>>>>>>>>

>>>>>>>>>>> On Tue, 26 Jul 2022, 08:43 Moses Kalema,
<[mkgremo20@gmail.com](mailto:mkgremo20@gmail.com)> wrote:  
>
>>>>>>>>>>>

>>>>>>>>>>>> Hello,  
>
>>>>>>>>>>>>

>>>>>>>>>>>>  
>
>>>>>>>>>>>>

>>>>>>>>>>>> Is anyone running fineract with intellij?

>>>>>>>>>>>>

>>>>>>>>>>>>  
>
>>>>>>>>>>>>

>>>>>>>>>>>> \--  
>
>>>>>>>>>>>>

>>>>>>>>>>>> **Moses Kalema**

>>>>>>>>>>>>

>>>>>>>>>>>>  **"My Heart is in The Work"**

>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>>  
>
>>>>>>>>>>

>>>>>>>>>> \--  
>
>>>>>>>>>>

>>>>>>>>>> **Moses Kalema**

>>>>>>>>>>

>>>>>>>>>>  **"My Heart is in The Work"**

>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>>  
>
>>>>>>>>

>>>>>>>> \--  
>
>>>>>>>>

>>>>>>>> **Moses Kalema**

>>>>>>>>

>>>>>>>>  **"My Heart is in The Work"**

>>>>

>>>>  
>
>>>>

>>>>  
>
>>>>

>>>> \--  
>
>>>>

>>>> **Moses Kalema**

>>>>

>>>>  **"My Heart is in The Work"**

>>

>>  
>
>>

>>  
>
>>

>> \--  
>
>>

>> **Moses Kalema**

>>

>>  **"My Heart is in The Work"**