1) Try to ensure there is no duplicates or different versions of dependencies in a project, which will lead errors or conflicts later on.
2) If only want dependencies to exist during the compile phase and then be removed, the scope of such dependency should be set to PROVIDED. PROVIDED scope is not transitive, and the dependencies is supposed to be provided by JDK or container.
3) Use mvn dependency:tree to display the dependencies structure of the whole project, and try to pipeline the output to a file will be more easily to be observed.
4) If you are sitting behind a firewall, set proxy configurations in settings.xml under your .m2 directory.
More to be continued.
No comments:
Post a Comment