How to include local dependency
See original GitHub issueHi, 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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the fast reply.
withExtensionLibsFrom(...)
sounds like a good extension to me.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.