[
https://jira.codehaus.org/browse/MPATCH-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris PImlott updated MPATCH-16:
--------------------------------
Description:
The {{maven-patch-plugin}} does not throw an error or display any message when
the GNU {{patch}} binary is not present in the system path. This makes it easy
to accidentally include an unpatched file in the build artifact that may cause
undetected subtle errors.
The plugin should report an error when the binary cannot be found in order to
cause the build to fail.
{code}
PATH=/bin /usr/bin/java -classpath
/usr/share/maven/boot/plexus-classworlds-2.4.jar
-Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dmaven.home=/usr/share/maven
org.codehaus.plexus.classworlds.launcher.Launcher -o prepare-package
{code}
{quote}
[INFO] --- maven-patch-plugin:1.1.1:apply (patch) @ leo-dist ---
[INFO]
{quote}
was:
The {{maven-patch-plugin}} does not throw an error or display any message when
the GNU {{patch}} binary is not present in the system path. This makes it easy
to accidentally include an unpatched file in the build artifact that may cause
undetected subtle errors.
The plugin should report an error when the binary cannot be found in order to
cause the build to fail.
> maven-patch-plugin fails silent when patch binary is not found
> --------------------------------------------------------------
>
> Key: MPATCH-16
> URL: https://jira.codehaus.org/browse/MPATCH-16
> Project: Maven Patch Plugin
> Issue Type: Bug
> Affects Versions: 1.1.1
> Reporter: Chris PImlott
>
> The {{maven-patch-plugin}} does not throw an error or display any message
> when the GNU {{patch}} binary is not present in the system path. This makes
> it easy to accidentally include an unpatched file in the build artifact that
> may cause undetected subtle errors.
> The plugin should report an error when the binary cannot be found in order to
> cause the build to fail.
> {code}
> PATH=/bin /usr/bin/java -classpath
> /usr/share/maven/boot/plexus-classworlds-2.4.jar
> -Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dmaven.home=/usr/share/maven
> org.codehaus.plexus.classworlds.launcher.Launcher -o prepare-package
> {code}
> {quote}
> [INFO] --- maven-patch-plugin:1.1.1:apply (patch) @ leo-dist ---
> [INFO]
> {quote}
--
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