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.

How to include local dependency

See original GitHub issue

Hi, thank you for the great project.

How can I include my local dependency together with the extension I want to test?

Example:

  • extension
    • src/main/…
    • src/test/…
  • another-extension
    • src/main/…
  • core
    • src/main/…

I want to test my extension, which has a dependency to my core package e.g. some exception or util classes. When I start the testcontainer test in the extension/src/test while passing withExtensionClassesFrom("target/classes") I get an error org.jboss.modules.ModuleNotFoundException: core.exception.

Maybe we can define multiple paths for withExtensionClassesFrom?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
simse07commented, Feb 22, 2022

Thanks for the fast reply. withExtensionLibsFrom(...) sounds like a good extension to me.

0reactions
dasnikocommented, Feb 24, 2022

Nice, thanks. 🙂 If you don’t mind, I will convert this issue to a discussion thread, so it is saved for others. I’ll create another issue to add the withExtensionLibsFrom() as discussed above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add local jar files to a Maven project? - Stack Overflow
The best option for having local JAR files as a dependency is to create a local Maven repository. Such a repository is nothing...
Read more >
Including a local package as a Maven dependency
This article describes how to add a Jar file to a local Maven repository for use in your own testing and development.
Read more >
Guide to installing 3rd party JARs - Apache Maven
The JARs must be placed in the local repository in the correct place in order for it ... To install a JAR in...
Read more >
How to add local jar files to a Maven project? - Intellipaat
1.Install manually the JAR into a local Maven repository. Use this plugin: mvn install:install-file -Dfile=<path-to-file> · 2. Adding directly ...
Read more >
Adding Unmanaged Dependencies to a Maven Project
Pick groupId, artifactId and version parameters. Let's say your app depends on the library mylib. · Create a local Maven repository directory.
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