Author Archive

Tracking Changelist Conflicts in Maia

Thursday, November 5th, 2009

Working on more than one task at once, you may run in some problems with your changes. Say, you have changed some files in a changelist, then switched to another changelist and made a massive refactoring. Oops! Some files in the first changelist are touched too. Now, committing any of these changelists without the other may lead to troubles.

Maia introduces a way to avoid such scenarios. You can protect files in inactive changelists. When you’re trying to change them (by direct editing or by applying a refactoring) you will see a dialog indicating the files to be changed:

The dialog gives you a number of options to resolve the conflict. You can shelve the changes you made in an inactive changelist and unshelve them later. You can move the previously changed files into the active changelist so that they would be committed together. If all conflicting files belong to a single changelist, you can switch to it, and the new changes will be added there. Finally, you can just ignore the notification and manage the conflict manually.

This strict protection is not enabled by default. You should go to Project Settings -> Version Control -> Changelist Conflicts and select the Show conflict resolving dialog option.

By default, IntelliJ IDEA warns you if you changed files from an inactive changelist. They are highlighted in the Project View, and have a yellow stripe in the editor.

Servlet 3.0 (JSR 315) support in Maia

Tuesday, October 6th, 2009

Maia supports Servlet 3.0 specification (JSR 315). You can now create a Web application without a web.xml descriptor:

Now, configure your servlets and filters with @WebServlet and @WebFilter annotations:

Everything is recognized by IntelliJ IDEA, as well as Web fragment descriptors and static resources packaged in libraries.

You can also use built-in Glassfish v3.0 integration to deploy your applications. Good luck!

Task & Context Management in Maia

Thursday, May 21st, 2009

You can bond your JIRA account and IntelliJ IDEA together via Project Settings dialog, Tasks, Servers panel, then activate a task via Tasks, Activate Task menu.

It cleans your workspace, creates a change list, and optionally loads a stacktrace into IntelliJ IDEA (if there is an exception description in that task).

IntelliJ IDEA also gives you a convenient way of switching between your tasks and contexts.

This feature is available in the upcoming first Maia EAP at www.intellij.net/eap