On 27 July 2014 12:02, Mansour Al Akeel <[email protected]> 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>
>

Interesting, when I search for the artifact you declare above at
http://search.maven.org I can only find version 1.0, not version 1.1

What happens if you declare version 1.0?

>
> 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 ?
>

You could consider adding a dependency in your project to the Ant plugin.

Search at Central Repository and see what you can find.

/Thomas


>
> 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]
>



-- 
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]

Reply via email to