Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add maven bundle plugin specification #751

Open
kannanekanath opened this issue Jan 5, 2021 · 1 comment
Open

Please add maven bundle plugin specification #751

kannanekanath opened this issue Jan 5, 2021 · 1 comment

Comments

@kannanekanath
Copy link

kannanekanath commented Jan 5, 2021

We are an Enterprise that imports all Maven libraries/dependencies into our internal artifact repository (language/platform agnostic). The importing mechanism is automatic and does plenty of sanity checks before doing so.

When I tried to import sfm related libraries I get an error because the packaging type is set to 'bundle' however there is no maven-bundle-plugin (presumably this is built with a profile or a custom settings.xml which has the instructions) specified.

Would it be possible to add the following section to the pom of all the sfm projects? sfm-jooq, sfm-jdbc, sfm-map, sfm-reflect, sfm-util, sfm-converter ? I have given a sample snippet which might work but the flags may need some customisation.

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <version>2.3.5</version>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${project.name}</Bundle-Name>
                        <Bundle-Version>${project.version}</Bundle-Version>
                        <Export-Package>demo.hw.server</Export-Package> 
                        <Bundle-Activator>demo.hw.server.Activator</Bundle-Activator>
                        <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
@arnaudroger
Copy link
Owner

do you know what it complains about? I have a test running felix for osgi test and as far as i know it is still working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants