This initial attempt is just to get a portlet running and deployed, and this blog is really intended as documentation of the steps for my reference... so reader beware.
Step 1 - Generate initial andromda project.
I have previously installed maven 2.2.1 and Java JDK v 1.6.0_22
I created a folder c:/development/andromda_liferay6
From a command line I run the command:
mvn org.andromda.maven.plugins: andromdapp-maven-plugin :3.4-SNAPSHOT: generate
This will generate a new andromda project:
I created a j2ee project, uml2, no persistence cartridge, jsf, portlet, icefaces support.
Edited the mda\src\main\uml\sample_project.xml using MagicDraw 16.5 community version
Added a state diagram with one state and one controller class.
Tested compiling from the command line with the mvn command from the root folder of the sample_project folder. The project compiled with a number of isses, look like missing icefaces components. Ran the command mvn eclipse:eclipse to generate the eclipse project so that I could review the code inside of Eclipse. Got the following error:
"Cant canonicalize system path:" ---> had to change line in the web/pom.xml from
<targetPath>${project.basedir}/target/src/main/webapp</targetPath>
to:<targetPath>../target/src/main/webapp</targetPath>
Compiled ok. Open in Eclipse (Helios).
Hello,
ReplyDeleteI'm really interested in your work.
Have you met some new problems?
Have you found a configuration in which AndroMDA3.4 is compatible with Liferay? (I've had some issues using a jBoss 5 version, it seems to work better on jBoss 4, but haven't tried yet.)
Regards.
The portlet project is very far behind right now. I have not tried this again recently though.. so it is possible the portlet is working better. I have been waiting a bit on this for the JSF2 portlets to mature a bit. We are utilizing icefaces for the ui components. I have taken a branch of andromda (just grabbed a new version on Friday in fact). Since we are using Glassfish for our EJB backend, I have had to make some modifications to Andromda to get this to work. Andromda is heavily JBoss dependent right now. We have also modified andromda to utilize the Glassfish Microcontainer for unit testing.
ReplyDelete