question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to add 3rd party libraries to classpath

See original GitHub issue

When testing extensions with .withExtensionClassesFrom() it might become necessary to add 3rd party libs as dependencies to the classpath, as the extensions rely on these libraries. Currently that’s not possible.

A method like .withExtensionLibsFrom() might be a good solution.

(this issue is deviated from discussion #57)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dasnikocommented, Feb 24, 2022

This might be a friend (and I already use other ShrinkWrap libs in the project): https://github.com/shrinkwrap/resolver

1reaction
dasnikocommented, Feb 24, 2022

I will research how to look for local maven dependencies, but if the project was not a maven?

We should start with a Maven version. It’s still the most used dependency management tool. If it works and there are people needing other approaches, I still can think about it.

Having a way to include deps from a repo is way more flexible than just using paths. When I have a dependency from a maven repo in my project, I dont’t want to copy the lib into my project, just for the test cases. Additionally, the path on my machine may be different (if it’s not part of the project directory) to other machines.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java - where to put 3rd party JARs and set classpath on Linux
So answer to first question may be, create a separate project called 'third-party' and put all your jars there. 2> Generally, in Linux,...
Read more >
Include or remove additional third party libraries - Agi
There are a few ways to add or remove third party jars that are sent in a job. ... the -classpath option when...
Read more >
Add third-party libraries to MapReduce job
The first solution, maybe the most common one, consists on adding libraries using -libjars parameter on CLI. To make it work, your class...
Read more >
How-to: Include Third-Party Libraries in Your MapReduce Job ...
1. Include the JAR in the “-libjars” command line option of the `hadoop jar …` command. · 2. Include the referenced JAR in...
Read more >
Adding User Libraries in Eclipse - CS Tutoring Center
You need to add the third-party user library to the build path for every project that uses it. (I do not currently know...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found