[
https://jira.codehaus.org/browse/MRELEASE-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271348#comment-271348
]
Brett Porter commented on MRELEASE-564:
---------------------------------------
I'm not sure what the best general policy is either - we don't just want to
deal with the remote resources plugin. Maybe check for pattern and allow
excluded configuration?
> Fail the release when a -SNAPSHOT version is detected inside
> maven-remote-resources-plugin configuration
> --------------------------------------------------------------------------------------------------------
>
> Key: MRELEASE-564
> URL: https://jira.codehaus.org/browse/MRELEASE-564
> Project: Maven 2.x Release Plugin
> Issue Type: Improvement
> Components: prepare
> Affects Versions: 2.0-beta-9
> Reporter: Baptiste MATHUS
> Priority: Critical
>
> Recently, I realized we rolled a released containing a reference onto a
> -SNAPSHOT version of our quality rules :/.
> This was because of the following remote-resources plugin configuration:
> {code:xml}
> <plugin>
> <artifactId>maven-remote-resources-plugin</artifactId>
> <version>1.1</version>
> <executions>
> <execution>
> <goals>
> <goal>process</goal>
> </goals>
> <configuration>
> <resourceBundles>
>
> <resourceBundle>fr.comp-shared-resources:1.0-SNAPSHOT</resourceBundle>
> </resourceBundles>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> I think release:prepare should fail when it detects this.
> I seem to remember it's a bad practice to read other plugin's config, but I
> file this issue because:
> * remote-resources-plugin is a standard maven plugin, so I guess this use is
> to be often encountered
> * this is a very important issue and I'd like to file it somewhere. Please
> let me know if I should file or discuss it somewhere else.
> Cheers
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira