maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Pemberton (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-5422) Plexus Components not Injected to AntMojoWrapper
Date Fri, 11 Jan 2013 03:33:13 GMT
Andy Pemberton created MNG-5422:
-----------------------------------

             Summary: Plexus Components not Injected to AntMojoWrapper
                 Key: MNG-5422
                 URL: https://jira.codehaus.org/browse/MNG-5422
             Project: Maven 2 & 3
          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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message