I'm working on a Java SDK. The project's build tool is Maven. The SDK provides classes (helpers) to write code for an API. It also provides a build configuration which makes it possible to build the application in a specific way (native image).
To use the build configuration from the SDK I (think I) need to package it as a pom, and then use it as a parent. However, to use all the SDK classes, I need to package it as a jar.
Is it possible to use a Maven dependency is the above described way? Or maybe I actually need two projects, one for just the SDK, and the other one which would provide the build configuration?
You cannot mix the two aspects.
To provide a dependency, you build a JAR.
To provide build configuration, you can provide a parent POM. Beware, though, that many people already use parent POMs and you cannot have two parent POMs at the same time. So it might be better to provide an XML snippet to copy&paste into the POM.