开发者

Deploying WAR from maven

开发者 https://www.devze.com 2023-03-10 23:03 出处:网络
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 s

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&g开发者_JAVA百科t;

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消