www-announce mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Bentmann <bentm...@apache.org>
Subject [ANN] Apache Parent POM 7 Released
Date Wed, 30 Dec 2009 14:20:56 GMT
The Maven team is pleased to announce the release of the Apache Parent
POM, version 7.

This POM provides a base configuration for ASF projects build with
Apache Maven [0]. Besides some updated plugin versions, the most
interesting change in this version of the POM is the inclusion of a
configuration for the Maven Assembly Plugin to produce ASF-compliant
source distributions. Please see [1] for a detailed diff to the previous
version.

In more detail, the Assembly Plugin configuration for the source
distribution is part of the profile "apache-release" that was already
introduced in version 6 of the parent POM. This configuration creates a
ZIP archive containing the project's sources at the root module of the
release process.

Projects with different needs regarding the source distribution and/or
release process have the following options:

a) Create a custom assembly descriptor (see [2]) for the source
distribution and set the POM property "sourceReleaseAssemblyDescriptor"
to its name.

b) Disable the predefined execution "source-release-assembly" of the
Assembly Plugin via the following POM snippet:

   <plugin>
     <artifactId>maven-assembly-plugin</artifactId>
     <version>2.2-beta-5</version>
     <executions>
       <execution>
         <id>source-release-assembly</id>
         <configuration>
           <skipAssembly>true</skipAssembly>
         </configuration>
       </execution>
     </executions>
   </plugin>

c) Configure the Maven Release Plugin to use another release profile
than the predefined "apache-release" via something like this:

   <plugin>
     <artifactId>maven-release-plugin</artifactId>
     <version>2.0-beta-9</version>
     <configuration>
       <arguments>-Pcustom-release</arguments>
     </configuration>
   </plugin

Note: Version 2.2-beta-5 of the Maven Assembly Plugin is required for
proper creation of the source distribution. Please be sure to check the
plugin version used is not locked down to an older version in some of
your downstream POMs.

Use the following snippet to inherit from this POM for your Maven
managed projects:

   <parent>
     <groupId>org.apache</groupId>
     <artifactId>apache</artifactId>
     <version>7</version>
   </parent>

Enjoy,


-The Maven team


[0] http://maven.apache.org/
[1]
http://svn.apache.org/viewvc/maven/pom/trunk/asf/pom.xml?r1=766951&r2=893966
[2]
http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html


Mime
View raw message