You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Vincent Siveton <vi...@gmail.com> on 2008/07/16 22:35:56 UTC

How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Hi guys,

What are the minimalist things that we need to check for a good Maven release?
Dennis points that we need to reduce Checkstyle errors, checking Clirr
report and licenses.
Any others ideas?

Cheers,

Vincent

---------- Forwarded message ----------
From: Dennis Lundberg <de...@apache.org>
Date: 16 juil. 2008 15:48
Subject: Re: [VOTE] Release Maven antrun plugin version 1.2
To: Maven Developers List <de...@maven.apache.org>


Thanks for pushing for this release Carlos!

 Unfortunately there are a couple of things that needs to be fixed
before we can release 1.2, for which I have to vote -1 to the current
release candidate.

 - The POM is missing the license header (I fixed this in svn)
 - The Source files have the old license headers (I fixed this in svn)
 - The documentation fix for MANTRUN-75 is not included in the 1.2 tag

 Here are some minor things that are nice to fix prior to the release,
all of which I have fixed in svn trunk.

 - Use latest version of maven-plugin-plugin and maven-site-plugin
 - Fix errors reported by Checkstyle
 - Add missing scm info in the POM

 The Clirr report [1] shows one error, one of the constructors for
AntPropertyHelper has changed the number of parameters. This was done
in r374150 as part of the fix for MANTRUN-41. I guess that we can live
with that change. Do we need to document it?


 [1] http://maven.apache.org/plugins/maven-antrun-plugin-1.2/clirr-report.html


 Carlos Sanchez wrote:

> Hi,
>
> 9 issues fixed. Last release was 2.5 years ago
>
> http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11125&styleName=Html&version=12210
>
> Staging repo:
> http://people.apache.org/~carlos/staging-repo
>
> Staging site:
> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/
>
> Guide to testing staged releases:
> http://maven.apache.org/guides/development/guide-testing-releases.html
>
> Vote open for 72 hours.
>
> [ ] +1
> [ ] +0
> [ ] -1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
>


 --
 Dennis Lundberg


 ---------------------------------------------------------------------
 To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
 For additional commands, e-mail: dev-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Vincent Siveton <vi...@gmail.com>.
Sure! It is the goal of my question ;)

Vincent

2008/7/16, Carlos Sanchez <ca...@carlossanchez.eu>:
> whatever it is needs to be added to
>  http://maven.apache.org/developers/release/releasing.html
>
>
>  On Wed, Jul 16, 2008 at 1:35 PM, Vincent Siveton
>  <vi...@gmail.com> wrote:
>  > Hi guys,
>  >
>  > What are the minimalist things that we need to check for a good Maven release?
>  > Dennis points that we need to reduce Checkstyle errors, checking Clirr
>  > report and licenses.
>  > Any others ideas?
>  >
>  > Cheers,
>  >
>  > Vincent
>  >
>  > ---------- Forwarded message ----------
>  > From: Dennis Lundberg <de...@apache.org>
>  > Date: 16 juil. 2008 15:48
>  > Subject: Re: [VOTE] Release Maven antrun plugin version 1.2
>  > To: Maven Developers List <de...@maven.apache.org>
>  >
>  >
>  > Thanks for pushing for this release Carlos!
>  >
>  >  Unfortunately there are a couple of things that needs to be fixed
>  > before we can release 1.2, for which I have to vote -1 to the current
>  > release candidate.
>  >
>  >  - The POM is missing the license header (I fixed this in svn)
>  >  - The Source files have the old license headers (I fixed this in svn)
>  >  - The documentation fix for MANTRUN-75 is not included in the 1.2 tag
>  >
>  >  Here are some minor things that are nice to fix prior to the release,
>  > all of which I have fixed in svn trunk.
>  >
>  >  - Use latest version of maven-plugin-plugin and maven-site-plugin
>  >  - Fix errors reported by Checkstyle
>  >  - Add missing scm info in the POM
>  >
>  >  The Clirr report [1] shows one error, one of the constructors for
>  > AntPropertyHelper has changed the number of parameters. This was done
>  > in r374150 as part of the fix for MANTRUN-41. I guess that we can live
>  > with that change. Do we need to document it?
>  >
>  >
>  >  [1] http://maven.apache.org/plugins/maven-antrun-plugin-1.2/clirr-report.html
>  >
>  >
>  >  Carlos Sanchez wrote:
>  >
>  >> Hi,
>  >>
>  >> 9 issues fixed. Last release was 2.5 years ago
>  >>
>  >> http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11125&styleName=Html&version=12210
>  >>
>  >> Staging repo:
>  >> http://people.apache.org/~carlos/staging-repo
>  >>
>  >> Staging site:
>  >> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/
>  >>
>  >> Guide to testing staged releases:
>  >> http://maven.apache.org/guides/development/guide-testing-releases.html
>  >>
>  >> Vote open for 72 hours.
>  >>
>  >> [ ] +1
>  >> [ ] +0
>  >> [ ] -1
>  >>
>  >> ---------------------------------------------------------------------
>  >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>  >> For additional commands, e-mail: dev-help@maven.apache.org
>  >>
>  >>
>  >>
>  >
>  >
>  >  --
>  >  Dennis Lundberg
>  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>  >  For additional commands, e-mail: dev-help@maven.apache.org
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>  > For additional commands, e-mail: dev-help@maven.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>  For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Carlos Sanchez <ca...@carlossanchez.eu>.
whatever it is needs to be added to
http://maven.apache.org/developers/release/releasing.html

On Wed, Jul 16, 2008 at 1:35 PM, Vincent Siveton
<vi...@gmail.com> wrote:
> Hi guys,
>
> What are the minimalist things that we need to check for a good Maven release?
> Dennis points that we need to reduce Checkstyle errors, checking Clirr
> report and licenses.
> Any others ideas?
>
> Cheers,
>
> Vincent
>
> ---------- Forwarded message ----------
> From: Dennis Lundberg <de...@apache.org>
> Date: 16 juil. 2008 15:48
> Subject: Re: [VOTE] Release Maven antrun plugin version 1.2
> To: Maven Developers List <de...@maven.apache.org>
>
>
> Thanks for pushing for this release Carlos!
>
>  Unfortunately there are a couple of things that needs to be fixed
> before we can release 1.2, for which I have to vote -1 to the current
> release candidate.
>
>  - The POM is missing the license header (I fixed this in svn)
>  - The Source files have the old license headers (I fixed this in svn)
>  - The documentation fix for MANTRUN-75 is not included in the 1.2 tag
>
>  Here are some minor things that are nice to fix prior to the release,
> all of which I have fixed in svn trunk.
>
>  - Use latest version of maven-plugin-plugin and maven-site-plugin
>  - Fix errors reported by Checkstyle
>  - Add missing scm info in the POM
>
>  The Clirr report [1] shows one error, one of the constructors for
> AntPropertyHelper has changed the number of parameters. This was done
> in r374150 as part of the fix for MANTRUN-41. I guess that we can live
> with that change. Do we need to document it?
>
>
>  [1] http://maven.apache.org/plugins/maven-antrun-plugin-1.2/clirr-report.html
>
>
>  Carlos Sanchez wrote:
>
>> Hi,
>>
>> 9 issues fixed. Last release was 2.5 years ago
>>
>> http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11125&styleName=Html&version=12210
>>
>> Staging repo:
>> http://people.apache.org/~carlos/staging-repo
>>
>> Staging site:
>> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/
>>
>> Guide to testing staged releases:
>> http://maven.apache.org/guides/development/guide-testing-releases.html
>>
>> Vote open for 72 hours.
>>
>> [ ] +1
>> [ ] +0
>> [ ] -1
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>
>
>
>  --
>  Dennis Lundberg
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>  For additional commands, e-mail: dev-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Benjamin Bentmann <be...@udo.edu>.
Vincent Siveton wrote:

> What are the minimalist things that we need to check for a good Maven release?
> [...]
> Any others ideas?

Cross-compiling against the intended minimum JDK to catch accidental 
usage of newer types/methods.

Checking for properly declared dependencies with the help of 
dependency:analyze.


Benjamin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Vincent Siveton <vi...@gmail.com>.
Hi,

Following the recent Dennis's comments on MPIR and Antrun, I asked
myself how to improve our QA review and specially how to handle Maven
reports in the release process.
Does release manager need to justify failing reports for a given
release? If so, how.
How to improve the Maven report conf regarding our QA review/release process?

Other thoughts?

Vincent

2008/7/16 Vincent Siveton <vi...@gmail.com>:
> Hi guys,
>
> What are the minimalist things that we need to check for a good Maven release?
> Dennis points that we need to reduce Checkstyle errors, checking Clirr
> report and licenses.
> Any others ideas?
>
> Cheers,
>
> Vincent
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Jason van Zyl <ja...@maven.org>.
On 20-Jul-08, at 11:26 AM, Vincent Siveton wrote:

> Hi,
>
> 2008/7/19, Jason van Zyl <ja...@maven.org>:
>> This is great as long as it does not become bureaucratic and  
>> onerous for
>> everyone to do a release.
>
> Totally agree with you: it could be time consuming for the release
> manager and for the committers which review...
>
>> How to prevent that is codify the process in the tooling. No one  
>> has ever,
>> and never will, follow a workflow that is defined in a document.  
>> People are
>
> Not agree with you. I think several PMCs follow the "Releasing A Maven
> Project" doc.
>

Several possibly. But we've made many attempts to document the release  
process and it's generally not been finished or followed. I think what  
people have followed is the profile that was setup because they don't  
have any choice. If you can pick people up and put them in a defined  
workflow it's a lot easier for people. People either just don't read,  
or sometime misinterpret steps.

>> just people and most people themselves won't do it the same way  
>> twice unless
>> they do it often, and different people doing it the same? No chance.
>
> Agree with you. More PMCs make releases, less they will read  
> documents.
>
>> So if all this stuff was in a "pre-release-check" profile or  
>> something that
>> was consistently applied and showed people how to fix things that  
>> would be
>> awesome. Getting rid of all the crap that's collected in the wiki  
>> would be
>> great.
>>
>> If you walked through all that stuff and created an actionable list  
>> to
>> correct that's great. If I have to run 10 commands, that everyone  
>> else has
>> to run people are just going to find variances and we're going to  
>> have
>> releases taking a week to fiddle around with the bits.
>>
>> A first test of this toolchain could do an audit of all our plugins  
>> and
>> tell us how good (or bad) all the plugins are.
>
> Reviewing Maven reports could be a good step. Unfortunately, some
> report errors like clirr needs justifications why they fails...
> Some active quality checks could be done directly in the reporting
> profile. For instance, checkstyle plugin could have failsOnError set
> to true. WDYT?

Checkstyle is good for suggestions, but I don't think things like PMD  
and Checkstyle should stop a release. That's getting a little too anal  
IMO. I'm fine with being notified, and even shamed, into documenting  
public APIs but I think for all our tools end-user documentation is  
more useful, and the IDE catches most of the other offenses.

>
>
> Cheers,
>
> Vincent
>
>>
>> On 19-Jul-08, at 9:26 AM, Dennis Lundberg wrote:
>>
>>
>>> I went and harvested the mojo-dev list for release vote comments,  
>>> most of
>> the from Benjamin. Some are specific to plugins, but many are  
>> general.
>> Here's the list:
>>>
>>>
>>> Inherit from the latest released parent to benefit from its  
>>> improvements.
>>>
>>> If the latest parent-SNAPSHOT has important fixes, copy these to the
>> components POM. Add a comment that they can be removed when parent  
>> X is
>> released.
>>>
>>> Run "mvn docck:check" to make sure the documentation is good.
>>>
>>> Check that a plugin's index page follows the template from the  
>>> plugin
>> documentation standard.
>>>
>>> To promote the best practice of specifying versions, POM snippets  
>>> in the
>> docs should have a <version> element.
>>>
>>> Check the Checkstyle/Clirr/CPD/PMD reports for any issues.
>>>
>>> The POM must have an <scm> element, to make its "Source  
>>> Repository" report
>> correct.
>>>
>>> Use "mvn dependendcy:analyze" to find used but undeclared  
>>> artifacts as
>> well as unused but declared artifacts.
>>>
>>> For mojo parameters, using the annotation "default-value" is  
>>> recommended
>> over "expression" when accessing POM elements like build  
>> directories [0, 1]
>> and boolean values.
>>> Using "default-value" will make the expression show up nicely on the
>> mojo's info page. If the parameter should be set-able from the  
>> command line
>> an "expression" is needed.
>>>
>>> [0]
>> http://www.nabble.com/Difference-between-default-value-and-expression-metatags-td5725581.html
>>> [1]
>> http://www.nabble.com/Plugin-Parameters%3A-expression-vs.-default-value-td15109298.html
>>>
>>> Investigate if a plugin suffers from any of the Common Bugs [2].
>>>
>>> [2]
>> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>>>
>>> If a component requires Java 1.5 to run, then this must be  
>>> documented,
>> i.e. using the "target" option of the
>>> compiler. For plugins this should be picked up by Maven Plugin  
>>> Plugin 2.4
>> when generating the plugin-info.html. For non-plugins this must be
>> documented manually.
>>>
>>> Updating the plugin to use the latest release of the Invoker  
>>> Plugin (1.2)
>> could ease integration testing:
>>> - convenient staging of plugin artifact into isolated local repo [3]
>>> - separation of IT build output from version controlled  
>>> directories [4]
>>> - checking for failing IT builds [5]
>>>
>>> [3]
>> http://maven.apache.org/plugins/maven-invoker-plugin/install- 
>> mojo.html
>>> [4]
>> http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#cloneProjectsTo
>>> [5]
>> http://maven.apache.org/plugins/maven-invoker-plugin/faq.html#question2
>>>
>>>
>>> Vincent Siveton wrote:
>>>
>>>> Hi guys,
>>>> What are the minimalist things that we need to check for a good  
>>>> Maven
>> release?
>>>> Dennis points that we need to reduce Checkstyle errors, checking  
>>>> Clirr
>>>> report and licenses.
>>>> Any others ideas?
>>>> Cheers,
>>>> Vincent
>>>> ---------- Forwarded message ----------
>>>> From: Dennis Lundberg <de...@apache.org>
>>>> Date: 16 juil. 2008 15:48
>>>> Subject: Re: [VOTE] Release Maven antrun plugin version 1.2
>>>> To: Maven Developers List <de...@maven.apache.org>
>>>> Thanks for pushing for this release Carlos!
>>>> Unfortunately there are a couple of things that needs to be fixed
>>>> before we can release 1.2, for which I have to vote -1 to the  
>>>> current
>>>> release candidate.
>>>> - The POM is missing the license header (I fixed this in svn)
>>>> - The Source files have the old license headers (I fixed this in  
>>>> svn)
>>>> - The documentation fix for MANTRUN-75 is not included in the 1.2  
>>>> tag
>>>> Here are some minor things that are nice to fix prior to the  
>>>> release,
>>>> all of which I have fixed in svn trunk.
>>>> - Use latest version of maven-plugin-plugin and maven-site-plugin
>>>> - Fix errors reported by Checkstyle
>>>> - Add missing scm info in the POM
>>>> The Clirr report [1] shows one error, one of the constructors for
>>>> AntPropertyHelper has changed the number of parameters. This was  
>>>> done
>>>> in r374150 as part of the fix for MANTRUN-41. I guess that we can  
>>>> live
>>>> with that change. Do we need to document it?
>>>> [1]
>> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/clirr-report.html
>>>> Carlos Sanchez wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> 9 issues fixed. Last release was 2.5 years ago
>>>>>
>>>>>
>> http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11125&styleName=Html&version=12210
>>>>>
>>>>> Staging repo:
>>>>> http://people.apache.org/~carlos/staging-repo
>>>>>
>>>>> Staging site:
>>>>>
>> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/
>>>>>
>>>>> Guide to testing staged releases:
>>>>>
>> http://maven.apache.org/guides/development/guide-testing- 
>> releases.html
>>>>>
>>>>> Vote open for 72 hours.
>>>>>
>>>>> [ ] +1
>>>>> [ ] +0
>>>>> [ ] -1
>>>>>
>>>>>
>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>> dev-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Dennis Lundberg
>>>>
>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>> dev-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>
>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>> dev-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>
>>>
>>>
>>> --
>>> Dennis Lundberg
>>>
>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>>
>>
>> Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder,  Apache Maven
>> jason at sonatype dot com
>> ----------------------------------------------------------
>>
>> A man enjoys his work when he understands the whole and when he
>> is responsible for the quality of the whole
>>
>>  -- Christopher Alexander, A Pattern Language
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

We know what we are, but know not what we may be.

   -- Shakespeare


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Vincent Siveton <vi...@gmail.com>.
Hi,

2008/7/19, Jason van Zyl <ja...@maven.org>:
> This is great as long as it does not become bureaucratic and onerous for
> everyone to do a release.

Totally agree with you: it could be time consuming for the release
manager and for the committers which review...

>  How to prevent that is codify the process in the tooling. No one has ever,
> and never will, follow a workflow that is defined in a document. People are

Not agree with you. I think several PMCs follow the "Releasing A Maven
Project" doc.

> just people and most people themselves won't do it the same way twice unless
> they do it often, and different people doing it the same? No chance.

Agree with you. More PMCs make releases, less they will read documents.

>  So if all this stuff was in a "pre-release-check" profile or something that
> was consistently applied and showed people how to fix things that would be
> awesome. Getting rid of all the crap that's collected in the wiki would be
> great.
>
>  If you walked through all that stuff and created an actionable list to
> correct that's great. If I have to run 10 commands, that everyone else has
> to run people are just going to find variances and we're going to have
> releases taking a week to fiddle around with the bits.
>
>  A first test of this toolchain could do an audit of all our plugins and
> tell us how good (or bad) all the plugins are.

Reviewing Maven reports could be a good step. Unfortunately, some
report errors like clirr needs justifications why they fails...
Some active quality checks could be done directly in the reporting
profile. For instance, checkstyle plugin could have failsOnError set
to true. WDYT?

Cheers,

Vincent

>
>  On 19-Jul-08, at 9:26 AM, Dennis Lundberg wrote:
>
>
> > I went and harvested the mojo-dev list for release vote comments, most of
> the from Benjamin. Some are specific to plugins, but many are general.
> Here's the list:
> >
> >
> > Inherit from the latest released parent to benefit from its improvements.
> >
> > If the latest parent-SNAPSHOT has important fixes, copy these to the
> components POM. Add a comment that they can be removed when parent X is
> released.
> >
> > Run "mvn docck:check" to make sure the documentation is good.
> >
> > Check that a plugin's index page follows the template from the plugin
> documentation standard.
> >
> > To promote the best practice of specifying versions, POM snippets in the
> docs should have a <version> element.
> >
> > Check the Checkstyle/Clirr/CPD/PMD reports for any issues.
> >
> > The POM must have an <scm> element, to make its "Source Repository" report
> correct.
> >
> > Use "mvn dependendcy:analyze" to find used but undeclared artifacts as
> well as unused but declared artifacts.
> >
> > For mojo parameters, using the annotation "default-value" is recommended
> over "expression" when accessing POM elements like build directories [0, 1]
> and boolean values.
> > Using "default-value" will make the expression show up nicely on the
> mojo's info page. If the parameter should be set-able from the command line
> an "expression" is needed.
> >
> > [0]
> http://www.nabble.com/Difference-between-default-value-and-expression-metatags-td5725581.html
> > [1]
> http://www.nabble.com/Plugin-Parameters%3A-expression-vs.-default-value-td15109298.html
> >
> > Investigate if a plugin suffers from any of the Common Bugs [2].
> >
> > [2]
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> >
> > If a component requires Java 1.5 to run, then this must be documented,
> i.e. using the "target" option of the
> > compiler. For plugins this should be picked up by Maven Plugin Plugin 2.4
> when generating the plugin-info.html. For non-plugins this must be
> documented manually.
> >
> > Updating the plugin to use the latest release of the Invoker Plugin (1.2)
> could ease integration testing:
> > - convenient staging of plugin artifact into isolated local repo [3]
> > - separation of IT build output from version controlled directories [4]
> > - checking for failing IT builds [5]
> >
> > [3]
> http://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html
> > [4]
> http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#cloneProjectsTo
> > [5]
> http://maven.apache.org/plugins/maven-invoker-plugin/faq.html#question2
> >
> >
> > Vincent Siveton wrote:
> >
> > > Hi guys,
> > > What are the minimalist things that we need to check for a good Maven
> release?
> > > Dennis points that we need to reduce Checkstyle errors, checking Clirr
> > > report and licenses.
> > > Any others ideas?
> > > Cheers,
> > > Vincent
> > > ---------- Forwarded message ----------
> > > From: Dennis Lundberg <de...@apache.org>
> > > Date: 16 juil. 2008 15:48
> > > Subject: Re: [VOTE] Release Maven antrun plugin version 1.2
> > > To: Maven Developers List <de...@maven.apache.org>
> > > Thanks for pushing for this release Carlos!
> > > Unfortunately there are a couple of things that needs to be fixed
> > > before we can release 1.2, for which I have to vote -1 to the current
> > > release candidate.
> > > - The POM is missing the license header (I fixed this in svn)
> > > - The Source files have the old license headers (I fixed this in svn)
> > > - The documentation fix for MANTRUN-75 is not included in the 1.2 tag
> > > Here are some minor things that are nice to fix prior to the release,
> > > all of which I have fixed in svn trunk.
> > > - Use latest version of maven-plugin-plugin and maven-site-plugin
> > > - Fix errors reported by Checkstyle
> > > - Add missing scm info in the POM
> > > The Clirr report [1] shows one error, one of the constructors for
> > > AntPropertyHelper has changed the number of parameters. This was done
> > > in r374150 as part of the fix for MANTRUN-41. I guess that we can live
> > > with that change. Do we need to document it?
> > > [1]
> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/clirr-report.html
> > > Carlos Sanchez wrote:
> > >
> > > > Hi,
> > > >
> > > > 9 issues fixed. Last release was 2.5 years ago
> > > >
> > > >
> http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11125&styleName=Html&version=12210
> > > >
> > > > Staging repo:
> > > > http://people.apache.org/~carlos/staging-repo
> > > >
> > > > Staging site:
> > > >
> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/
> > > >
> > > > Guide to testing staged releases:
> > > >
> http://maven.apache.org/guides/development/guide-testing-releases.html
> > > >
> > > > Vote open for 72 hours.
> > > >
> > > > [ ] +1
> > > > [ ] +0
> > > > [ ] -1
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> dev-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: dev-help@maven.apache.org
> > > >
> > > >
> > > >
> > > >
> > > --
> > > Dennis Lundberg
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> dev-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: dev-help@maven.apache.org
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> dev-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: dev-help@maven.apache.org
> > >
> >
> >
> > --
> > Dennis Lundberg
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
>
>  Thanks,
>
>  Jason
>
>  ----------------------------------------------------------
>  Jason van Zyl
>  Founder,  Apache Maven
>  jason at sonatype dot com
>  ----------------------------------------------------------
>
>  A man enjoys his work when he understands the whole and when he
>  is responsible for the quality of the whole
>
>   -- Christopher Alexander, A Pattern Language
>
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>  For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Jason van Zyl <ja...@maven.org>.
This is great as long as it does not become bureaucratic and onerous  
for everyone to do a release.

How to prevent that is codify the process in the tooling. No one has  
ever, and never will, follow a workflow that is defined in a document.  
People are just people and most people themselves won't do it the same  
way twice unless they do it often, and different people doing it the  
same? No chance.

So if all this stuff was in a "pre-release-check" profile or something  
that was consistently applied and showed people how to fix things that  
would be awesome. Getting rid of all the crap that's collected in the  
wiki would be great.

If you walked through all that stuff and created an actionable list to  
correct that's great. If I have to run 10 commands, that everyone else  
has to run people are just going to find variances and we're going to  
have releases taking a week to fiddle around with the bits.

A first test of this toolchain could do an audit of all our plugins  
and tell us how good (or bad) all the plugins are.

On 19-Jul-08, at 9:26 AM, Dennis Lundberg wrote:

> I went and harvested the mojo-dev list for release vote comments,  
> most of the from Benjamin. Some are specific to plugins, but many  
> are general. Here's the list:
>
>
> Inherit from the latest released parent to benefit from its  
> improvements.
>
> If the latest parent-SNAPSHOT has important fixes, copy these to the  
> components POM. Add a comment that they can be removed when parent X  
> is released.
>
> Run "mvn docck:check" to make sure the documentation is good.
>
> Check that a plugin's index page follows the template from the  
> plugin documentation standard.
>
> To promote the best practice of specifying versions, POM snippets in  
> the docs should have a <version> element.
>
> Check the Checkstyle/Clirr/CPD/PMD reports for any issues.
>
> The POM must have an <scm> element, to make its "Source Repository"  
> report correct.
>
> Use "mvn dependendcy:analyze" to find used but undeclared artifacts  
> as well as unused but declared artifacts.
>
> For mojo parameters, using the annotation "default-value" is  
> recommended over "expression" when accessing POM elements like build  
> directories [0, 1] and boolean values.
> Using "default-value" will make the expression show up nicely on the  
> mojo's info page. If the parameter should be set-able from the  
> command line an "expression" is needed.
>
> [0] http://www.nabble.com/Difference-between-default-value-and-expression-metatags-td5725581.html
> [1] http://www.nabble.com/Plugin-Parameters%3A-expression-vs.-default-value-td15109298.html
>
> Investigate if a plugin suffers from any of the Common Bugs [2].
>
> [2] http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>
> If a component requires Java 1.5 to run, then this must be  
> documented, i.e. using the "target" option of the
> compiler. For plugins this should be picked up by Maven Plugin  
> Plugin 2.4 when generating the plugin-info.html. For non-plugins  
> this must be documented manually.
>
> Updating the plugin to use the latest release of the Invoker Plugin  
> (1.2) could ease integration testing:
> - convenient staging of plugin artifact into isolated local repo [3]
> - separation of IT build output from version controlled directories  
> [4]
> - checking for failing IT builds [5]
>
> [3] http://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html
> [4] http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#cloneProjectsTo
> [5] http://maven.apache.org/plugins/maven-invoker-plugin/faq.html#question2
>
>
> Vincent Siveton wrote:
>> Hi guys,
>> What are the minimalist things that we need to check for a good  
>> Maven release?
>> Dennis points that we need to reduce Checkstyle errors, checking  
>> Clirr
>> report and licenses.
>> Any others ideas?
>> Cheers,
>> Vincent
>> ---------- Forwarded message ----------
>> From: Dennis Lundberg <de...@apache.org>
>> Date: 16 juil. 2008 15:48
>> Subject: Re: [VOTE] Release Maven antrun plugin version 1.2
>> To: Maven Developers List <de...@maven.apache.org>
>> Thanks for pushing for this release Carlos!
>> Unfortunately there are a couple of things that needs to be fixed
>> before we can release 1.2, for which I have to vote -1 to the current
>> release candidate.
>> - The POM is missing the license header (I fixed this in svn)
>> - The Source files have the old license headers (I fixed this in svn)
>> - The documentation fix for MANTRUN-75 is not included in the 1.2 tag
>> Here are some minor things that are nice to fix prior to the release,
>> all of which I have fixed in svn trunk.
>> - Use latest version of maven-plugin-plugin and maven-site-plugin
>> - Fix errors reported by Checkstyle
>> - Add missing scm info in the POM
>> The Clirr report [1] shows one error, one of the constructors for
>> AntPropertyHelper has changed the number of parameters. This was done
>> in r374150 as part of the fix for MANTRUN-41. I guess that we can  
>> live
>> with that change. Do we need to document it?
>> [1] http://maven.apache.org/plugins/maven-antrun-plugin-1.2/clirr-report.html
>> Carlos Sanchez wrote:
>>> Hi,
>>>
>>> 9 issues fixed. Last release was 2.5 years ago
>>>
>>> http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11125&styleName=Html&version=12210
>>>
>>> Staging repo:
>>> http://people.apache.org/~carlos/staging-repo
>>>
>>> Staging site:
>>> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/
>>>
>>> Guide to testing staged releases:
>>> http://maven.apache.org/guides/development/guide-testing-releases.html
>>>
>>> Vote open for 72 hours.
>>>
>>> [ ] +1
>>> [ ] +0
>>> [ ] -1
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>>
>>>
>> --
>> Dennis Lundberg
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> -- 
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

A man enjoys his work when he understands the whole and when he
is responsible for the quality of the whole

  -- Christopher Alexander, A Pattern Language


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Brett Porter <br...@apache.org>.
On 21/07/2008, at 4:56 PM, Arnaud HERITIER wrote:

> Couldn't we setup a custom profile for QA checks (pmd, checkstyle,  
> clirr
> ...) that we activate in a separate project in the CI server ?
> It's what I begin to do at work. The advantage is to keep the  
> integration
> build fast and we can have a look at the QA builds to improve them.

Yep, that's a pretty standard set up. We already have one in the  
parent POM that could be expanded on and just needs to be run.

- Brett

--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Dennis Lundberg <de...@apache.org>.
Olivier Lamy wrote:
> Hi,
> I agree too.
> IMHO we don't have to block a release because they are checkstyle
> errors : releasing something must not be nightmare (we are here to
> help users and fix issues).

Right, I totally agree with that. I just wrote down things that are 
worth looking at during release validation. Most of the items on the 
list are things that would normally *not* block a release.

> Ok except for missing license headers in source files.
> We will find some exceptions which will prevent automatisation of a
> such process.
> 
> --
> Olivier
> 
> 2008/7/21 Arnaud HERITIER <ah...@gmail.com>:
>> Couldn't we setup a custom profile for QA checks (pmd, checkstyle, clirr
>> ...) that we activate in a separate project in the CI server ?
>> It's what I begin to do at work. The advantage is to keep the integration
>> build fast and we can have a look at the QA builds to improve them.
>>
>> Arnaud
>>
>> On Mon, Jul 21, 2008 at 4:23 AM, Brett Porter <br...@apache.org> wrote:
>>
>>> On 19/07/2008, at 11:26 PM, Dennis Lundberg wrote:
>>>
>>>  I went and harvested the mojo-dev list for release vote comments, most of
>>>> the from Benjamin. Some are specific to plugins, but many are general.
>>>> Here's the list:
>>>>
>>> Thanks Dennis! (and Benjamin :)
>>>
>>>
>>>>
>>>> Inherit from the latest released parent to benefit from its improvements.
>>>>
>>> Sounds like a good enhancement to the release:prepare goal, or maybe an
>>> enforcer rule. The only thing to ensure is that it isn't applied when the
>>> build from the tag occurs later.
>>>
>>>
>>>> If the latest parent-SNAPSHOT has important fixes, copy these to the
>>>> components POM. Add a comment that they can be removed when parent X is
>>>> released.
>>>>
>>> This seems like a bad workaround for not releasing a parent. Isn't a better
>>> rule to release the parent instead? Resolving snapshot dependencies of all
>>> kinds is just part of any release process.
>>>
>>>
>>>> Run "mvn docck:check" to make sure the documentation is good.
>>>>
>>> This should be automatable since I Think they all pass already?
>>>
>>>  Check that a plugin's index page follows the template from the plugin
>>>> documentation standard.
>>>>
>>> Is there anything we can do to automate that in docck, or does it need to
>>> be eyeballed?
>>>
>>>
>>>> To promote the best practice of specifying versions, POM snippets in the
>>>> docs should have a <version> element.
>>>>
>>> Can that be added to the documentation guide?
>>>
>>>
>>>> Check the Checkstyle/Clirr/CPD/PMD reports for any issues.
>>>>
>>> These can be automated on release once we get to a baseline where they
>>> pass? I don't think the burden should be on the next releaser to have to fix
>>> all this up - we don't want artificial roadblocks to releases.
>>>
>>>
>>>> The POM must have an <scm> element, to make its "Source Repository" report
>>>> correct.
>>>>
>>> I think that's irrelevant for us since it's inherited correctly (and
>>> release fails without it).
>>>
>>>
>>>> Use "mvn dependendcy:analyze" to find used but undeclared artifacts as
>>>> well as unused but declared artifacts.
>>>>
>>> I think this falls under a similar category to Clirr, etc.
>>>
>>>
>>>> For mojo parameters, using the annotation "default-value" is recommended
>>>> over "expression" when accessing POM elements like build directories [0, 1]
>>>> and boolean values.
>>>> Using "default-value" will make the expression show up nicely on the
>>>> mojo's info page. If the parameter should be set-able from the command line
>>>> an "expression" is needed.
>>>>
>>>> [0]
>>>> http://www.nabble.com/Difference-between-default-value-and-expression-metatags-td5725581.html
>>>> [1]
>>>> http://www.nabble.com/Plugin-Parameters%3A-expression-vs.-default-value-td15109298.html
>>>>
>>>> Investigate if a plugin suffers from any of the Common Bugs [2].
>>>>
>>>> [2]
>>>> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>>>>
>>>> If a component requires Java 1.5 to run, then this must be documented,
>>>> i.e. using the "target" option of the
>>>> compiler. For plugins this should be picked up by Maven Plugin Plugin 2.4
>>>> when generating the plugin-info.html. For non-plugins this must be
>>>> documented manually.
>>>>
>>>> Updating the plugin to use the latest release of the Invoker Plugin (1.2)
>>>> could ease integration testing:
>>>> - convenient staging of plugin artifact into isolated local repo [3]
>>>> - separation of IT build output from version controlled directories [4]
>>>> - checking for failing IT builds [5]
>>>>
>>>> [3]
>>>> http://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html
>>>> [4]
>>>> http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#cloneProjectsTo
>>>> [5]
>>>> http://maven.apache.org/plugins/maven-invoker-plugin/faq.html#question2
>>>>
>>> These all get into development time questions rather than release time
>>> questions - worth considering PMD rules for all of the above which I think
>>> has been considered before.
>>>
>>> Cheers,
>>> Brett
>>>
>>> --
>>> Brett Porter
>>> brett@apache.org
>>> http://blogs.exist.com/bporter/
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Olivier Lamy <ol...@apache.org>.
Hi,
I agree too.
IMHO we don't have to block a release because they are checkstyle
errors : releasing something must not be nightmare (we are here to
help users and fix issues).
Ok except for missing license headers in source files.
We will find some exceptions which will prevent automatisation of a
such process.

--
Olivier

2008/7/21 Arnaud HERITIER <ah...@gmail.com>:
> Couldn't we setup a custom profile for QA checks (pmd, checkstyle, clirr
> ...) that we activate in a separate project in the CI server ?
> It's what I begin to do at work. The advantage is to keep the integration
> build fast and we can have a look at the QA builds to improve them.
>
> Arnaud
>
> On Mon, Jul 21, 2008 at 4:23 AM, Brett Porter <br...@apache.org> wrote:
>
>>
>> On 19/07/2008, at 11:26 PM, Dennis Lundberg wrote:
>>
>>  I went and harvested the mojo-dev list for release vote comments, most of
>>> the from Benjamin. Some are specific to plugins, but many are general.
>>> Here's the list:
>>>
>>
>> Thanks Dennis! (and Benjamin :)
>>
>>
>>>
>>>
>>> Inherit from the latest released parent to benefit from its improvements.
>>>
>>
>> Sounds like a good enhancement to the release:prepare goal, or maybe an
>> enforcer rule. The only thing to ensure is that it isn't applied when the
>> build from the tag occurs later.
>>
>>
>>>
>>> If the latest parent-SNAPSHOT has important fixes, copy these to the
>>> components POM. Add a comment that they can be removed when parent X is
>>> released.
>>>
>>
>> This seems like a bad workaround for not releasing a parent. Isn't a better
>> rule to release the parent instead? Resolving snapshot dependencies of all
>> kinds is just part of any release process.
>>
>>
>>>
>>> Run "mvn docck:check" to make sure the documentation is good.
>>>
>>
>> This should be automatable since I Think they all pass already?
>>
>>  Check that a plugin's index page follows the template from the plugin
>>> documentation standard.
>>>
>>
>> Is there anything we can do to automate that in docck, or does it need to
>> be eyeballed?
>>
>>
>>>
>>> To promote the best practice of specifying versions, POM snippets in the
>>> docs should have a <version> element.
>>>
>>
>> Can that be added to the documentation guide?
>>
>>
>>>
>>> Check the Checkstyle/Clirr/CPD/PMD reports for any issues.
>>>
>>
>> These can be automated on release once we get to a baseline where they
>> pass? I don't think the burden should be on the next releaser to have to fix
>> all this up - we don't want artificial roadblocks to releases.
>>
>>
>>>
>>> The POM must have an <scm> element, to make its "Source Repository" report
>>> correct.
>>>
>>
>> I think that's irrelevant for us since it's inherited correctly (and
>> release fails without it).
>>
>>
>>>
>>> Use "mvn dependendcy:analyze" to find used but undeclared artifacts as
>>> well as unused but declared artifacts.
>>>
>>
>> I think this falls under a similar category to Clirr, etc.
>>
>>
>>>
>>> For mojo parameters, using the annotation "default-value" is recommended
>>> over "expression" when accessing POM elements like build directories [0, 1]
>>> and boolean values.
>>> Using "default-value" will make the expression show up nicely on the
>>> mojo's info page. If the parameter should be set-able from the command line
>>> an "expression" is needed.
>>>
>>> [0]
>>> http://www.nabble.com/Difference-between-default-value-and-expression-metatags-td5725581.html
>>> [1]
>>> http://www.nabble.com/Plugin-Parameters%3A-expression-vs.-default-value-td15109298.html
>>>
>>> Investigate if a plugin suffers from any of the Common Bugs [2].
>>>
>>> [2]
>>> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>>>
>>> If a component requires Java 1.5 to run, then this must be documented,
>>> i.e. using the "target" option of the
>>> compiler. For plugins this should be picked up by Maven Plugin Plugin 2.4
>>> when generating the plugin-info.html. For non-plugins this must be
>>> documented manually.
>>>
>>> Updating the plugin to use the latest release of the Invoker Plugin (1.2)
>>> could ease integration testing:
>>> - convenient staging of plugin artifact into isolated local repo [3]
>>> - separation of IT build output from version controlled directories [4]
>>> - checking for failing IT builds [5]
>>>
>>> [3]
>>> http://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html
>>> [4]
>>> http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#cloneProjectsTo
>>> [5]
>>> http://maven.apache.org/plugins/maven-invoker-plugin/faq.html#question2
>>>
>>
>> These all get into development time questions rather than release time
>> questions - worth considering PMD rules for all of the above which I think
>> has been considered before.
>>
>> Cheers,
>> Brett
>>
>> --
>> Brett Porter
>> brett@apache.org
>> http://blogs.exist.com/bporter/
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Arnaud HERITIER <ah...@gmail.com>.
Couldn't we setup a custom profile for QA checks (pmd, checkstyle, clirr
...) that we activate in a separate project in the CI server ?
It's what I begin to do at work. The advantage is to keep the integration
build fast and we can have a look at the QA builds to improve them.

Arnaud

On Mon, Jul 21, 2008 at 4:23 AM, Brett Porter <br...@apache.org> wrote:

>
> On 19/07/2008, at 11:26 PM, Dennis Lundberg wrote:
>
>  I went and harvested the mojo-dev list for release vote comments, most of
>> the from Benjamin. Some are specific to plugins, but many are general.
>> Here's the list:
>>
>
> Thanks Dennis! (and Benjamin :)
>
>
>>
>>
>> Inherit from the latest released parent to benefit from its improvements.
>>
>
> Sounds like a good enhancement to the release:prepare goal, or maybe an
> enforcer rule. The only thing to ensure is that it isn't applied when the
> build from the tag occurs later.
>
>
>>
>> If the latest parent-SNAPSHOT has important fixes, copy these to the
>> components POM. Add a comment that they can be removed when parent X is
>> released.
>>
>
> This seems like a bad workaround for not releasing a parent. Isn't a better
> rule to release the parent instead? Resolving snapshot dependencies of all
> kinds is just part of any release process.
>
>
>>
>> Run "mvn docck:check" to make sure the documentation is good.
>>
>
> This should be automatable since I Think they all pass already?
>
>  Check that a plugin's index page follows the template from the plugin
>> documentation standard.
>>
>
> Is there anything we can do to automate that in docck, or does it need to
> be eyeballed?
>
>
>>
>> To promote the best practice of specifying versions, POM snippets in the
>> docs should have a <version> element.
>>
>
> Can that be added to the documentation guide?
>
>
>>
>> Check the Checkstyle/Clirr/CPD/PMD reports for any issues.
>>
>
> These can be automated on release once we get to a baseline where they
> pass? I don't think the burden should be on the next releaser to have to fix
> all this up - we don't want artificial roadblocks to releases.
>
>
>>
>> The POM must have an <scm> element, to make its "Source Repository" report
>> correct.
>>
>
> I think that's irrelevant for us since it's inherited correctly (and
> release fails without it).
>
>
>>
>> Use "mvn dependendcy:analyze" to find used but undeclared artifacts as
>> well as unused but declared artifacts.
>>
>
> I think this falls under a similar category to Clirr, etc.
>
>
>>
>> For mojo parameters, using the annotation "default-value" is recommended
>> over "expression" when accessing POM elements like build directories [0, 1]
>> and boolean values.
>> Using "default-value" will make the expression show up nicely on the
>> mojo's info page. If the parameter should be set-able from the command line
>> an "expression" is needed.
>>
>> [0]
>> http://www.nabble.com/Difference-between-default-value-and-expression-metatags-td5725581.html
>> [1]
>> http://www.nabble.com/Plugin-Parameters%3A-expression-vs.-default-value-td15109298.html
>>
>> Investigate if a plugin suffers from any of the Common Bugs [2].
>>
>> [2]
>> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>>
>> If a component requires Java 1.5 to run, then this must be documented,
>> i.e. using the "target" option of the
>> compiler. For plugins this should be picked up by Maven Plugin Plugin 2.4
>> when generating the plugin-info.html. For non-plugins this must be
>> documented manually.
>>
>> Updating the plugin to use the latest release of the Invoker Plugin (1.2)
>> could ease integration testing:
>> - convenient staging of plugin artifact into isolated local repo [3]
>> - separation of IT build output from version controlled directories [4]
>> - checking for failing IT builds [5]
>>
>> [3]
>> http://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html
>> [4]
>> http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#cloneProjectsTo
>> [5]
>> http://maven.apache.org/plugins/maven-invoker-plugin/faq.html#question2
>>
>
> These all get into development time questions rather than release time
> questions - worth considering PMD rules for all of the above which I think
> has been considered before.
>
> Cheers,
> Brett
>
> --
> Brett Porter
> brett@apache.org
> http://blogs.exist.com/bporter/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Brett Porter <br...@apache.org>.
On 19/07/2008, at 11:26 PM, Dennis Lundberg wrote:

> I went and harvested the mojo-dev list for release vote comments,  
> most of the from Benjamin. Some are specific to plugins, but many  
> are general. Here's the list:

Thanks Dennis! (and Benjamin :)

>
>
>
> Inherit from the latest released parent to benefit from its  
> improvements.

Sounds like a good enhancement to the release:prepare goal, or maybe  
an enforcer rule. The only thing to ensure is that it isn't applied  
when the build from the tag occurs later.

>
>
> If the latest parent-SNAPSHOT has important fixes, copy these to the  
> components POM. Add a comment that they can be removed when parent X  
> is released.

This seems like a bad workaround for not releasing a parent. Isn't a  
better rule to release the parent instead? Resolving snapshot  
dependencies of all kinds is just part of any release process.

>
>
> Run "mvn docck:check" to make sure the documentation is good.

This should be automatable since I Think they all pass already?

> Check that a plugin's index page follows the template from the  
> plugin documentation standard.

Is there anything we can do to automate that in docck, or does it need  
to be eyeballed?

>
>
> To promote the best practice of specifying versions, POM snippets in  
> the docs should have a <version> element.

Can that be added to the documentation guide?

>
>
> Check the Checkstyle/Clirr/CPD/PMD reports for any issues.

These can be automated on release once we get to a baseline where they  
pass? I don't think the burden should be on the next releaser to have  
to fix all this up - we don't want artificial roadblocks to releases.

>
>
> The POM must have an <scm> element, to make its "Source Repository"  
> report correct.

I think that's irrelevant for us since it's inherited correctly (and  
release fails without it).

>
>
> Use "mvn dependendcy:analyze" to find used but undeclared artifacts  
> as well as unused but declared artifacts.

I think this falls under a similar category to Clirr, etc.

>
>
> For mojo parameters, using the annotation "default-value" is  
> recommended over "expression" when accessing POM elements like build  
> directories [0, 1] and boolean values.
> Using "default-value" will make the expression show up nicely on the  
> mojo's info page. If the parameter should be set-able from the  
> command line an "expression" is needed.
>
> [0] http://www.nabble.com/Difference-between-default-value-and-expression-metatags-td5725581.html
> [1] http://www.nabble.com/Plugin-Parameters%3A-expression-vs.-default-value-td15109298.html
>
> Investigate if a plugin suffers from any of the Common Bugs [2].
>
> [2] http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>
> If a component requires Java 1.5 to run, then this must be  
> documented, i.e. using the "target" option of the
> compiler. For plugins this should be picked up by Maven Plugin  
> Plugin 2.4 when generating the plugin-info.html. For non-plugins  
> this must be documented manually.
>
> Updating the plugin to use the latest release of the Invoker Plugin  
> (1.2) could ease integration testing:
> - convenient staging of plugin artifact into isolated local repo [3]
> - separation of IT build output from version controlled directories  
> [4]
> - checking for failing IT builds [5]
>
> [3] http://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html
> [4] http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#cloneProjectsTo
> [5] http://maven.apache.org/plugins/maven-invoker-plugin/faq.html#question2

These all get into development time questions rather than release time  
questions - worth considering PMD rules for all of the above which I  
think has been considered before.

Cheers,
Brett

--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to validate a Maven release? Fwd: [VOTE] Release Maven antrun plugin version 1.2

Posted by Dennis Lundberg <de...@apache.org>.
I went and harvested the mojo-dev list for release vote comments, most 
of the from Benjamin. Some are specific to plugins, but many are 
general. Here's the list:


Inherit from the latest released parent to benefit from its improvements.

If the latest parent-SNAPSHOT has important fixes, copy these to the 
components POM. Add a comment that they can be removed when parent X is 
released.

Run "mvn docck:check" to make sure the documentation is good.

Check that a plugin's index page follows the template from the plugin 
documentation standard.

To promote the best practice of specifying versions, POM snippets in the 
docs should have a <version> element.

Check the Checkstyle/Clirr/CPD/PMD reports for any issues.

The POM must have an <scm> element, to make its "Source Repository" 
report correct.

Use "mvn dependendcy:analyze" to find used but undeclared artifacts as 
well as unused but declared artifacts.

For mojo parameters, using the annotation "default-value" is recommended 
over "expression" when accessing POM elements like build directories [0, 
1] and boolean values.
Using "default-value" will make the expression show up nicely on the 
mojo's info page. If the parameter should be set-able from the command 
line an "expression" is needed.

[0] 
http://www.nabble.com/Difference-between-default-value-and-expression-metatags-td5725581.html
[1] 
http://www.nabble.com/Plugin-Parameters%3A-expression-vs.-default-value-td15109298.html

Investigate if a plugin suffers from any of the Common Bugs [2].

[2] http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

If a component requires Java 1.5 to run, then this must be documented, 
i.e. using the "target" option of the
compiler. For plugins this should be picked up by Maven Plugin Plugin 
2.4 when generating the plugin-info.html. For non-plugins this must be 
documented manually.

Updating the plugin to use the latest release of the Invoker Plugin 
(1.2) could ease integration testing:
- convenient staging of plugin artifact into isolated local repo [3]
- separation of IT build output from version controlled directories [4]
- checking for failing IT builds [5]

[3] http://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html
[4] 
http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#cloneProjectsTo
[5] http://maven.apache.org/plugins/maven-invoker-plugin/faq.html#question2


Vincent Siveton wrote:
> Hi guys,
> 
> What are the minimalist things that we need to check for a good Maven release?
> Dennis points that we need to reduce Checkstyle errors, checking Clirr
> report and licenses.
> Any others ideas?
> 
> Cheers,
> 
> Vincent
> 
> ---------- Forwarded message ----------
> From: Dennis Lundberg <de...@apache.org>
> Date: 16 juil. 2008 15:48
> Subject: Re: [VOTE] Release Maven antrun plugin version 1.2
> To: Maven Developers List <de...@maven.apache.org>
> 
> 
> Thanks for pushing for this release Carlos!
> 
>  Unfortunately there are a couple of things that needs to be fixed
> before we can release 1.2, for which I have to vote -1 to the current
> release candidate.
> 
>  - The POM is missing the license header (I fixed this in svn)
>  - The Source files have the old license headers (I fixed this in svn)
>  - The documentation fix for MANTRUN-75 is not included in the 1.2 tag
> 
>  Here are some minor things that are nice to fix prior to the release,
> all of which I have fixed in svn trunk.
> 
>  - Use latest version of maven-plugin-plugin and maven-site-plugin
>  - Fix errors reported by Checkstyle
>  - Add missing scm info in the POM
> 
>  The Clirr report [1] shows one error, one of the constructors for
> AntPropertyHelper has changed the number of parameters. This was done
> in r374150 as part of the fix for MANTRUN-41. I guess that we can live
> with that change. Do we need to document it?
> 
> 
>  [1] http://maven.apache.org/plugins/maven-antrun-plugin-1.2/clirr-report.html
> 
> 
>  Carlos Sanchez wrote:
> 
>> Hi,
>>
>> 9 issues fixed. Last release was 2.5 years ago
>>
>> http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11125&styleName=Html&version=12210
>>
>> Staging repo:
>> http://people.apache.org/~carlos/staging-repo
>>
>> Staging site:
>> http://maven.apache.org/plugins/maven-antrun-plugin-1.2/
>>
>> Guide to testing staged releases:
>> http://maven.apache.org/guides/development/guide-testing-releases.html
>>
>> Vote open for 72 hours.
>>
>> [ ] +1
>> [ ] +0
>> [ ] -1
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>
> 
> 
>  --
>  Dennis Lundberg
> 
> 
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>  For additional commands, e-mail: dev-help@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org