title: Maven to copy JAR when adding dependencies
body: <p>I'm currently using IBM Rational Application Development (IBM Eclipse distro) for Portlet development and having a small issue with Maven integration.</p>
  
  <p>Here's the situation:</p>
  
  <p>1) IBM RAD has the ability to deploy a Portlet directly from within itself (RUN/DEBUG)</p>
  
  <p>In this case, I'm not using Maven generated WAR at all because IBM RAD seems to create the WAR themselves automagically and push it to IBM WebSphere Portal. Which isn't a big deal so far.</p>
  
  <p>2) Maven dependencies are not copied to WebContent/WEB-INF/lib directory</p>
  
  <p>IBM has its own directory structure: WebContent/WEB-INF and WebContent/META-INF. If I updated pom.xml to include new dependencies, those JARS will not be copied to the WebContent/WEB-INF/lib directory hence when I wanted to RUN/DEBUG the portlet, those libraries will not be included.</p>
  
  <p>Question:</p>
  
  <p>Is there a way to copy the new JARs automatically to the WebContent/WEB-INF/lib folder as soon as I update the pom.xml? (if so, which lifecycle this should be in?)</p>
  
  <p>If there's no perfect solution for question #1, I don't mind if this step is included in the "mvn install" compile/goal. </p>
  
  <p>Prefer not to use ant-task but instead maven own copy utility if exist. </p>
  
  <p>If anyone has suggestions how to integrate Maven and IBM RAD for WebSphere Portlet development, feel free to add more answers.</p>
  
  <p>Thanks</p>