can’t we have our own custom layout with a modified POM ..are there any other disadvantages other than complicated POM
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I guess you mean the project directory layout:
Yes, this is entirely customizable (see the POM Reference).
Example:
This sets the source folder to
sources, the target folder tooutputand the compiler output folder tooutput/compiled-classes.If you need additional source folders, you can’t specify them in the
<build>element, but you can add them dynamically with the buildhelper plugin.If you are using only well-behaved standard maven plugins, this should work as expected. However, there may be some plugins with hard-coded paths like
src/main/javaandtarget/classes. Your mileage may vary.