You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Seelmann <se...@apache.org> on 2011/03/06 21:04:09 UTC

Changes in 'project' pom.xml and release of version 21

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

Re: Changes in 'project' pom.xml and release of version 21

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 3/6/11 9:04 PM, 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.
+1


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: Changes in 'project' pom.xml and release of version 21

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
On 6 mars 2011, at 21:42, Stefan Seelmann wrote:

> Hi Pierre-Arnaud,
> 
> oh, sorry for hijacking :-)

Héhé, no problem. ;-)

> On Sun, Mar 6, 2011 at 9:26 PM, Pierre-Arnaud Marcelot <pa...@marcelot.net> wrote:
> 
>>>    <profiles>
>>>      <profile>
>>> -      <id>release</id>
>>> +      <id>apache-release</id>
> ...
>>> +    <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>
> 
> So the rat check configuration is only activated when
> preparing/performing the release? I mean wouldn't it be better to see
> violations early?

Yeah, probably. You're right.
Do you want to activate it by default?

> Kind regards,
> Stefan


Re: Changes in 'project' pom.xml and release of version 21

Posted by Stefan Seelmann <se...@apache.org>.
Hi Pierre-Arnaud,

oh, sorry for hijacking :-)

On Sun, Mar 6, 2011 at 9:26 PM, Pierre-Arnaud Marcelot <pa...@marcelot.net> wrote:

>>    <profiles>
>>      <profile>
>> -      <id>release</id>
>> +      <id>apache-release</id>
...
>> +    <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>

So the rat check configuration is only activated when
preparing/performing the release? I mean wouldn't it be better to see
violations early?

Kind regards,
Stefan

Re: Changes in 'project' pom.xml and release of version 21

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
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


Re: Changes in 'project' pom.xml and release of version 21

Posted by Felix Knecht <fe...@apache.org>.
On 03/06/2011 09:04 PM, 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.

Go for it.

Thanks and regards
Felix

Re: Changes in 'project' pom.xml and release of version 21

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
On 7 mars 2011, at 11:28, Pierre-Arnaud Marcelot wrote:

> I will update the sub-projects pom whenever the new Project pom becomes available on the main repo.

Done!

Regards,
Pierre-Arnaud

Re: Changes in 'project' pom.xml and release of version 21

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Thanks Stefan!

Button pushed. :)

I will update the sub-projects pom whenever the new Project pom becomes available on the main repo.

Regards,
Pierre-Arnaud

On 6 mars 2011, at 23:29, Stefan Seelmann wrote:

> So here are all changes [1]:
> - Updated parent to org.apache:apache:9
> - Updated plugin versions
> - Removed the 'release' and 'full' profile
> - Added the 'append-to-project-name' profile
> - Configured the 'rat' check for the project pom
> - Always execute the 'rat' check
> - Removed the release.altDeploymentRepository property
> 
> The tagged pom can be found at [2], the staging repository can be found at [3].
> 
> After the grace period of 4 hours the artifacts can be released. I may
> not be able to do that within the next 12 hours, so feel free to push
> the button.
> 
> Kind regards
> Stefan
> 
> [1] http://svn.apache.org/viewvc/directory/project/tags/21/pom.xml?r1=1068354&r2=1078603
> [2] https://svn.apache.org/repos/asf/directory/project/tags/21/
> [3] https://repository.apache.org/content/repositories/orgapachedirectory-005/
> 
> 
> 
> On Sun, Mar 6, 2011 at 9:04 PM, Stefan Seelmann <se...@apache.org> 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
>> 


Re: Changes in 'project' pom.xml and release of version 21

Posted by Stefan Seelmann <se...@apache.org>.
So here are all changes [1]:
- Updated parent to org.apache:apache:9
- Updated plugin versions
- Removed the 'release' and 'full' profile
- Added the 'append-to-project-name' profile
- Configured the 'rat' check for the project pom
- Always execute the 'rat' check
- Removed the release.altDeploymentRepository property

The tagged pom can be found at [2], the staging repository can be found at [3].

After the grace period of 4 hours the artifacts can be released. I may
not be able to do that within the next 12 hours, so feel free to push
the button.

Kind regards
Stefan

[1] http://svn.apache.org/viewvc/directory/project/tags/21/pom.xml?r1=1068354&r2=1078603
[2] https://svn.apache.org/repos/asf/directory/project/tags/21/
[3] https://repository.apache.org/content/repositories/orgapachedirectory-005/



On Sun, Mar 6, 2011 at 9:04 PM, Stefan Seelmann <se...@apache.org> 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
>