maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mansour Al Akeel <mansour.alak...@gmail.com>
Subject Re: Custom plugin dependencies
Date Sun, 27 Jul 2014 12:33:45 GMT
Issue resolve.
My bad. I had to explicitly include ant dependency.


On Sun, Jul 27, 2014 at 6:02 AM, Mansour Al Akeel
<mansour.alakeel@gmail.com> wrote:
> 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 <tsu@kth.se> wrote:
>> On 27 July 2014 10:05, Mansour Al Akeel <mansour.alakeel@gmail.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message