Is there a way to tell maven to continue the build although a dependency ist missing?
I tried <optional>true</optional> but this doesn’t seem to do it in this scenario.
I have build a costum Maven Plugin for the package phase and it does still have to package even if one or multiple dependencies could not be found.
Thanks in advance.
Optional means that a client using your library does not necessarily need that dependency. An example is Spring’s ORM module, that has optional dependencies to Hibernate, JDO, JPA and mybatis. Nobody will ever use all of these in a project, so each is marked as optional.
Your case is completely different, you are trying to compile something, and you can only do that if the libraries you compile against are present. Sorry, it don’t work like that.