2012/11/28 Barrie Treloar <[email protected]>: > While trying to sort out > http://maven.40175.n5.nabble.com/Retrieving-the-project-source-directories-from-MavenProject-td5733602.html > > I was hacking his code and found that > Java 1.5 @Component MavenProject returns null > > But when I changed it to use JavaDoc @parameter > expression="${project}" it works fine. > > http://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html > gives an example > @Component > private MavenProject project; > > http://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/apache/maven/plugins/annotations/Component.html > says MavenProject can be accessed via @Component > > I've not used the Java 1.5 annotations before. > Does anyone know why this might be? weird as it works for all our plugins :-) How do you build that ? any sample ? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
-- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
