[
https://jira.codehaus.org/browse/MPLUGIN-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy updated MPLUGIN-257:
----------------------------------
Description:
such component annotations added in MPLUGIN-204 were a bad idea, because they
cause confusion with Plexus components
it's better to remove the feature and add examples in documentation:
{code:java}@Parameter( defaultValue="$\{session}" readonly=true )
private MavenSession session;
mavenComponents.put( "org.apache.maven.project.MavenProject", "${project}" );
mavenComponents.put( "org.apache.maven.plugin.MojoExecution", "${mojo}"
);
mavenComponents.put(
"org.apache.maven.plugin.descriptor.PluginDescriptor", "${plugin}" );
mavenComponents.put( "org.apache.maven.settings.Settings",
"${settings}" );
{code}
was:
such component annotations added in MPLUGIN-204 were a bad idea, because they
cause confusion with Plexus components
it's better to remove the feature and add example of {{@Parameter(
defaultValue="$\{project.xxx}" readonly=true )}}
> deprecate classical Maven objects as components
> -----------------------------------------------
>
> Key: MPLUGIN-257
> URL: https://jira.codehaus.org/browse/MPLUGIN-257
> Project: Maven Plugin Tools
> Issue Type: Wish
> Affects Versions: 3.2
> Reporter: Herve Boutemy
> Fix For: 3.3
>
>
> such component annotations added in MPLUGIN-204 were a bad idea, because they
> cause confusion with Plexus components
> it's better to remove the feature and add examples in documentation:
> {code:java}@Parameter( defaultValue="$\{session}" readonly=true )
> private MavenSession session;
> mavenComponents.put( "org.apache.maven.project.MavenProject", "${project}" );
> mavenComponents.put( "org.apache.maven.plugin.MojoExecution",
> "${mojo}" );
> mavenComponents.put(
> "org.apache.maven.plugin.descriptor.PluginDescriptor", "${plugin}" );
> mavenComponents.put( "org.apache.maven.settings.Settings",
> "${settings}" );
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)