private static PackageTally definedPackages(JarFile jarFile, ArtifactVersion version) throws MojoExecutionException {
        List<ClassFileMetaData> analyzedClasses = new ArrayList<>();
        for (Enumeration<JarEntry> entries = jarFile.entries(); entries.hasMoreElements();) {
            JarEntry entry = entries.nextElement();
            if (! entry.isDirectory() && entry.getName().endsWith(".class")) {
                analyzedClasses.add(analyzeClass(jarFile, entry, version));
            }
        }
        return PackageTally.fromAnalyzedClassFiles(analyzedClasses);
    }
If set to true, the artifact's version is used as default package version for ExportPackages.
Packages from included (compile scoped) artifacts will use the version for their own artifact.
If the package is exported with an explicit version in package-info.java, that version will be
used regardless of this parameter.
bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/AbstractGenerateOsgiManifestMojo.java