Maven Life Cycle Phases

Following are the Maven most important life cycle phases:

  1. intialize

  2. compile

  3. test

  4. package

  5. verify

  6. install

  7. deploy


xml file is not copied to target/classes when it is in src directory of eclipse maven project



The XML files which are in src/main/java directory of eclipse maven project,Some times they are not copied to target/classes folders.

So To get Rid of that problem we have to add following piece of code into pom.xml.