I have developed a maven-based plugin (or app) for the open-source bioinformatics Java Application Cytoscape. I was wondering if I could incorporate Open MPI Java Bindings inside this project. My goal would be to execute jobs in parallel in the back and throw multiple network views, graphs etc at the front (so it can be visualized on a visualization wall)
Looking at the manual here, I can see how it's built for runnable jar files, but could not find any resource that suggests its incorporation in to a Maven project.
Then I came across this openmpi java binding dependency from 2015. But, when I tried to do mvn install mpi.jar and add the dependency to my pom.xml, my project went berserk!
All of a sudden, the javax.swing. variables like JButton, JPanel, etc gave the error "Cannot refer to the non-final local variable xyz defined in an enclosing scope". And I hadn't even touched the source code.
So, is there any way to use OpenMPI Java bindings in maven project to achieve the goal I mentioned above?
You've really got two challenges here. First, how to integrate the openMPI bindings in your app -- you should be able to do that by explicitly listing it as an app dependency in Maven. If mpi.jar isn't available on any of the standard Maven repositories, you may have to download it and embed it directly. Checkout some of the Cytoscape apps on my repo (github.com/RBVI) and you'll see some where I've had to explicitly embedded a jar.
The second challenge might be more difficult, which is how to make sure that the openMPI jar files and OSGi work well together. Not so sure about that.