Adding additional source folders to your Maven build
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…)
m2eclipse Chapter, a Quick Survey of Archetypes (v0.9)
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:
Standard Maven Archetypes to create
Maven Plugins
Simple Web Applications
Simple Projects
New Maven Archetypes
Databinder Archetypes (data-driven Wicket Applications) under
net.databinderApache Cocoon Archetypes under
org.apache.cocoonApache Directory Server Archetypes under
org.apache.directory.serverApache Geronimo Archetypes under
org.apache.geronimo.buildsupportApache MyFaces Archetypes under
org.apache.myfaces.buildtoolsApache Tapestry Archetypes under
org.apache.tapestryApache Wicket Archetypes under
org.apache.wicketAppFuse Archetypes under
org.appfuse.archetypesCodehaus Cargo Archetypes under
org.codehaus.cargoCodehaus Castor Archetypes under
org.codehaus.castorGroovy-based Maven Plugin Archetypes (deprecated) under
org.codehaus.mojo.groovyJini Archetypes
Mule Archetypes under
org.mule.toolsObjectweb Fractal Archetypes under
org.objectweb.fractalObjectweb Petals Archetypes under
org.objectweb.petalsops4j Archetypes under
org.ops4jParancoe under
org.parancoeslf4j Archetypes under
org.slf4jSpringframework OSGI and Web Services Archetypes under
org.springframeworkTrails Framework Archetypes under
org.trailsframework
[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.archetypesApache Struts Archetypes under
org.apache.strutsApache Shale Archetypes under
org.apache.shale
Geertjan's Netbeans Maven Post and Synchronicity
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.
Misused Maven terms Defined
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…)
Nexus RoadMap and REST API details published
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.