I'm new to Maven. I checked out from SVN a project from a customer with the following structure:
projectName
|--> pom.xml
|--> jetty-wrapper
|--> pom.xml
|--> bin
|--> pom.xml
|--> projectName-common
|--> pom.xml
|--> bin
|--> pom.xml
|--> projectName-war
|--> bin
|--> pom.xml
the pom.xml right below 'projectName` (the pom at the top) is building the three modules
<modules>
<module>projectName-common</module>
<module>projectName-war</module>
<module>jetty-wrapper</module>
</modules>
But when executing mvn clean install
from folder projectName
it gives the following error
Child module [...]projectName\projectName-war\pom.xml of [...]projectName\pom.xml does not exist
The question is: Should there be a pom.xml right below projectName-war
just like with the rest of the modules that my customer may have forgotten to commit to SVN?
Child module [...]projectName\projectName-war\pom.xml of [...]projectName\pom.xml does not exist
If you are getting the above error when using mvn install from command line (the same pom may work in eclipse) you have to change your pom.xml little
Instead of the below:
<modules>
<module>../my-util</module>
<module>../my-server</module>
</modules>
Follow the below (enclose in a profilers):
<profiles>
<profile>
<modules>
<module>../my-util</module>
<module>../my-server</module>
</modules>
</profile>
</profiles>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With