1st
NOV

Serious problem in Netbeans & Maven

Posted by Keith under Java

After struggling for hours to make Netbeans work with Maven/Struts, I found this:

http://java.sun.com/developer/community/askxprt/2007/jl1022.html

question Kris Bravo: I recently tried to use the portal support in combination with a Maven 2 project. Since the new release changed to a model of adding a portal to an existing web application project, I was hopeful that this could be done in my existing Maven project. After giving it some effort I was unable to make this work.

Is it possible, and if not, will it be in the future?

answerBrian Leonard: I asked Milos Kleint, author of the Maven plugin, here was his response:

Well, the web side of maven support is not really supported on the full scale comparable to ant based projects. What works is deployment and some other basic stuff. I’m not sure about how portal support is implemented. I suppose it’s just another webframework on top of web projects. I have done some experimental work on webframeworks support for maven projects (alpha-beta quality). Currently works with struts, but not with visual web for example. Probably a matter of planning and priorities for post 6.0. This kind of integration work needs to be done across teams.

Your best avenue for carrying this topic further is probably the mevenide mailing list. There you’ll find plenty of others in the Maven community (including Milos), who can more directly help you with this issue.

So, current Maven plugin for Netbeans doesn’t support Web application. Using Maven’s goals work fine, but it won’t support Visual web tool and running web app. After SVN check out a Maven project, the IDE recognized it as a Maven project automatically (of course, after installing Maven plugin). It is a Struts project, so I brought up the Properties, but there is no “framework” node. Struts framework can’t be added. Bummer.

27th
OCT

Netbeans and Maven, and Eclipse Europa issues

Posted by Keith under Java

I’ve installed and I am exploring Netbeans 6.0 beta 2. So far, it’s pretty good, with all the goodies in one installation. (Downloaded “ALL” included package.)

Maven
One thing to be careful is - if there’s a maven project in CVS or SVN, then add the Maven plug-in first, then check out the project. It’ll handle the module as Maven project. Checking out first and installing the plug-in doesn’t work.

Plug-ins
Eclipse is more flexible in many ways including adding any plugins from any sites, but I like the way Netbeans handles the plugins. It loads up list of plugins and lets you choose the ones you want to install. It also let you add 3rd party sites for plug-ins.

Another thing I like it about is how it handles project directory. Eclipse updates files in .meta folder for each project (correct me if I’m wrong), and moving around the project directory is a bit hassle. And when something goes wrong, I have to use fresh copy of Eclipse, or remove the .meta folder and set things up from scratch.

Eclipse still have a lot of advantages; and the biggest advantage is supporting multiple languages quite well.

Problems with Eclipse Europa and Tomcat
The Europa version’s WTP has a serious problem with Tomcat — if web application consumes large amount of memory, it’s easy to get heap memory (out of memory) error, and there is no way to increase the Tomcat memory. (note: not the memory settings for Eclipse IDE, but for Tomcat.) I haven’t found the solution to this problem so far. And, if I forget to shutdown the Tomcat through IDE and restart Eclipse, it doesn’t let you “shutdown” through IDE. I have to use shutdown.sh or shutdown.bat from console. Eclipse 3.2 doesn’t have any of these issues with Tomcat Sysdeo plugin, and I’m going to go back to 3.2 if I can’t find the solution soon for the memory issue at least. I’ve spent too much time to find the solution and failed.
This has been resolved. See:
http://blog.keithkim.com/2007/10/eclipse-europa-tomcat-memory-issue-solved/

13th
OCT

eclipse and UTF8 in Console Window

Posted by Keith under Java

To display UTF8 characters in eclipse console window, do following:

  1. Preferences
  2. Go to Installed JRE
  3. Edit JRE
  4. Enter: -Dfile.encoding=”UTF-8″ in “Default VM Arguments”

6th
SEP

OSX Safari Browser Testing

Posted by Keith under Cool Apps

Seldom I have to know how pages look like on Mac OSX Safari. Here is a free site which will show you in image format once you enter a URL.

http://www.browsrcamp.com/

31st
JUL

Windows and Unix

Posted by Keith under Cool Apps, Development Tools

Here is list of windows software for developers who work with Unix/Linux often: