Working with Maven Repositories in m2eclipse

m2eclipse 0.10.0 has a new view which allows you to manage Maven repositories.  This Maven Repositories view allows you to:

  1. Manage Local Repositories
  2. Manage Global Repositories
  3. Inspecting and Opening a POM from the Repository Browser
  4. Modify the Indexing Settings – Enable Full Index or Min Index
  5. Materialize Projects from a Repository (Assuming that they have the appropriate meta-data)

Important Note: If you need to search for dependencies by class name, you will need to select Enable Full Index for the central repository.

Watch this video for instructions on managing maven repositories.

 

Categories: Sonatype Tags:

How To Configure the Maven-Jetty Plugin for OpenEJB

Many of you are developing with light-weight servlet containers such as Jetty or Tomcat.  While these platforms lend themselves to rapid application development, they often force you to forgo some of the benefits of running in a larger application server.  One of the most challenging tasks is finding a way to integrate a transaction manager into a simpler servlet-container without adding too much complexity to your configuration.  In this post, Stephen Connolly demonstrates how configure the maven-jetty-plugin to start Jetty with OpenEJB.

To read the full post, click here.

 

Categories: Maven, Sonatype Tags: , , , ,

10 Maven Myths Debunked!

We found this great blog post about the top 10 myths surrounding Maven.  The article offers in depth analysis of these Maven myths, a thorough debunking of each one, and constructive ways to take action if you still disagree.  To read the full article, click here.

Maven has been a real joy for me. It could be the simple fact that I can move from colleague to colleague’s project without wondering what ant tasks are available or where the files are. It could be the fact I don’t have to configure IDE’s anymore, not even for downloading sources. It could be some of my favorite plug-ins. Maybe it’s the 250,739 artifacts that are available in three lines of copy paste declaration. There’s a lot to love.

Thanks for the props!

 

Categories: Sonatype Tags:

Adding Dependencies Using m2eclipse

This video demonstrates how easy it is to add dependencies using m2eclipse.    Because m2eclipse understands how to interact with a repository index, it can quickly locate a dependency by class name or by GAV coordinate.    Don’t know which artifact contains a particular class?   Just start writing code and use an Eclipse Quick Fix to search all Maven repositories for an artifact that contains a particular class.    Want to inspect and browse a Maven repository? Don’t use a web browser.  Use the built-in dependency search feature in m2eclipse.

 

Categories: Sonatype, m2eclipse Tags: , , ,

The ‘Bottom Line’ in the Maven – Ant Debate

Much has been said in the blogosphere about the differences between Maven and Ant.  Lines have been drawn between tech bloggers, and one thing has become clear; people love to argue about Maven versus Ant.  And we love the debate.  Constructive criticism is what keeps companies fresh, and products user-friendly.  Here is another chapter in the debate:

Standardization of build systems is one of the main benefits that Maven brought to the world. If you know one Maven project, you can switch to any other project built with Maven and feel comfortable immediately. This increases productivity, both personally and for your company, which is one of the reasons more and more companies switch over from Ant to Maven.

To read the full post, click here.

 

Categories: Sonatype Tags: