You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

What is this?

This document is indended to record the development precedures used by the Maven development community.

Who is this for?

The primary audience is Maven committers.

Setting Up Your Environment

To be able to build the latest SVN version of some part of Maven you will need to add some configuration on your development machine.

Snapshots

First on the agenda is to enable the Apache snapshot repository. Add a profile for your Apache related settings in your settings.xml like this:

Enable snapshots in settings.xml
<settings>
  ...
  <profiles>
    <profile>
      <id>apache</id>
      <repositories>
        <repository>
          <id>apache.snapshots</id>
          <url>http://people.apache.org/maven-snapshot-repository/</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>apache.snapshots</id>
          <url>http://people.apache.org/maven-snapshot-repository/</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
</settings>

This tells Maven where to find snapshot versions of plugins and other artifacts. To use a profile you must tell Maven that you want to use a profile and pass along the id of that profile. When invoking Maven do it like this:

mvn -Papache <phase|goal>
  • No labels