On 24/07/2014 8:57 AM, David Evans wrote:
Thanks all. It seems that what I want to do doesn't fit naturally into the
Maven way of things.
Using the "copy" plugin I can see how I might possibly unpack elements and
modify my Eclipse classpath in flight but part of the problem with my
existing Ant deployment is that I've extended it to do the "possible", not
necessarily considering the "sensible", so I'll not go down that route. Yet.
It's a shame that I can't store the external jars in the Maven repository
and treat them ) as "versioned foreign artifacts" because having Maven
manage them in this way would be brilliant.
That is the way that Maven works
Here's what I'm going to try instead:
* I'll carry on with the libraries in my [Perforce] SCM.
* I can map them to a project folder as I do now (similar to sources,
resources, etc).
* if I understand this part of Maven dependepencies correctly, I can create
a parent dependendency that depends on an individual system-scope dependency
for each of the libraries. This will hopefully get them all onto my Maven
project classpath without too much fuss.
* use "assembly" to include the jars in my final deployment.
Does this seem the natural and sensible way to manage external jars with
Maven?
Way too much work!
This appears to be a normal case that Maven will handle without any fuss.
Have a look at the Maven articles and books.
If you are building something that is very common and do not have any
truly bizarre development processes, then Maven should be able to handle
your process in a simple way.
The danger of asking very detailed questions here without providing
context is that there are very smart and creative people in this forum
who can make Maven do damn-near anything.
They might take your question a bit too literally and actually provide a
very elegant solution to a problem that is only slightly misstated.
Thanks
David
--
View this message in context:
http://maven.40175.n5.nabble.com/Upload-3rd-party-jars-retaining-original-names-tp5800921p5800925.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]