arnaudroger / SimpleFlatMapper

Fast and Easy mapping from database and csv to POJO. A java micro ORM, lightweight alternative to iBatis and Hibernate. Fast Csv Parser and Csv Mapper
http://simpleflatmapper.org
MIT License
438 stars 76 forks source link

Please add maven bundle plugin specification #751

Open kannanekanath opened 3 years ago

kannanekanath commented 3 years ago

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 commented 3 years ago

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.