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:
John Dennis Casey 2008-06-30 14:47:09 +00:00
parent 5c32bc6b28
commit 3e03ce0956
2 changed files with 3 additions and 2 deletions

View File

@ -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
{

View File

@ -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>