[
http://jira.codehaus.org/browse/MRELEASE-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107800
]
William Ferguson commented on MRELEASE-211:
-------------------------------------------
Um, correct me if I'm wrong, but isn't this what the *useReleaseProfile*
parameter on release:perform it there for?
Ie
{code}
<artifactId>maven-release-plugin</artifactId>
<configuration>
<useReleaseProfile>false<useReleaseProfile>
</configuration>
{code}
will give you exactly what you want.
> 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