Adding additional source folders to your Maven build

May 22, 2008 By

Occasionally you have a need to add additional source folders to your Maven build, usually when you are generating source via some external method or AntTask. Maven plugins that generate sources are expected to add the source folder automatically, but that’s of little consequence if your generation method is not supported by an existing Maven plugin. Fortunately, there is the build-helper-maven-plugin to assist you. The usage page gives plenty of examples. Adding an additional source folder is as simple as: (more…)

Categories: How-To, Maven Tags: , ,

m2eclipse Chapter, a Quick Survey of Archetypes (v0.9)

May 20, 2008 By

m2eclipse is more than just a simple plugin, it changes the way you’ll create projects. Specifically, it will allow you to create projects from archetypes without having to type a command-line the size of a paragraph. I just updated the m2eclipse chapter and included more details about the 88 available archetypes in the Maven repository.

On deck for the book is information about the POM editor…

The following is an excerpt from the chapter. What is interesting about the m2eclipse plugin is that it has the side-effect of making it easier to adopt the projects that have created Maven Archetypes. Granted, this project list could be larger, but it should be interesting to someone who wants to get a quickstart into developing an application with Wicket or AppFuse. The other thing that is very cool about m2eclipse is that it doesn’t ship with a static list of archetypes, m2eclipse is using the Nexus Indexer to maintain an index of the Maven repository.

When this chapter was last updated, m2eclipse had approximately ninety archetypes in this Archetype dialog. Highlights of this list include:

[4]And these were just the archetypes that were listed under the Nexus Indexer Catalog, if you switch Catalogs you’ll see other archetypes. While your results may vary, the following additional archetypes were available in the Internal Catalog:

  • Atlassian Confluence Plugin Archetype under com.atlassian.maven.archetypes

  • Apache Struts Archetypes under org.apache.struts

  • Apache Shale Archetypes under org.apache.shale

Categories: Book, m2eclipse

Geertjan's Netbeans Maven Post and Synchronicity

May 20, 2008 By

Geertjan posted a blog post about Netbeans and the wide array of Maven Archetypes this morning, I posted an almost identical post from an Eclipse perspective. This was an entirely unplanned coincidence, but it is a synchronicity that tells me that the usefulness of the archetype plugin is upon us, and that it is triggered by IDE integration.

If you are not already a subscriber to Geertjan’s blog, you should subscribe. He’s a great communicator, and also very much of the cooperative, open source ethos. Even though we’re focused on Eclipse integration at the moment, I get the sense that Netbeans has really started to become an attractive development platform (especially for JRuby). If you think we shuld pay more attention to the Maven Netbeans integration feel free to let us know by leaving a comment on this blog.

Categories: Sonatype

Misused Maven terms Defined

May 19, 2008 By

When responding to questions on IRC, the Maven Users list, or giving Maven Training, I frequently run into misused terms of the Maven lingo. Here’s an attempt to define them “for the record”: (more…)

Categories: How-To, Maven Tags: , ,

Nexus RoadMap and REST API details published

May 19, 2008 By

All Nexus functionality is exposed via a RESTful API, the details of this API have been published. This is a work in progress as we continue to add new functionality, but these pages are regularly updated as part of our development process.

Also posted is our up to date product roadmap.

If you have ideas or want to get something added to the map, please join us at #nexus on irc.codehaus.org or Subscribe to our user list and report an issue to our Jira.

Categories: How-To, Maven, Nexus