LICENSE bundled in all built OSGi bundle JARs 47/48447/1
authorMichael Vorburger <vorburger@redhat.com>
Thu, 17 Nov 2016 16:47:08 +0000 (17:47 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Thu, 17 Nov 2016 16:47:08 +0000 (17:47 +0100)
Work was done a while ago (by Thanh) to put a LICENSE into
target/classes expecting that to end up in all built JARs, but it
actually never did, which I stumbled upon in the context of
https://git.opendaylight.org/gerrit/#/c/48443/.  This remedies that by
explicitly instructing the maven-bundle-plugin to additionally bundle
the LICENSE text file (and the META-INF/git.properties after this is
merged).

Change-Id: If382d763b5fabe21cfed9e7c51fa3d4f9b31e47a
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
odlparent/pom.xml

index d3ed8cd92ba27532a3092528f8af84132c01e48f..99b8998eb7d1cf99f5331bc1a92db9091f6e596d 100644 (file)
           <artifactId>maven-bundle-plugin</artifactId>
           <version>${maven.bundle.version}</version>
           <extensions>true</extensions>
+          <configuration>
+            <instructions>
+              <Include-Resource>{maven-resources},target/classes/LICENSE</Include-Resource>
+            </instructions>
+          </configuration>
         </plugin>
 
         <plugin>