Maven+Jetty+Dojo (and IntelliJ)

November 2009

I already showed my gratitude towards the ease of rapid development using the jetty-maven-plugin in an earlier post. But now i am even more surprised....

I was working on some new Dojo demos for our courses. Looking for an easy lab environment for these new demos i was experimenting with the jetty-maven-plugin and was amazed by its ease of integrating dojo in your maven/jetty project. I found it here.

Just by adding the following

<dependency>
  <groupId>org.dojotoolkit</groupId>
  <artifactId>dojo-war</artifactId>
  <version>1.3.2</version>
  <type>war</type>
</dependency>

It will overlay your web application; just run jetty:run and access http://localhost:8080/dojo

It did not stop there! When i imported the project in IntelliJ it recognized it instantly!

And i was able to use code completion, jump to source code, etc ...