mirror of
https://github.com/SchweizerischeBundesbahnen/ch.sbb.export-package-generator.git
synced 2026-12-04 11:18:52 +00:00
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.
- Java 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| .idea/codeStyles | ||
| .mvn | ||
| LICENSES | ||
| src | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .yamlfix.toml | ||
| CHANGELOG.md | ||
| CODING_STANDARDS.md | ||
| CONTRIBUTING.md | ||
| pom.xml | ||
| README.md | ||
| RELEASE.md | ||
| renovate.json | ||
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>