Deploy portlet to WebSphere Portal Server inside RAD

If you met this exception when add a portlet/EAR to WPS server by RAD WPS adapter (inside the Servers view):
 
The id=test-portlet already exists for stored standard portlet application Application Name not available for this Application in the XML element portlet-app test-portlet.
 
It means you should add id to the portlet-app portlet.xml, like:
 
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
        version="1.0"

M2E plugin doesn't work with tomcat server

There is an issue for M2E (version 1.0.0.20110607-2117) to generate correct eclipse configuration files especially the .classpath. Once imported a maven project, it will generate the .classpath like below:
 
    <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
 
But this will cause the eclipse server runtime like tomcat cannot find those jar libraries. After add the dynamic web application to the server from the server view, and start the server, it will throw exceptions like
 

Eclipse M2E plugin error: not covered by lifecycle configuration

M2E is formly known as M2eclipse, after transited to eclipse project, it introduced a new concept, life cycle connector. If some plugin has no corresponding connector, it will mark an error in eclipse IDE like below:
 
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.5:add-source (execution: default, phase: process-classes)
 
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:jaxws-maven-plugin:1.10:wsgen (execution: generate-wsdl, phase: process-classes)
 

Pages