You need to create a minimal pom for these jars for maven to be able to
use them. If you use install:install-file or better deploy:deploy-file,
it can create the minimal pom for you.

-----Original Message-----
From: Claudio Di Vita [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 07, 2007 4:13 PM
To: [email protected]
Subject: Add third parties libraries as dependencies


I'm persuading my Team Leader to use Maven as build tool, but I have to
demonstrate him that with Maven we'll handle our project dependencies
effortless.

I've obtained good results, but I have some problems with some jar
libraries
provided, through a quite complex installation process, by a software.

So I've tried to create an "empty" Maven artifact which has these
libraries
as system dependencies (yes, the dependency scope is system).

After I installed the artifact, I inserted it as a compile dependency
for
another project called, for example, ABC. But when I try to resolve
projects
dependencies I obtain the following message:

    [WARNING] POM for ''<artifact-info>" is invalid. It will be ignored
for
artifact resolution.
                       Reason: Failed to validate POM for project
<artifact-info>

And the resolution fails.

Instead if I put these libraries as system dependencies of project ABC,
everything works. I think, because it's not written in Maven
documentation,
that system dependencies are not transitive....I'm right ??

But my question is: I can use these external libraries as dependencies
without put them in a local repository ??

Thank you for help,

Claudio Di Vita
-- 
View this message in context:
http://www.nabble.com/Add-third-parties-libraries-as-dependencies-tf4964
483s177.html#a14220690
Sent from the Maven - Users mailing list archive at Nabble.com.


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