You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2012/12/16 18:32:13 UTC
[jira] (MDEPLOY-135) Add ability to skip deploying certain modules
from command line
[ https://jira.codehaus.org/browse/MDEPLOY-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MDEPLOY-135.
----------------------------------
Resolution: Won't Fix
Assignee: Robert Scholte
Although I can't think of a usecase to only deploy a selection, here's a solution: Add something like the following to your pom:
{code:xml}
<project>
<properties>
<module1.deploy.skip>false</module1.deploy.skip> <!-- default -->
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<configuration>
<skip>${module1.deploy.skip}</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
{code}
If you want to skip this module, add {{-Dmodule1.deploy.skip=true}}
> Add ability to skip deploying certain modules from command line
> ---------------------------------------------------------------
>
> Key: MDEPLOY-135
> URL: https://jira.codehaus.org/browse/MDEPLOY-135
> Project: Maven 2.x and 3.x Deploy Plugin
> Issue Type: New Feature
> Components: deploy:deploy
> Affects Versions: 2.6
> Reporter: Gayathri Muralidharan
> Assignee: Robert Scholte
> Priority: Minor
>
> Hi,
> Currently it is possible to skip certain modules during deployment by setting the config in the pom file.
> ( <skip> true </skip> )
> Wouldn't it be nice to have the ability to mention this via command line like -Dmaven.deploy.skip= modules-to-be-skipped or something so that frequent changes to pom files are not required and this can be specified/modified easily from hudson?
> Please correct me if this is already supported or if i am missing something here :)
> Thanks,
> Gayathri
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira