maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Fay <wayne...@gmail.com>
Subject Re: Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo
Date Mon, 26 Oct 2015 16:50:58 GMT
Sounds like you know the answer. Use the "mvn install" file command.

Wayne

On Mon, Oct 26, 2015 at 9:53 AM, reena upadhyay <reena2485@gmail.com> 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
> install file command.
>
> On Mon, Oct 26, 2015 at 8:21 PM, Anders Hammar <anders@hammar.net> wrote:
>
>> 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 <reena2485@gmail.com>
>> wrote:
>>
>> > 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. Dependency with system scope (not present in my local maven repo)
>> > are not getting added in the final executable jar.
>> >
>> > I tried searching over google, but most of the links are suggesting to
>> add
>> > it local maven repo first. I have some limitations so I cannot add those
>> > dependency on local repo. I want it to picked from file system directly,
>> > and wanted it to be part of final executable jar.
>> >
>> > <!-- Teradta jdbc dependency -->
>> > <dependency>
>> >     <groupId>org.teradata</groupId>
>> >     <artifactId>teradata</artifactId>
>> >     <version>4.0</version>
>> >     <scope>system</scope>
>> >
>> >
>> <systemPath>${basedir}/../../../lib/terajdbc4.jar</systemPath></dependency>
>> >
>> > Above dependency is not getting added in the final jar that maven is
>> > building.
>> >
>> > Please suggest me the right plugin with its usage for this use case.
>> >
>> > Any help on this would be really appreciated.
>> >
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message