[
http://jira.codehaus.org/browse/MRELEASE-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Gier closed MRELEASE-211.
------------------------------
Resolution: Won't Fix
The javadoc generation is done because of the release profile in the super pom.
As William suggested, you can turn off this release profile either in your pom
or from the command line
{{-DuseReleaseProfile=false}}
I think the plan is to change the super pom in the future so javadocs aren't
automatically generated, but it might not be until maven 2.1.
> set version in batch mode
> -------------------------
>
> Key: MRELEASE-211
> URL: http://jira.codehaus.org/browse/MRELEASE-211
> Project: Maven 2.x Release Plugin
> Issue Type: New Feature
> Affects Versions: 2.0-beta-5
> Environment: win XP pro SP2, maven 2.0.5, maven release plugin
> 2.0-beta-5
> Reporter: Andrew Chikvaidze
>
> I think a lot of developer teams often don't need generate javadoc for their
> project every time when running release:perform.
> I think it's very useful to add an option to disable javadoc creation.
> When I tried to pass to maven "-DperformRelease=false" this haven't effect.
> Later I saw in function
> private void perform( ReleaseDescriptor releaseDescriptor, Settings
> settings, List reactorProjects,
> File checkoutDirectory, String goals, boolean
> useReleaseProfile,
> ReleaseManagerListener listener, ReleaseResult
> result )
> the code:
> if ( useReleaseProfile )
> {
> if ( !StringUtils.isEmpty( additionalArguments ) )
> {
> /*
> evil hack (we don't need javadoc)
> additionalArguments = additionalArguments + "
> -DperformRelease=true";
> */
> additionalArguments = additionalArguments + "
> -DperformRelease=false";
> }
> else
> {
> /*
> evil hack (we don't need javadoc)
> additionalArguments = "-DperformRelease=true";
> */
> additionalArguments = "-DperformRelease=false";
> }
> }
> so, unfortunately now I cannot set -DperformRelease=false..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira