I don’t see the <packaging>bundle</packaging> instruction anywhere, which I believe is required for maven-bundle-plugin. Though if this was the problem, it should fail in the same way in both 2.5 and 3.2.
Neil > On 21 Jan 2017, at 07:46, Steinar Bang <[email protected]> wrote: > >>>>>> Steinar Bang <[email protected]>: > >> Platform: Windows 7 >> Java 1.8 >> maven 3.3.9 > >> For version 2.5.3, this pom file creates an OSGi bundle with an >> activator: >> https://github.com/steinarb/ukelonn/blob/using-vaadin/ukelonn.bundle.test.db/pom.xml > >> For later versions (I've only tried 2.5.4 (the version immediately >> following the one I was using) and 3.2.0 (the currently newest version)) >> the jar file become a plain jar file (ie. not an OSGi bundle). > >> Does anyone know what could cause this? > > I checked the maven local cache (aka. "the local repository") to see if > something had gone wrong during download, or if I somehow was > referencing a non-existing version. > > But the contents for both 2.5.4 and 3.2.0 looked normal: > > 2.5.4: > c:/Users/sb/.m2/repository/org/apache/felix/maven-bundle-plugin/2.5.4: > total used in directory 180 available 15336056 > drwxrwxrwx 1 sb None 4096 01-14 20:16 . > drwxrwxrwx 1 sb None 4096 01-17 22:26 .. > -rw-rw-rw- 1 sb None 215 01-14 20:16 _remote.repositories > -rw-rw-rw- 1 sb None 170040 01-14 20:16 maven-bundle-plugin-2.5.4.jar > -rw-rw-rw- 1 sb None 40 01-14 20:16 maven-bundle-plugin-2.5.4.jar.sha1 > -rw-rw-rw- 1 sb None 5665 01-14 20:16 maven-bundle-plugin-2.5.4.pom > -rw-rw-rw- 1 sb None 40 01-14 20:16 maven-bundle-plugin-2.5.4.pom.sha1 > > 3.2.0: > c:/Users/sb/.m2/repository/org/apache/felix/maven-bundle-plugin/3.2.0: > total used in directory 235 available 15336056 > drwxrwxrwx 1 sb None 4096 01-20 21:44 . > drwxrwxrwx 1 sb None 4096 01-17 22:26 .. > -rw-rw-rw- 1 sb None 215 01-17 22:26 _remote.repositories > -rw-rw-rw- 1 sb None 97 01-20 21:44 m2e-lastUpdated.properties > -rw-rw-rw- 1 sb None 222974 01-17 22:26 maven-bundle-plugin-3.2.0.jar > -rw-rw-rw- 1 sb None 40 01-17 22:26 maven-bundle-plugin-3.2.0.jar.sha1 > -rw-rw-rw- 1 sb None 8378 01-17 22:26 maven-bundle-plugin-3.2.0.pom > -rw-rw-rw- 1 sb None 40 01-17 22:26 maven-bundle-plugin-3.2.0.pom.sha1 >
