class OpearPackageMojo extends AbstractCommonMojo {

    String getOakpalCoreVersion() {
        return resolveArtifacts(project.getDependencies(), true).stream()
                .filter(TEST_IS_OAKPAL_CORE.or(TEST_IS_OAKPAL_API))
                .findFirst()
                .map(Artifact::getVersion).orElse(getOwnVersion());
    }

}