Posts

Showing posts from September, 2017

Maven build creation

Image
1-Download the maven and unzip 2- Maven life cycle: 1-MAVEN COMPILE - java classes,code  will be compile (maven compiler plugin )-TO COMPILE  2-MAVEN TEST - test cases, unit,regression,functional(maven surefile plugin)-TO TEST  3-MAVEN RESOURCE --jar-- >JAR's/WAR's/EAR's--Resources(maven Resource plugin)- TO CREATE RESOURCE JAR'S AND WAR'S web application we create war files(will give to QA team and they will test it) Maven dependecy - pom.xml Commands: 1)mvn clean install ---> it will execute all complete life cycle maven compile , maven test and maven resource 2)MVN test :----> execute only test cases 3) MVN package -DskipTests : --->  SKIP the test cases and create Only build. OR 4)mvn package -Dmaven.test.skip=true Steps for selenium maven build creation <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xs...