From: Honest C. <ho...@ta...> - 2023-07-18 08:38:30
|
Hi Jamiu, The error is because there is no fineract jar with version 0.0.255-beffb9d7. Correct me if I am wrong but I think you renamed the jars and removed the suffixes with the versions. When you build the fineract jars, they have a version at the suffix like fineract-core-0.0.0-a119296a.jar, do not rename them. Let’s assume you ran gradlew build and got the following artifacts, fineract-core-0.0.0-a119296a.jar fineract-provider-0.0.0-a119296a-plain.jar ***NB: the fineract provider has to be a plain jar not the whole application jar. 1. Update the fineract pentaho pom with the correct version, in this case 0.0.0-a119296a <properties> … <fineract.version>0.0.0-a119296a</fineract.version> … </properties> 1. Create a libs folder at the root of the fineract pentaho project and copy the jars to that folder. 2. Update your fineract core and fineract plain jars dependencies like FOR PLAIN JAR <dependency> <groupId>org.apache.fineract</groupId> <artifactId>fineract-provider</artifactId> <version>${fineract.version}</version> <classifier>plain</classifier> <scope>system</scope> <systemPath>${project.basedir}/libs/fineract-provider-${fineract.version}-plain.jar</systemPath> <exclusions> <exclusion> <groupId>org.apache.fineract</groupId> <artifactId>fineract-avro-schemas</artifactId> </exclusion> </exclusions> </dependency> FOR CORE JAR <dependency> <groupId>org.apache.fineract</groupId> <artifactId>fineract-core</artifactId> <version>${fineract.version}</version> <scope>system</scope> <systemPath>${project.basedir}/libs/fineract-core-${fineract.version}.jar</systemPath> </dependency> This should allow you to build the plugin jar. However can I ask something? You want to build the pentaho plugin jar for development purposes or you want to run the Fineract API with pentaho reports enabled or both? Regards. Honest Chirozva Technical Consultant TAAT Consulting From: Jamiu Ayomide Olawale<mailto:hor...@gm...> Sent: Friday, 14 July 2023 20:27 To: de...@fi...<mailto:de...@fi...> Cc: mifos-users<mailto:mif...@li...>; mif...@li...<mailto:mif...@li...> Subject: Re: Fineract-pentaho build failure Thanks Honest for the reply my sincere apologies for mailing the fineract team. with respect to your number 4 step. i tried the below but got another error. please help added the below lines <dependency> <groupId>org.apache.fineract</groupId> <artifactId>fineract-provider</artifactId> <version>${fineract.version}</version> <scope>system</scope> <systemPath>C:/User/DarkVera/fineract-pentaho/fineract-core.jar</systemPath> </dependency> <dependency> <groupId>org.apache.fineract</groupId> <artifactId>fineract-provider</artifactId> <version>${fineract.version}</version> <scope>system</scope> <systemPath>C:/User/DarkVera/fineract-pentaho/fineract-provider.jar</systemPath> </dependency> but got this error Failed to execute goal on project pentaho-plugin: Could not resolve dependencies for project community.mifos:pentaho-plugin:jar:1.8.4-SNAPSHOT: Could not find artifact org.apache.fineract:fineract-provider:jar:0.0.255-beffb9d7 at specified path C:\User\DarkVera\fineract-pentaho\fineract-provider.jar -> [Help 1] once again, my apologies. -- Sybarite Networks On Fri, Jul 14, 2023 at 6:29 PM Jamiu Ayomide Olawale <hor...@gm...<mailto:hor...@gm...>> wrote: Thanks Honest for the reply my sincere apologies for mailing the fineract team. with respect to your number 4 step. i tried the below but got another error. please help added the below lines <dependency> <groupId>org.apache.fineract</groupId> <artifactId>fineract-provider</artifactId> <version>${fineract.version}</version> <scope>system</scope> <systemPath>C:/User/DarkVera/fineract-pentaho/fineract-core.jar</systemPath> </dependency> <dependency> <groupId>org.apache.fineract</groupId> <artifactId>fineract-provider</artifactId> <version>${fineract.version}</version> <scope>system</scope> <systemPath>C:/User/DarkVera/fineract-pentaho/fineract-provider.jar</systemPath> </dependency> but got this error Failed to execute goal on project pentaho-plugin: Could not resolve dependencies for project community.mifos:pentaho-plugin:jar:1.8.4-SNAPSHOT: Could not find artifact org.apache.fineract:fineract-provider:jar:0.0.255-beffb9d7 at specified path C:\User\DarkVera\fineract-pentaho\fineract-provider.jar -> [Help 1] once again, my apologies. On Wed, Jul 12, 2023 at 4:18 PM James Dailey <jam...@gm...<mailto:jam...@gm...>> wrote: Thanks Honest for that answer. I don't see anything here for the Fineract community to work on, but correct me if I am wrong. Perhaps someone over on the Mifos project (openMF) can update the documentation and change the way that the pentaho configuration is handled. i.e. cp files in deploy script/ add a gradle task? In any case, this is a useful set of instructions so thank you for that. James On Wed, Jul 12, 2023 at 8:16 AM Honest Chirozva <ho...@ta...<mailto:ho...@ta...>> wrote: > > Hi Jamui, > > > > + Adding the Mifos community list to this thread as the fineract-pentaho repo is currently managed under OpenMF Umbrella. > > > > Please note that this is not a FINERACT topic, but you should be able to add the Pentaho plugin if you follow the instructions under the readme here https://github.com/openMF/fineract-pentaho > > Please see FAQ about separation of projects. > > > > I was also facing issues with the fineract pentaho plugin and managed to fix it. > > > > The error as logged is due to missing artifacts from the mifos jfrog repository. > > fineract-core:jar:0.0.255-beffb9d7 > > fineract-provider:jar:plain:0.0.255-beffb9d7 > > To fix this > > Clone apache/fineract > Build fineract using this command ./gradlew clean build > You should find fineract-core jar and fineract-provider plain jar in the build directories > Add these jars to your fineract pentaho plugin pom file as system scope (Notify if you face issues doing this step) > Build the plugin again > > > > Note that this will only build the pentaho plugin jar. For running the plugin with fineract you should follow the steps at https://github.com/openMF/fineract-pentaho/blob/develop/README.md. Again if you encounter problems feel free to ask for assistance > > > > Regards. > > Honest Chirozva > Technical Consultant > > TAAT Consulting > > > > From: Jamiu Ayomide Olawale > Sent: Wednesday, 12 July 2023 16:09 > To: de...@fi...<mailto:de...@fi...> > Subject: Fineract-pentaho build failure > > > > > dear team > > > > tried building the plugin from git but got the below error > > > > > > > > > > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 03:31 min > [INFO] Finished at: 2023-07-12T13:08:26Z > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project pentaho-plugin: Could not resolve dependencies for project community.mifos:pentaho-plugin:jar:1.8.4-SNAPSHOT: Failed to collect dependencies at org.apache.fineract:fineract-provider:jar:plain:0.0.255-beffb9d7 -> org.apache.fineract:fineract-core:jar:0.0.255-beffb9d7: Failed to read artifact descriptor for org.apache.fineract:fineract-core:jar:0.0.255-beffb9d7: Could not transfer artifact org.apache.fineract:fineract-core:pom:0.0.255-beffb9d7 from/to fineract-snapshot (https://mifos.jfrog.io/artifactory/libs-snapshot-local): Transfer failed for https://mifos.jfrog.io/artifactory/libs-snapshot-local/org/apache/fineract/fineract-core/0.0.255-beffb9d7/fineract-core-0.0.255-beffb9d7.pom 409 -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please read the following articles: > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException > > > > > > > > > > -- > > Sybarite Networks > > > > > > > > > > > -- Sybarite Networks On Wed, Jul 12, 2023 at 4:18 PM James Dailey <jam...@gm...<mailto:jam...@gm...>> wrote: Thanks Honest for that answer. I don't see anything here for the Fineract community to work on, but correct me if I am wrong. Perhaps someone over on the Mifos project (openMF) can update the documentation and change the way that the pentaho configuration is handled. i.e. cp files in deploy script/ add a gradle task? In any case, this is a useful set of instructions so thank you for that. James On Wed, Jul 12, 2023 at 8:16 AM Honest Chirozva <ho...@ta...<mailto:ho...@ta...>> wrote: > > Hi Jamui, > > > > + Adding the Mifos community list to this thread as the fineract-pentaho repo is currently managed under OpenMF Umbrella. > > > > Please note that this is not a FINERACT topic, but you should be able to add the Pentaho plugin if you follow the instructions under the readme here https://github.com/openMF/fineract-pentaho > > Please see FAQ about separation of projects. > > > > I was also facing issues with the fineract pentaho plugin and managed to fix it. > > > > The error as logged is due to missing artifacts from the mifos jfrog repository. > > fineract-core:jar:0.0.255-beffb9d7 > > fineract-provider:jar:plain:0.0.255-beffb9d7 > > To fix this > > Clone apache/fineract > Build fineract using this command ./gradlew clean build > You should find fineract-core jar and fineract-provider plain jar in the build directories > Add these jars to your fineract pentaho plugin pom file as system scope (Notify if you face issues doing this step) > Build the plugin again > > > > Note that this will only build the pentaho plugin jar. For running the plugin with fineract you should follow the steps at https://github.com/openMF/fineract-pentaho/blob/develop/README.md. Again if you encounter problems feel free to ask for assistance > > > > Regards. > > Honest Chirozva > Technical Consultant > > TAAT Consulting > > > > From: Jamiu Ayomide Olawale > Sent: Wednesday, 12 July 2023 16:09 > To: de...@fi...<mailto:de...@fi...> > Subject: Fineract-pentaho build failure > > > > > dear team > > > > tried building the plugin from git but got the below error > > > > > > > > > > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 03:31 min > [INFO] Finished at: 2023-07-12T13:08:26Z > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project pentaho-plugin: Could not resolve dependencies for project community.mifos:pentaho-plugin:jar:1.8.4-SNAPSHOT: Failed to collect dependencies at org.apache.fineract:fineract-provider:jar:plain:0.0.255-beffb9d7 -> org.apache.fineract:fineract-core:jar:0.0.255-beffb9d7: Failed to read artifact descriptor for org.apache.fineract:fineract-core:jar:0.0.255-beffb9d7: Could not transfer artifact org.apache.fineract:fineract-core:pom:0.0.255-beffb9d7 from/to fineract-snapshot (https://mifos.jfrog.io/artifactory/libs-snapshot-local): Transfer failed for https://mifos.jfrog.io/artifactory/libs-snapshot-local/org/apache/fineract/fineract-core/0.0.255-beffb9d7/fineract-core-0.0.255-beffb9d7.pom 409 -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please read the following articles: > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException > > > > > > > > > > -- > > Sybarite Networks > > > > > > > > > > > -- Sybarite Networks -- Sybarite Networks |