I have Mavenized my project in order to correctly depend from ImageJ and from Omero, and I’m totally new to Maven.
As you can see in my repository here: https://github.com/OmegaProject/Omega, I have 4 different subproject and I created a pom file for each of them.
During this process I accumulated some questions:
- What is the correct way to build my application? At the moment I’m using “clean package install” in the maven configuration, is it the best way?
- Trying to compile the projects that inherit from the imagej pom, I encountered the “Banned class duplicate” error several time. So I had to introduce exclusion in my dependencies.
I would assume this would break some functionalities. I would like to know if there is a better way to solve this, or if I’m doing something wrong.
The specific pom where I had to insert exclusions are: https://github.com/OmegaProject/Omega/blob/master/omega.omero.ij.testConvert/pom.xml https://github.com/OmegaProject/Omega/blob/master/OMEGA2013/pom.xml
- When I compile the omega.omero.ij.testConvert project (pom: https://github.com/OmegaProject/Omega/blob/master/omega.omero.ij.testConvert/pom.xml), I receive several warning/failure notification for org.springframework dependencies (example here: https://github.com/OmegaProject/Omega/blob/master/OMEGA2013/warning_dependency.txt).
Is this normal?
Thanks for you help