Hi Stefan, +1
This is something I also wanted to do. I started working on it last friday and wanted to finish it tomorrow morning. Here's the diff of my project pom: > Index: pom.xml > =================================================================== > --- pom.xml (revision 1076285) > +++ pom.xml (working copy) > @@ -412,12 +412,6 @@ > </prerequisites> > > <properties> > - <!-- ======================================================= --> > - <!-- The use an alternative release deployment repository see --> > - <!-- http://cwiki.apache.org/confluence/x/0dc --> > - <!-- ======================================================== --> > - <release.altDeploymentRepository /> > - > <!-- ================================================ --> > <!-- Set default encoding for reports and generated --> > <!-- source files --> > @@ -821,152 +815,39 @@ > > <profiles> > <profile> > - <id>release</id> > + <id>apache-release</id> > <build> > - <plugins> > - > - <!-- We want do the rat check > - <plugin> > - <groupId>org.apache.rat</groupId> > - <artifactId>apache-rat-plugin</artifactId> > - <configuration> > - <excludes> > - <exclude>**/target/**/*</exclude> > - <exclude>**/cobertura.ser</exclude> > - <exclude>**/.classpath</exclude> > - <exclude>**/.project</exclude> > - <exclude>**/.settings/**/*</exclude> > - <exclude>**/*.iml</exclude> > - <exclude>**/*.ipr</exclude> > - <exclude>**/*.iws</exclude> > - <exclude>**/MANIFEST.MF</exclude> > - </excludes> > - </configuration> > - <executions> > - <execution> > - <phase>verify</phase> > - <goals> > - <goal>check</goal> > - </goals> > - </execution> > - </executions> > + > + > + <pluginManagement> > + <plugins> > + <plugin> > + <groupId>org.apache.rat</groupId> > + <artifactId>apache-rat-plugin</artifactId> > + <configuration> > + <excludeSubProjects>true</excludeSubProjects> > + <excludes> > + <!-- MAVEN_DEFAULT_EXCLUDES --> > + <exclude>**/target/**/*</exclude> > + <exclude>**/cobertura.ser</exclude> > + <!-- ECLIPSE_DEFAULT_EXCLUDES --> > + <exclude>**/.classpath</exclude> > + <exclude>**/.project</exclude> > + <exclude>**/.settings/**/*</exclude> > + <!-- IDEA_DEFAULT_EXCLUDES --> > + <exclude>**/*.iml</exclude> > + <exclude>**/*.ipr</exclude> > + <exclude>**/*.iws</exclude> > + <!-- MANIFEST_MF_EXCLUDES --> > + <exclude>**/MANIFEST.MF</exclude> > + </excludes> > + </configuration> > </plugin> > - --> > - > - > - <plugin> > - <groupId>org.apache.maven.plugins</groupId> > - <artifactId>maven-release-plugin</artifactId> > - <configuration> > - <useReleaseProfile>false</useReleaseProfile> > - <goals>deploy</goals> > - <arguments>-Prelease > ${release.altDeploymentRepository}</arguments> > - </configuration> > - </plugin> > - > - <!-- We want a source jar --> > - <plugin> > - <groupId>org.apache.maven.plugins</groupId> > - <artifactId>maven-source-plugin</artifactId> > - <executions> > - <execution> > - <goals> > - <goal>jar</goal> > - </goals> > - </execution> > - </executions> > - </plugin> > - > - <!-- We want to sign the artifact, the POM, and all attached > artifacts --> > - <plugin> > - <groupId>org.apache.maven.plugins</groupId> > - <artifactId>maven-gpg-plugin</artifactId> > - <inherited>true</inherited> > - <configuration> > - <passphrase>${gpg.passphrase}</passphrase> > - </configuration> > - <executions> > - <execution> > - <goals> > - <goal>sign</goal> > - </goals> > - </execution> > - </executions> > - </plugin> > - > - <!-- In the future... --> > - <!-- We want to deploy the artifact to a staging location for > perusal --> > - <plugin> > - <groupId>org.apache.maven.plugins</groupId> > - <artifactId>maven-deploy-plugin</artifactId> > - <inherited>true</inherited> > - <configuration> > - <!-- uncomment to enable "staged" release process --> > - > <!--<altDeploymentRepository>${deploy.altRepository}</altDeploymentRepository>--> > - <updateReleaseInfo>true</updateReleaseInfo> > - </configuration> > - </plugin> > - > - <!-- We want the JavaDoc JAR published with the release --> > - <plugin> > - <groupId>org.apache.maven.plugins</groupId> > - <artifactId>maven-javadoc-plugin</artifactId> > - <inherited>true</inherited> > - <configuration> > - <source>1.5</source> > - </configuration> > - <executions> > - <execution> > - <id>attach-javadocs</id> > - <goals> > - <goal>jar</goal> > - </goals> > - </execution> > - </executions> > - </plugin> > - </plugins> > + </plugins> > + </pluginManagement> > + > </build> > </profile> > - > - <profile> > - <id>full</id> > - <build> > - <plugins> > - > - <!-- We want a source jar --> > - <plugin> > - <groupId>org.apache.maven.plugins</groupId> > - <artifactId>maven-source-plugin</artifactId> > - <executions> > - <execution> > - <goals> > - <goal>jar</goal> > - </goals> > - </execution> > - </executions> > - </plugin> > - > - <!-- We want the JavaDoc JAR published with the release --> > - <plugin> > - <groupId>org.apache.maven.plugins</groupId> > - <artifactId>maven-javadoc-plugin</artifactId> > - <inherited>true</inherited> > - <configuration> > - <source>1.5</source> > - </configuration> > - <executions> > - <execution> > - <id>attach-javadocs</id> > - <goals> > - <goal>jar</goal> > - </goals> > - </execution> > - </executions> > - </plugin> > - </plugins> > - </build> > - </profile> > - > <!-- Specific profile used to append a string to project name --> > <profile> > <id>append-to-project-name</id> I also removed the full profile. Regards, Pierre-Arnaud On 6 mars 2011, at 21:04, Stefan Seelmann wrote: > Hi all, > > I'd like to make the following changes in project pom.xml: > - Update parent to org.apache:apache:9 > - Remove the 'release' profile (this was already discussed in two threads) > - Add the 'rat' check > - Remove the release.altDeploymentRepository property > > Changes already done since version 20: > - Plugin versions have been updated > - append-to-project-name profile has been added > > When done I'd like to relasese version 21 and use that for the > upcoming shared release. > > Kind regards > Stefan
