I wrote an integration test where the test starts an application server and deploys a WAR file in it. The test works fine when I run it from eclipse but when it is run from maven during building, it says that maven cant locate the WAR file. How do I make maven look into the directory for which the WAR file is in (where does maven look in by default?)
EDIT: So if I want to edit a project.build.directory property, would I go into my POM file and create the elements:
< project>
< build>
< directory>pathname< /directory>
< /build>
< project>
Or is there more to changing a property?
There exists a property
${project.build.directory}that results in the path to your “target” dir. (See: here)Maybe that helps you?