Error loading bahmni-core in eclipse

Tags: #<Tag:0x00007fa3ea0b0348>

I am able to setup development environment for bahmni-core. mvn clean install worked fine.

[ **INFO** ] **Reactor Summary for Bahmni EMR Core 0.93-SNAPSHOT:**
[ **INFO** ] 
[ **INFO** ] Bahmni EMR Core .................................... **SUCCESS** [ 16.823 s]
[ **INFO** ] Bahmni Mapping ..................................... **SUCCESS** [ 42.925 s]
[ **INFO** ] Bahmni Test Commons ................................ **SUCCESS** [ 0.889 s]
[ **INFO** ] Obs relationship ................................... **SUCCESS** [ 34.353 s]
[ **INFO** ] Bahmni EMR Api ..................................... **SUCCESS** [01:31 min]
[ **INFO** ] Bahmni EMR Core API ................................ **SUCCESS** [01:34 min]
[ **INFO** ] Open-Elis Atom Feed Client ......................... **SUCCESS** [01:37 min]
[ **INFO** ] Reference Data ..................................... **SUCCESS** [ 0.010 s]
[ **INFO** ] Reference Data API ................................. **SUCCESS** [ 8.882 s]
[ **INFO** ] Admin .............................................. **SUCCESS** [01:39 min]
[ **INFO** ] Bahmnicore-ui ...................................... **SUCCESS** [ 45.278 s]
[ **INFO** ] Bahmni EMR Core OMOD ............................... **SUCCESS** [04:39 min]
[ **INFO** ] Reference Data Omod ................................ **SUCCESS** [01:17 min]
[ **INFO** ] Deploy scripts ..................................... **SUCCESS** [ 0.043 s]
[ **INFO** ] **------------------------------------------------------------------------**
[ **INFO** ] **BUILD SUCCESS**
[ **INFO** ] **------------------------------------------------------------------------**

Now when I tried to load project in Eclipse as New -> Existing maven project, I am getting following error

Error unpacking file: /Projects/bahmni_dev/bahmni-core/reference-data/api/target/classes to: /Projects/bahmni_dev/bahmni-core/reference-data/omod/target/classes
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory. (org.apache.maven.plugins:maven-dependency-plugin:2.4:unpack-dependencies:Expand moduleApplicationContext and messages:generate-resources)
org.apache.maven.plugin.MojoExecutionException: Error unpacking file: /Projects/bahmni_dev/bahmni-core/reference-data/api/target/classes to: /Projects/bahmni_dev/bahmni-core/reference-data/omod/target/classes
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:267)
at org.apache.maven.plugin.dependency.UnpackDependenciesMojo.execute(UnpackDependenciesMojo.java:88)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:332)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.lambda$8(MavenImpl.java:1379)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:114)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1378)

Could anyone please help me with the issue.

Thoughts @angshuonline @mksd

@mksd Could you please help me with this.

@tendomart Could you please provide me with working Bahmni demo link.

@ravi991, first thing first, can you build Bahmni Core from the command line?

I would always build every module that way and then sync the sources/classes with the IDE. Those IDE warnings might just not be really relevant.

However Firefox has issues with the certificate.

@ravi991 https://demo.mybahmni.org/ hope you have also considered @mksd 's suggestion.

You may want this as Well

yeah I executed mvn clean install from command line inside bahmni-core and it was a success

[ **INFO** ] **Reactor Summary for Bahmni EMR Core 0.93-SNAPSHOT:**
[ **INFO** ] 
[ **INFO** ] Bahmni EMR Core .................................... **SUCCESS** [ 16.823 s]
[ **INFO** ] Bahmni Mapping ..................................... **SUCCESS** [ 42.925 s]
[ **INFO** ] Bahmni Test Commons ................................ **SUCCESS** [ 0.889 s]
[ **INFO** ] Obs relationship ................................... **SUCCESS** [ 34.353 s]
[ **INFO** ] Bahmni EMR Api ..................................... **SUCCESS** [01:31 min]
[ **INFO** ] Bahmni EMR Core API ................................ **SUCCESS** [01:34 min]
[ **INFO** ] Open-Elis Atom Feed Client ......................... **SUCCESS** [01:37 min]
[ **INFO** ] Reference Data ..................................... **SUCCESS** [ 0.010 s]
[ **INFO** ] Reference Data API ................................. **SUCCESS** [ 8.882 s]
[ **INFO** ] Admin .............................................. **SUCCESS** [01:39 min]
[ **INFO** ] Bahmnicore-ui ...................................... **SUCCESS** [ 45.278 s]
[ **INFO** ] Bahmni EMR Core OMOD ............................... **SUCCESS** [04:39 min]
[ **INFO** ] Reference Data Omod ................................ **SUCCESS** [01:17 min]
[ **INFO** ] Deploy scripts ..................................... **SUCCESS** [ 0.043 s]
[ **INFO** ] **------------------------------------------------------------------------**
[ **INFO** ] **BUILD SUCCESS**
[ **INFO** ] **------------------------------------------------------------------------**
[ **INFO** ] Total time: 14:49 min
[ **INFO** ] Finished at: 2020-05-11T19:06:56+05:30

I am able to connect to remote debugger as well. The break point is getting hit. However, the issue is it’s saying

Source not found

This issue is related to MDEP-98

@mksd Hey did you get a chance to look into this.