mirror of https://github.com/apache/maven.git
Now that we're holding back the plugin config for interpolation just before it's used, we need to accept pom.* expressions in the parameter expression evaluator. Also, setting the maven-distribution finalName for the assembly plugin back to its old expression, which used pom.version not project.version.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@672784 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c32bc6b28
commit
3e03ce0956
|
@ -117,6 +117,7 @@ public class PluginParameterExpressionEvaluator
|
|||
* @deprecated Use {@link PluginParameterExpressionEvaluator#PluginParameterExpressionEvaluator(MavenSession, MojoExecution, PathTranslator, LifecycleExecutionContext, Logger, Properties)}
|
||||
* instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public PluginParameterExpressionEvaluator( MavenSession context,
|
||||
MojoExecution mojoExecution,
|
||||
PathTranslator pathTranslator,
|
||||
|
@ -250,7 +251,7 @@ public class PluginParameterExpressionEvaluator
|
|||
{
|
||||
value = project.getExecutionProject();
|
||||
}
|
||||
else if ( expression.startsWith( "project" ) )
|
||||
else if ( expression.startsWith( "project" ) || expression.startsWith( "pom" ) )
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
@ -216,7 +216,7 @@ under the License.
|
|||
</goals>
|
||||
<configuration>
|
||||
<descriptor>src/main/assembly/bin.xml</descriptor>
|
||||
<finalName>apache-maven-${project.version}</finalName>
|
||||
<finalName>apache-maven-${pom.version}</finalName>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
Loading…
Reference in New Issue