eclipse - more than 1 main() methods in a software. Is this due to Maven plug-in? -
eclipse - more than 1 main() methods in a software. Is this due to Maven plug-in? -
i in company , hv seen source code of 1 of software. found more 25 occurrences of main() method in that. analysed features of myeclipse , found 1 solution due maven installed in eclipse, allows u prepare more 1 build files software.
i want know, analysis true?
thanks in advance...
no, analysis not true. class may have main method. add together method class, , it'll there. fact maven, eclipse, or myeclipse used irrelevant. developers have chosen add together main method in thoses classes, that's all.
there pretty reasons have several main classes in jar. example, if jar contains collection of utilities.
eclipse java-ee maven methods main
Comments
Post a Comment