Bahmni setup in eclipse Error

Tags: #<Tag:0x00007fcfaa2aa2e8> #<Tag:0x00007fcfaa2aa220>

I am setup bahmni -core from git in eclipse all module are add in eclipse but every module have exception ,how to setup bahmni Application in IDE for development

how to configure Bahmni Application for developement

I don’t think your problem is very specific to Bahmni or Bahmni Core at all.

The basics would consist in properly building the project outside of Eclipse first, and then ask Eclipse to be up to date with the Maven build that you just did.

First build it fully:

mvn clean install -P IT

Second, in Eclipse select all Bahmni Core subprojects, right-click and process to a Maven update:

image

After Maven–>Update project and maven Build --> I am getting error , I am unable to get ,How to configure in Any IDE for development

Run the Maven build through the command line, not within Eclipse.

Then go back to Eclipse and follow the instructions given earlier.

I build project via eclipse and command Line both are giving same error

FYI it is better to paste an error log on hastebin or any alternative for others to see everything that could be useful (and copy/paste from it).

You seem to have an error with your Maven installation. There is a complaint about the maven-clean-plugin. Have you googled that?

F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core>mvn clean install [INFO] Scanning for projects… Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/de/saumya/mojo/gem-maven-plugin/maven-metadata.xml Downloading from spring-maven-release: http://maven.springframework.org/release/de/saumya/mojo/gem-maven-plugin/maven-metadata.xml Downloading from central: http://repo1.maven.org/maven2/de/saumya/mojo/gem-maven-plugin/maven-metadata.xml Downloading from spring-maven-milestone: http://maven.springframework.org/milestone/de/saumya/mojo/gem-maven-plugin/maven-metadata.xml Downloaded from central: http://repo1.maven.org/maven2/de/saumya/mojo/gem-maven-plugin/maven-metadata.xml (1.8 kB at 914 B/s) Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/de/saumya/mojo/gem-maven-plugin/maven-metadata.xml (1.8 kB at 244 B/s) [WARNING] [WARNING] Some problems were encountered while building the effective model for org.bahmni.module:bahmni-emr-api:jar:0.91-SNAPSHOT [WARNING] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: javax.servlet:javax.servlet-api:jar -> duplicate declaration of version 3.0.1 @ org.bahmni.module:bahmni:0.91-SNAPSHOT, F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\pom.xml, line 317, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.bahmni.module:bahmnicore-omod:jar:0.91-SNAPSHOT [WARNING] ‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.openmrs.module:rulesengine-api:jar -> duplicate declaration of version 0.91-SNAPSHOT @ org.bahmni.module:bahmnicore-omod:[unknown-version], F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmnicore-omod\pom.xml, line 292, column 21 [WARNING] ‘build.plugins.plugin.version’ for de.saumya.mojo:gem-maven-plugin is missing. @ org.bahmni.module:bahmnicore-omod:[unknown-version], F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmnicore-omod\pom.xml, line 529, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.bahmni.module:reference-data-omod:jar:0.91-SNAPSHOT [WARNING] ‘artifactId’ contains an expression but should be a constant. @ org.bahmni.module:${project.parent.artifactId}-omod:[unknown-version], F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\reference-data\omod\pom.xml, line 12, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.bahmni.module:reference-data-api:jar:0.91-SNAPSHOT [WARNING] ‘artifactId’ contains an expression but should be a constant. @ org.bahmni.module:${project.parent.artifactId}-api:[unknown-version], F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\reference-data\api\pom.xml, line 12, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.bahmni.module:admin:jar:0.91-SNAPSHOT [WARNING] ‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.openmrs.module:webservices.rest-omod-common:jar:tests -> duplicate declaration of version ${openMRSWebServicesVersion} @ org.bahmni.module:admin:[unknown-version], F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\admin\pom.xml, line 196, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.bahmni.test:bahmni-test-commons:jar:0.91-SNAPSHOT [WARNING] ‘version’ contains an expression but should be a constant. @ org.bahmni.test:bahmni-test-commons:${project.parent.version}, F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmni-test-commons\pom.xml, line 11, column 14 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.bahmni.module:bahmnicore-ui:jar:0.91-SNAPSHOT [WARNING] ‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.openmrs.api:openmrs-api:jar -> version ${openMRSVersion} vs (?) @ org.bahmni.module:bahmnicore-ui:[unknown-version], F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmnicore-ui\pom.xml, line 30, column 21 [WARNING] ‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.openmrs.api:openmrs-api:jar -> duplicate declaration of version ${openMRSVersion} @ org.bahmni.module:bahmnicore-ui:[unknown-version], F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmnicore-ui\pom.xml, line 78, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.bahmni.module:bahmni:pom:0.91-SNAPSHOT [WARNING] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: javax.servlet:javax.servlet-api:jar -> duplicate declaration of version 3.0.1 @ line 317, column 25 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] BahmniEMR Core [pom] [INFO] Bahmni Mapping [jar] [INFO] Bahmni Test Commons [jar] [INFO] Obs relationship [jar] [INFO] Bahmni EMR Api [jar] [INFO] BahmniEMR Core API [jar] [INFO] Open-Elis Atom Feed Client [jar] [INFO] Reference Data [pom] [INFO] Reference Data API [jar] [INFO] Admin [jar] [INFO] Bahmnicore-ui [jar] [INFO] BahmniEMR Core OMOD [jar] [INFO] Reference Data Omod [jar] [INFO] Deploy scripts [pom] [INFO] [INFO] ----------------------< org.bahmni.module:bahmni >---------------------- [INFO] Building BahmniEMR Core 0.91-SNAPSHOT [1/14] [INFO] --------------------------------[ pom ]--------------------------------- Downloading from spring-maven-milestone: http://maven.springframework.org/milestone/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml Downloading from spring-maven-release: http://maven.springframework.org/release/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml Downloading from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml Downloaded from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml (986 B at 1.5 kB/s) Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml (1.1 kB at 484 B/s) Downloading from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom Downloaded from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom (3.9 kB at 6.1 kB/s) Downloading from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar Downloaded from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar (25 kB at 20 kB/s) Downloading from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom Downloaded from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom (6.4 kB at 9.5 kB/s) Downloading from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.jar Downloaded from central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.jar (27 kB at 25 kB/s) [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ bahmni — [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ bahmni — Downloading from central: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom Downloaded from central: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom (2.5 kB at 3.8 kB/s) Downloading from central: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/3.1/plexus-3.1.pom Downloaded from central: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/3.1/plexus-3.1.pom (19 kB at 27 kB/s) Downloading from spring-repo: http://maven.springframework.org/milestone/org/openmrs/module/emrapi-api-1.12/1.23.0/emrapi-api-1.12-1.23.0-tests.jar Downloading from spring-repo: http://maven.springframework.org/milestone/org/openmrs/module/emrapi-api/1.23.0/emrapi-api-1.23.0-tests.jar Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/emrapi-api-1.12/1.23.0/emrapi-api-1.12-1.23.0-tests.jar Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/emrapi-api/1.23.0/emrapi-api-1.23.0-tests.jar Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/emrapi-api-1.12/1.23.0/emrapi-api-1.12-1.23.0-tests.jar (36 kB at 7.4 kB/s) Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/emrapi-api/1.23.0/emrapi-api-1.23.0-tests.jar (257 kB at 48 kB/s) [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ bahmni-emr-api — [INFO] Deleting F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmni-emr-api\target [INFO] [INFO] — jacoco-maven-plugin:0.7.6.201602180812:prepare-agent (default) @ bahmni-emr-api — [INFO] argLine set to “-javaagent:C:\Users\Tattva PC - 1\.m2\repository\org\jacoco\org.jacoco.agent\0.7.6.201602180812\org.jacoco.agent-0.7.6.201602180812-runtime.jar=destfile=F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmni-emr-api\target\jacoco.exec,includes=*” -Xmx1024m [INFO] [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ bahmni-emr-api — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ bahmni-emr-api — [INFO] Changes detected - recompiling the module! [INFO] Compiling 72 source files to F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmni-emr-api\target\classes [WARNING] /F:/Development Files/bahmni g/Testting project/bahmni/bahmni-core/bahmni-emr-api/src/main/java/org/openmrs/module/bahmniemrapi/encountertransaction/mapper/ETObsToBahmniObsMapper.java: Some input files use or override a deprecated API. [WARNING] /F:/Development Files/bahmni g/Testting project/bahmni/bahmni-core/bahmni-emr-api/src/main/java/org/openmrs/module/bahmniemrapi/encountertransaction/mapper/ETObsToBahmniObsMapper.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ bahmni-emr-api — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 14 resources [INFO] [INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ bahmni-emr-api — [INFO] Changes detected - recompiling the module! [INFO] Compiling 46 source files to F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmni-emr-api\target\test-classes [WARNING] /F:/Development Files/bahmni g/Testting project/bahmni/bahmni-core/bahmni-emr-api/src/test/java/org/openmrs/module/bahmniemrapi/encountertransaction/mapper/ConceptSortWeightUtilTest.java: Some input files use or override a deprecated API. [WARNING] /F:/Development Files/bahmni g/Testting project/bahmni/bahmni-core/bahmni-emr-api/src/test/java/org/openmrs/module/bahmniemrapi/encountertransaction/mapper/ConceptSortWeightUtilTest.java: Recompile with -Xlint:deprecation for details. [WARNING] /F:/Development Files/bahmni g/Testting project/bahmni/bahmni-core/bahmni-emr-api/src/test/java/org/openmrs/module/bahmniemrapi/laborder/service/LabOrderResultsServiceImplTest.java: Some input files use unchecked or unsafe operations. [WARNING] /F:/Development Files/bahmni g/Testting project/bahmni/bahmni-core/bahmni-emr-api/src/test/java/org/openmrs/module/bahmniemrapi/laborder/service/LabOrderResultsServiceImplTest.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] — maven-surefire-plugin:2.10:test (default-test) @ bahmni-emr-api — [INFO] Surefire report directory: F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmni-emr-api\target\surefire-reports


T E S T S

Running org.openmrs.module.bahmniemrapi.diagnosis.contract.BahmniDiagnosisTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.217 sec Running org.openmrs.module.bahmniemrapi.diagnosis.helper.BahmniDiagnosisMetadataTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.05 sec Running org.openmrs.module.bahmniemrapi.disposition.mapper.BahmniDispositionMapperTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.27 sec Running org.openmrs.module.bahmniemrapi.disposition.service.BahmniDispositionServiceTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running org.openmrs.module.bahmniemrapi.drugogram.contract.RegimenRowTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec Running org.openmrs.module.bahmniemrapi.drugogram.contract.TreatmentRegimenTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec Running org.openmrs.module.bahmniemrapi.drugorder.mapper.BahmniProviderMapperTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec Running org.openmrs.module.bahmniemrapi.drugorder.mapper.OrderAttributesMapperTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.478 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.advice.BahmniEncounterTransactionUpdateAdviceTest Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.382 sec <<< FAILURE! Running org.openmrs.module.bahmniemrapi.encountertransaction.command.impl.BahmniObservationSaveCommandImplTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.command.impl.DrugOrderSaveCommandImplTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.command.impl.OrderSaveCommandImplTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.711 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.command.impl.ParentConceptSaveCommandImplTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.058 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.contract.BahmniEncounterTransactionTest Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.862 sec <<< FAILURE! Running org.openmrs.module.bahmniemrapi.encountertransaction.contract.BahmniObservationTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.234 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.handler.BahmniDiagnosisHandlerTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.907 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.impl.BahmniEncounterTransactionServiceImplTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.116 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.impl.OpenMRSUpgradeTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 87.4 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.mapper.ConceptSortWeightUtilTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.063 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.mapper.EncounterTypeIdentifierTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.089 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.mapper.ETObsToBahmniObsMapperTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.046 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.mapper.ObsRelationshipMapperTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.382 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.mapper.OMRSObsToBahmniObsMapperTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.838 sec Running org.openmrs.module.bahmniemrapi.encountertransaction.service.RetrospectiveEncounterTransactionServiceTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec Running org.openmrs.module.bahmniemrapi.laborder.contract.LabOrderResultsTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.121 sec Running org.openmrs.module.bahmniemrapi.laborder.mapper.LabOrderResultMapperTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec Running org.openmrs.module.bahmniemrapi.laborder.service.LabOrderResultsServiceImplTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.138 sec Running org.openmrs.module.bahmniemrapi.visitlocation.BahmniVisitLocationServiceImplTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.647 sec

Results :

Failed tests: shouldExecuteObsValueCalculatorFromApplicationDataDirectory(org.openmrs.module.bahmniemrapi.encountertransaction.advice.BahmniEncounterTransactionUpdateAdviceTest):

Tests in error: shouldDeserializeBahmniEncounterTransactionFromJson(org.openmrs.module.bahmniemrapi.encountertransaction.contract.BahmniEncounterTransactionTest): F:\Development%20Files\bahmni%20g\Testting%20project\bahmni\bahmni-core\bahmni-emr-api\target\test-classes\sampleEncounterTransaction.json (The system cannot find the path specified)

Tests run: 93, Failures: 1, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] BahmniEMR Core 0.91-SNAPSHOT … SUCCESS [ 11.305 s] [INFO] Bahmni Mapping … SUCCESS [01:08 min] [INFO] Bahmni Test Commons … SUCCESS [ 9.280 s] [INFO] Obs relationship … SUCCESS [ 3.978 s] [INFO] Bahmni EMR Api … FAILURE [02:45 min] [INFO] BahmniEMR Core API … SKIPPED [INFO] Open-Elis Atom Feed Client … SKIPPED [INFO] Reference Data … SKIPPED [INFO] Reference Data API … SKIPPED [INFO] Admin … SKIPPED [INFO] Bahmnicore-ui … SKIPPED [INFO] BahmniEMR Core OMOD … SKIPPED [INFO] Reference Data Omod … SKIPPED [INFO] Deploy scripts 0.91-SNAPSHOT … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:40 min [INFO] Finished at: 2018-03-21T10:13:37+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project bahmni-emr-api: There are test failures. [ERROR] [ERROR] Please refer to F:\Development Files\bahmni g\Testting project\bahmni\bahmni-core\bahmni-emr-api\target\surefire-reports for the individual test results. [ERROR] -> [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :bahmni-emr-api

Can you try running “mvn clean install -DskipTests” on commandline not on eclipse

@mksd I tried to do with

mvn clean install -DskipTests

then I am getting https://pastebin.com/P67Tyv7G.

How can I resolve it.

Looks like your Windows system doesn’t know bash:

java.io.IOException: Cannot run program "bash"

Could you unfortunately be the first person in the world attempting to build Bahmni Core on Windows? You might be.

I haven’t used Windows since 2012, but I vaguely remember that in the meantime PowerShell is supposed to solve such issues. You may want to Google in that direction.

:slight_smile: powershell / windows terminal should do the trick. However you can do the same from Eclipse IDE as well - I haven’t used Eclipse for a long time … but you can easily install a maven plugin for eclipse, and all you need to do is once installed - typically choose “run as”, which should show a bunch of options. You can also choose to configure external tool - choose the mvn.bat file, provide arguments …

PS: I used to be eclipse dev (also building plugins, IDEs etc) in my past life, before peer pressure pushed me to IntelliJ, sublime or vim. (Still some love left)

1 Like

am getting this kind of error

‘dependencies.dependency.version’ for org.bahmni.module:bahmnicore-api:jar is missing.