java - Maven 2 multi module pom -
i have started migrating project ant maven. have 2 module in application able build using maven.
now have automated tests project use web driver testing ui functionality. trying using maven build both module wars , deploy them on tomcat. run automation tests against them , pass build if automation test passes. have configured pom this(just mentioning important part):
<packaging>pom</packaging> <modules> <module>../module1</module> <module>../module2</module> </modules>
now both projects build , deploy doesn't run automation tests. reason thought packaging type pom. if change war starts throwing error.
i can think of creating third pom automation , parent pom include module also. thinking whether right way. should common scenario , maven should supporting directly.
(...) automation module webdriver based automation tests testing ui. depends on web war there no package dependency. deploying tomcat using cargo maven plugin. want build web wars source, on fly before running automation tests, deploy on tomcat , run tests. can these using ant build unable using maven
this doable (and i've done numerous time). i'm not sure understand current project structure (especially, tests located).
here structure suggest:
. ├── functests │ ├── pom.xml // here configure maven run cargo & tests │ └── src │ └── │ ├── java │ │ └── ... // functional tests go here │ └── resources ├── pom.xml // aggregating pom └── mywebapp // application under test ├── pom.xml └── src ├── main │ ├── java │ ├── resources │ └── webapp └── test ├── java └── resources
and details of pom setup, have @ functional testing maven, cargo , selenium, contains details required.
Comments
Post a Comment