[ https://jira.codehaus.org/browse/MINSTALL-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=334160#comment-334160 ]
Ivan Bondarenko commented on MINSTALL-96: ----------------------------------------- 1) Yes, 'attach' param is how we not attaching 'sources' artifacts. 2+3) As for adding 'skip', I understand it is not easy task to add it for all plugins. Actually this requirement can be kind of documentational, not interfacial. In any case, there is a lot of complaining in the internet for the lack of 'skip' option for different plugins. To clear our task a bit: we want to install 'sources' to local repository every time (local is always trusted). Also we have several remote repos, some of them are trusted and some - not. So 'sources' must not be deployed to untrusted repositories. Currently we mark trusted repositories with enabling a special profile 'deploy-sources', which sets 'attach' param of sources-plugin to true. But for the case when 'attach' is false, we still need to install to local repo and do it with 'install-file'. Thus we must switch of 'install-file' when 'attach' is true. Btw, later we plan to do multiple deploys at one time (not to reinstall local repo for each deploy), so probably 'skip' parameter will be necessary in 'deploy-file' too. > Skip option for install-file > ---------------------------- > > Key: MINSTALL-96 > URL: https://jira.codehaus.org/browse/MINSTALL-96 > Project: Maven Install Plugin > Issue Type: Improvement > Components: install:install-file > Affects Versions: 2.4 > Reporter: Tiemo Vorschütz > Attachments: InstallFileMojo.java.patch > > > For my process it would be helpful to also introduce a skip option for > install:install-file to be able to disable install-file creation by setting a > pom property. > This could be necessary if the build chain is designed by a parent pom and > should by simply modified inside the child pom. > In my case all plugin definitions are outsourced to the parent pom file and > should only be set by properties by the developers to take care that > modifications to the build chain are inherited. > I attached a patch to enable skipping also for install-file. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira