OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Configure provided libraries with maven


Hi guys,

 

In our project we have setup that uses flink-core, flink-java, rocksdb, slf4j (and some more libraries, that are on the machines, where the jars will be deployed) with scope “provided”. This is a bit tricky cause when we run the tests in IntelliJ there’s no logging (cause of missing slf4j library) and if we want to debug something is even harder, cause flink core, java etc are missing and we are forced to remove provided from our pom. This is not a huge problem, but when we want to debug and use some existing checkpoints, flink needs a file with the configured things (as I’m aware something similar to what I want is done in StreamingMultipleProgramsTestBase for integration testing)

 

Do you have any suggestions how can I run everything on my machine but when build to not include those libraries? (Tried maven profiles, they seems not to work very well, cause it makes some libraries to be duplicated/overlapping)  

 

Regards,

Georgi Stoyanov