Monday, August 19, 2013

RAD 9.0 Maven Plugin

With RAD 9.0 there are immense improvements in terms of Maven working with RAD for building and deploying portlet based project.

But I found it hard to find a plugin which actually deploys the code to the websphere portal server.

After a lot struggle found the location of the plugin...

https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/com/ibm/tools/plugin/portal-deployment-maven-plugin/1.0/


But somehow cant download so downloaded each file...

maven-metadata.xml
portal-deployment-maven-plugin-1.0.jar
portal-deployment-maven-plugin-1.0.pom

Copied them in a folder named "portal-deployment-maven-plugin" ( this can be anything ! ).

And then copy across that folder into plugin folder where RAD has stored other plugins...

For me it's

C:\IBM\IBMIMShared\plugins

In your project's pom.xml you need to mention this plugin...

     <plugin>
<groupId>com.ibm.tools.plugin</groupId>
<artifactId>portal-deployment-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>integration-test</phase>
<configuration>
<username>wpsadmin</username>
<password>wpsadmin</password>
<hostname>localhost</hostname>
<port>10039</port>
</configuration>
<goals>
<goal>deploy-portlet</goal>
</goals>
</execution>
</executions>
</plugin>

After doing all this, restart your RAD.

And that's it.

Go to your project, right click and build. It should build and deploy your portlet to mentioned portal server.

http://pic.dhe.ibm.com/infocenter/radhelp/v9/index.jsp?topic=%2Fcom.ibm.portal.doc%2Ftopics%2Ft_DeployingMavenPortletProjects.html

Hope this helps.

Leave comments if you get stuck.

//HP



No comments: