Updates from May, 2014 Toggle Comment Threads | Keyboard Shortcuts

  • shashankgee 6:19 pm on 18 May 2014 Permalink | Reply  

    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

    Advertisements
     
  • shashankgee 1:18 pm on 7 Nov 2013 Permalink | Reply  

    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.

    <build>
    
     <resources>
     <resource>
        <directory>src/main/java</directory>
         <includes>
             <include>**/*.xml</include>
         </includes>
     </resource>
       <resource>
           <directory>src/main/resources</directory>
      </resource>
     </resources>
    </build>
    

     


     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel