Skip to content

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.

Notifications You must be signed in to change notification settings

SchweizerischeBundesbahnen/ch.sbb.export-package-generator

Repository files navigation

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>

About

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.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages