This project is used to find all exported packages and append them to the MANIFEST.MF file. It searches for sub-packages within the specified root packages and creates an "Export-Package" entry in the manifest file. | Read-only mirror of https://github.com/SchweizerischeBundesbahnen/ch.sbb.export-package-generator — SBB. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 11:13:55 +00:00
.github chore(deps): update astral-sh/setup-uv action to v10.4.0 2026-11-23 18:06:44 +00:00
.idea/codeStyles chore: Updated pre-commit hooks to match java-repo-template (#10) 2024-10-28 18:03:18 +01:00
.mvn ci: resolve the Sonar plugin from the project (#27) 2026-07-29 19:47:12 +02:00
LICENSES
src build: upgrade junit to 6.1.2 (#28) 2026-07-29 19:59:16 +02:00
.gitignore ci: enhance GitHub workflows for improved performance and clarity (#16) 2025-07-07 16:02:27 +02:00
.pre-commit-config.yaml chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.20.1 2026-11-27 11:13:55 +00:00
.yamlfix.toml chore: Updated pre-commit hooks to match java-repo-template (#10) 2024-10-28 18:03:18 +01:00
CHANGELOG.md chore(main): release 1.0.0 (#4) 2024-07-03 10:31:23 +02:00
CODING_STANDARDS.md
CONTRIBUTING.md ci: enhance GitHub workflows for improved performance and clarity (#16) 2025-07-07 16:02:27 +02:00
pom.xml fix(deps): update dependency org.sonarsource.scanner.maven:sonar-maven-plugin to v5.9.0.7382 2026-11-20 02:42:00 +00:00
README.md ci: add sonar code coverage (#11) 2025-01-14 16:54:40 +01:00
RELEASE.md ci: enhance GitHub workflows for improved performance and clarity (#16) 2025-07-07 16:02:27 +02:00
renovate.json

Quality Gate Status Bugs Code Smells Coverage Duplicated Lines (%) Lines of Code Reliability Rating Security Rating Maintainability Rating Vulnerabilities

Export-Package Generator

This project is used to find all exported packages and append them to the MANIFEST.MF file. It searches for sub-packages within the specified root packages and creates an "Export-Package" entry in the manifest file.

Build

The binary artefact can be produced using maven:

mvn clean package

Usage

To use the Export-Package Generator the following changes in pom.xml are required:

    <dependencies>
        <dependency>
            <groupId>ch.sbb</groupId>
            <artifactId>export-package-generator</artifactId>
            <version>1.0.0</version>
            <scope>runtime</scope>
        </dependency>
    ...
    </dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>${exec-maven-plugin.version}</version>
            <executions>
                <execution>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                    <phase>process-classes</phase>
                </execution>
            </executions>
            <configuration>
                <executable>java</executable>
                <arguments>
                    <argument>-classpath</argument>
                    <classpath/>
                    <argument>ch.sbb.export_package_generator.PackageFinder</argument>
                    <argument>org.apache.poi</argument> <!-- root package -->
                </arguments>
            </configuration>
        </plugin>
    ...
    </plugins>
...
</build>