You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/12 21:12:45 UTC
[jira] [Closed] (MNG-5422) Plexus Components not Injected to
AntMojoWrapper
[ https://issues.apache.org/jira/browse/MNG-5422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-5422.
-------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
> Plexus Components not Injected to AntMojoWrapper
> ------------------------------------------------
>
> Key: MNG-5422
> URL: https://issues.apache.org/jira/browse/MNG-5422
> Project: Maven
> Issue Type: Bug
> Components: Plugins and Lifecycle
> Affects Versions: 3.0.3
> Environment: OS X 10.7.5
> Reporter: Andy Pemberton
>
> I am attempting to build a Maven plugin written in Ant, using the AntMojoWrapper API.
> Upon configuring the MavenProjectHelper in *.mojos.xml as follows:
> {code}<parameter>
> <name>projectHelper</name> <expression>${component.org.apache.maven.project.MavenProjectHelper#maven.project.helper}</expression>
> <description>maven project helper object</description>
> </parameter>{code}
> I see where the requirements entry is written to the plugin.xml:
> {code}<requirement>
> <role>org.apache.maven.project.MavenProjectHelper</role>
> <role-hint>maven.project.helper</role-hint>
> <field-name>projectHelper</field-name>
> </requirement>{code}
> But when executing the plugin, I don't believe the component is added as an Ant reference. I believe this should happen in org.codehaus.plexus.component.factory.ant.AntScriptInvoker but I never see the addComponentRequirement get called.
> I am using:
> {code}
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-script-ant</artifactId>
> <version>2.2.1</version>
> </dependency>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-plugin-api</artifactId>
> <version>2.0</version>
> </dependency>
> <dependency>
> <groupId>org.apache.maven.plugin-tools</groupId>
> <artifactId>maven-plugin-tools-ant</artifactId>
> <version>3.2</version>
> </dependency>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)