Thomas,
Thank you for the fast response. Unfortunately this is not the case.
I have generate a maven plugin project from the archetype, and add:

        <dependency>
            <groupId>org.apache.ddlutils</groupId>
            <artifactId>ddlutils</artifactId>
            <version>1.1</version>
        </dependency>

I added the import statement to my Mojo:

import org.apache.ddlutils.task.DdlToDatabaseTask;

and declare it:

private DdlToDatabaseTask ddlToDatabaseTask;


Now when I do:

mvn install
and try to run the Mojo, I get

java.lang.NoClassDefFoundError: org/apache/tools/ant/Task

So I am wondering, how to make this library available to the plugin ?


On Sun, Jul 27, 2014 at 5:10 AM, Thomas Sundberg <[email protected]> wrote:
> On 27 July 2014 10:05, Mansour Al Akeel <[email protected]> wrote:
>> I am writing a custom plug in. This plugin has other dependencies. How
>> can I make these dependencies available when running the plugin
>> without having to add them manually ??
>
> I assume that your dependencies are declared in your plugin project.
> If they are, then they will be downloaded and made available
> automatically by Maven.
>
> /Thomas
>
> --
> Thomas Sundberg
> M. Sc. in Computer Science
>
> Mobile: +46 70 767 33 15
> Blog: http://thomassundberg.wordpress.com/
> Twitter: @thomassundberg
>
> Better software through faster feedback
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to