Problem solved 

Thanks all

lounnaci wrote:
> 
> Hi friends
> 
> I followed the steps that Alex said. The install (second step) were
> successful. I checked that a directory containing my jar file is added to
> .m2\repository and the reference to repo is available in java build path.
> %-|Infortunately when i make mvn clean compile the same exception
> occurs!!!
> 
> Remark (To tibi): I think there is no problem with my jar because the
> first time i have added the jar file manually to repo (I were no aware
> about the command) it was compiling, but the exception always occuring but
> rarely, I dont know the cause!! but it was compiling. The problem persists
> when i installed the M2 plugin to eclipse.
> 
> tibi wrote:
>> 
>> and are you sure the missing stuff is in the jar file??
>> 
>> and after running mvn eclipse:eclipse
>> do you see the jar file as dependency in the properties of eclipse (then
>> the pom file is ok)
>> 
>> good luck
>> 
>> Alex Coles wrote:
>>> On Mon, Aug 24, 2009 at 10:16 AM,
>>> lounnaci<m.lounn...@hb-technologies.com.dz> wrote:
>>>   
>>>>  Hi
>>>>
>>>> The problem is always there. It is blocking :,(
>>>>
>>>>     
>>>
>>> Check you have the dependency correct in your XML.
>>>
>>> If the dependency is an open-source one, then you can use a site like
>>> http://mvnrepository.com/ to check that the dependency is available in
>>> one of the central Maven repositories. Maven should then download the
>>> dependency for you, into your local Maven repository (~/.m2/repo).
>>>
>>> Unfortunately, if the dependency you want is not in a Maven
>>> repository, then you have a two-step process:
>>> 1. configure the dependency in your pom.xml, as you've already done.
>>> 2. install the dependency manually into your Maven repository:
>>>
>>> Here's an example of how to install the BouncyCastle dependency
>>> manually:
>>> mvn install:install-file -DgroupId=bouncycastle
>>> -DartifactId=bctsp-jdk14 -Dversion=138 -Dpackaging=jar
>>> -Dfile=./bctsp-jdk14-138.jar
>>>
>>> The final parameter, file, should point to where you have the JAR on
>>> your computer. The other parameters should match exactly what you've
>>> configured in your pom.xml dependencies.
>>>
>>> FINALLY -- its always a good idea (esp. if you're having Eclipse
>>> errors) to do a full clean, before compiling: i.e.
>>> mvn clean compile
>>>
>>> Alex
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>
>>>
>>>   
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Add-a-dependency-with-an-external-jar-file-tp25103494s2369p25117094.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to