Re: Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo

2015-10-27 Thread Stephen Connolly
The new link is https://www.cloudbees.com/blog/playing-trade-offs-maven *BUT* somebody managed to completely screw up the XML formatting when migrating from the old blog hosting to the new blog hosting... On 26 October 2015 at 17:21, Curtis Rueden wrote: > Hi Reena, > >

Re: Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo

2015-10-26 Thread Anders Hammar
Sorry, I don't have such a solution handy as it's not anything that is adviced from a Maven perspective. However, most likely Google is your friend here and could find some solution. The "Maven way" is to add the library to your internal (remote) repo so that you can declare a dependency that will

Re: Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo

2015-10-26 Thread reena upadhyay
Can you please provide some code snippet, how to add it to local repo through pom.xml. I don't want it add to my local maven repo using mvn install file command. On Mon, Oct 26, 2015 at 8:21 PM, Anders Hammar wrote: > The system scope is deprecated and the issues you're

Re: Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo

2015-10-26 Thread Anders Hammar
The system scope is deprecated and the issues you're running into is likely due to that. The solution is to add the library to your internal (remote) repo or at least your local repo. /Anders On Mon, Oct 26, 2015 at 3:26 PM, reena upadhyay wrote: > I want dependencies that

Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo

2015-10-26 Thread reena upadhyay
I want dependencies that are having system scope to be part of my project final executable jar. I tried maven-assembly, maven-shade and maven-dependency plugin. But using these plugins, only those dependency of my project which were present in my local maven repository were getting added.

Re: Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo

2015-10-26 Thread Curtis Rueden
Hi Reena, Stephen Connelly wrote a great blog post a couple of years ago addressing similar use cases. The URL is/was: http://developer-blog.cloudbees.com/2013/03/playing-trade-offs-with-maven.html Unfortunately, it seems the CloudBees Developer Blog is currently not working (it redirects to

Re: Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo

2015-10-26 Thread Wayne Fay
Sounds like you know the answer. Use the "mvn install" file command. Wayne On Mon, Oct 26, 2015 at 9:53 AM, reena upadhyay wrote: > Can you please provide some code snippet, how to add it to local repo > through pom.xml. I don't want it add to my local maven repo using mvn